Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 19, 2024
1 parent 6d9412f commit 99cfff4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Source/BoundaryConditions/WarpXFieldBoundaries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,18 @@ void WarpX::ApplyBfieldBoundary (const int lev, PatchType patch_type, DtType a_d
void WarpX::ApplyRhofieldBoundary (const int lev, MultiFab* rho,
PatchType patch_type)
{
if (PEC::isAnyParticleBoundaryReflecting() || PEC::isAnyBoundaryPEC()) { PEC::ApplyReflectiveBoundarytoRhofield(rho, lev, patch_type); }
if (PEC::isAnyParticleBoundaryReflecting() || PEC::isAnyBoundaryPEC()) {
PEC::ApplyReflectiveBoundarytoRhofield(rho, lev, patch_type);
}
}

void WarpX::ApplyJfieldBoundary (const int lev, amrex::MultiFab* Jx,
amrex::MultiFab* Jy, amrex::MultiFab* Jz,
PatchType patch_type)
{
if (PEC::isAnyParticleBoundaryReflecting() || PEC::isAnyBoundaryPEC()) { PEC::ApplyReflectiveBoundarytoJfield(Jx, Jy, Jz, lev, patch_type); }
if (PEC::isAnyParticleBoundaryReflecting() || PEC::isAnyBoundaryPEC()) {
PEC::ApplyReflectiveBoundarytoJfield(Jx, Jy, Jz, lev, patch_type);
}
}

#ifdef WARPX_DIM_RZ
Expand Down
7 changes: 4 additions & 3 deletions Source/BoundaryConditions/WarpX_PEC.H
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,9 @@ using namespace amrex;


/**
* \brief Sets the rho or J field value in cells close to and on reflecting particle boundary. The
* charge/current density deposited in the guard cells are either reflected
* \brief Sets the rho or J field value in cells close to and on reflecting particle boundary
* or PEC field boundary. The charge/current density deposited
* in the guard cells are either reflected
* back into the simulation domain (if a reflecting particle
* boundary is used), or the opposite charge/current density is deposited
* back in the domain to capture the effect of an image charge.
Expand All @@ -370,7 +371,7 @@ using namespace amrex;
* \param[in out] field field data to be updated
* \param[in] mirrorfac mirror cell is given by mirrorfac - ijk_vec
* \param[in] psign Whether the field value should be flipped across the boundary
* \param[in] is_reflective Whether the given particle boundary is reflecting
* \param[in] is_reflective Whether the given particle boundary is reflecting or field boundary is pec
* \param[in] tangent_to_bndy Whether a given direction is perpendicular to the boundary
* \param[in] fabbox multifab box including ghost cells
*/
Expand Down

0 comments on commit 99cfff4

Please sign in to comment.