Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 7, 2024
1 parent 0ee42fc commit c9e9bd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Python/pywarpx/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,19 @@ def CustomNamedxWrapper(mf_name, level=0, include_ghosts=False):
mf_name=mf_name, idir=0, level=level, include_ghosts=include_ghosts
)


def CustomNamedyWrapper(mf_name, level=0, include_ghosts=False):
return _MultiFABWrapper(
mf_name=mf_name, idir=1, level=level, include_ghosts=include_ghosts
)


def CustomNamedzWrapper(mf_name, level=0, include_ghosts=False):
return _MultiFABWrapper(
mf_name=mf_name, idir=2, level=level, include_ghosts=include_ghosts
)


def ExWrapper(level=0, include_ghosts=False):
return _MultiFABWrapper(
mf_name="Efield_aux", idir=0, level=level, include_ghosts=include_ghosts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,15 @@ ExternalVectorPotential::InitData ()
}


void
void
ExternalVectorPotential::CalculateExternalCurlA ()
{
for (auto fname : m_field_names) {
CalculateExternalCurlA(fname);
}
}

void
void
ExternalVectorPotential::CalculateExternalCurlA (std::string& coil_name)
{
using ablastr::fields::Direction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,4 +593,4 @@ WarpX::CalculateExternalCurlA() {
auto ext_vector = warpx.m_hybrid_pic_model->m_external_vector_potential.get();
ext_vector->CalculateExternalCurlA();

}
}

0 comments on commit c9e9bd1

Please sign in to comment.