Skip to content

Commit

Permalink
Fix another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Sep 18, 2024
1 parent de0a3ea commit f6ab6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Fluids/WarpXFluidContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void WarpXFluidContainer::Evolve(
using ablastr::fields::Direction;
WARPX_PROFILE("WarpXFluidContainer::Evolve");

if (fields.get("rho_fp",lev) && ! skip_deposition && ! do_not_deposit) {
if (fields.has("rho_fp",lev) && ! skip_deposition && ! do_not_deposit) {
// Deposit charge before particle push, in component 0 of MultiFab rho.
DepositCharge(fields, *fields.get("rho_fp",lev), lev, 0);
}
Expand Down Expand Up @@ -294,7 +294,7 @@ void WarpXFluidContainer::Evolve(

// Deposit rho to the simulation mesh
// Deposit charge (end of the step)
if (fields.get("rho_fp",lev) && ! skip_deposition && ! do_not_deposit) {
if (fields.has("rho_fp",lev) && ! skip_deposition && ! do_not_deposit) {
DepositCharge(fields, *fields.get("rho_fp",lev), lev, 1);
}

Expand Down

0 comments on commit f6ab6de

Please sign in to comment.