Skip to content

Commit

Permalink
un-multiply done
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Sep 25, 2024
1 parent 0337ee1 commit 568630b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/ablastr/fields/PoissonSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ computePhi (
#endif
// Use the Multigrid (MLMG) solver if selected or on refined patches
// but first scale rho appropriately
rho[lev]->mult(-1._rt / ablastr::constant::SI::ep0); // TODO: when do we "un-multiply" this? We need to document this side-effect!
rho[lev]->mult(-1._rt / ablastr::constant::SI::ep0);

#ifdef WARPX_DIM_RZ
constexpr bool is_rz = true;
Expand Down Expand Up @@ -409,6 +409,8 @@ computePhi (
post_phi_calculation.value()(mlmg, lev);
}
}
rho[lev]->mult(-ablastr::constant::SI::ep0); // Divide rho by epsilon again

} // loop over lev(els)
} // computePhi
} // namespace ablastr::fields
Expand Down

0 comments on commit 568630b

Please sign in to comment.