aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXUtil.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2021-07-06 15:35:01 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-06 15:35:01 -0700
commit0356216f504643a0e33a6932efc5c2cbf9a2abe1 (patch)
tree73266aaec6dec16bde6349e49e55e1bd9c8bfca5 /Source/Utils/WarpXUtil.cpp
parent82eec2a5032286c617449ea45a341b72b6f8bed2 (diff)
downloadWarpX-0356216f504643a0e33a6932efc5c2cbf9a2abe1.tar.gz
WarpX-0356216f504643a0e33a6932efc5c2cbf9a2abe1.tar.zst
WarpX-0356216f504643a0e33a6932efc5c2cbf9a2abe1.zip
Reflective particle boundary condition (#1728)
* Added ParticleBoundaries and reflecting boundary conditions * Added ParticleBoundaries::AllNone * Allowed different particle boundary conditions on each side of the domain * Updated the documentation for particle boundaries * Fix end of line space in Docs/source/running_cpp/parameters.rst * Updated the reflecting BC to use boundary input group * Fixes to reflective boundary conditions * Bug fix in AsStored * Added particle boundaries regression test particle_boundaries_3d * Fixed particle_boundaries_3d.json * Minor updates * Added algo.particle_shape to test case * Remove do_pml from test case Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> * Need to explicitly turn off pml in CI test * Re-add include * Fixed includes Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Utils/WarpXUtil.cpp')
-rw-r--r--Source/Utils/WarpXUtil.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp
index d3536fc3b..4ea0f14c0 100644
--- a/Source/Utils/WarpXUtil.cpp
+++ b/Source/Utils/WarpXUtil.cpp
@@ -534,11 +534,11 @@ void ReadBCParams ()
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
// Get field boundary type
- WarpX::field_boundary_lo[idim] = GetBCTypeInteger(field_BC_lo[idim], true);
- WarpX::field_boundary_hi[idim] = GetBCTypeInteger(field_BC_hi[idim], true);
+ WarpX::field_boundary_lo[idim] = GetFieldBCTypeInteger(field_BC_lo[idim]);
+ WarpX::field_boundary_hi[idim] = GetFieldBCTypeInteger(field_BC_hi[idim]);
// Get particle boundary type
- WarpX::particle_boundary_lo[idim] = GetBCTypeInteger(particle_BC_lo[idim], false);
- WarpX::particle_boundary_hi[idim] = GetBCTypeInteger(particle_BC_hi[idim], false);
+ WarpX::particle_boundary_lo[idim] = GetParticleBCTypeInteger(particle_BC_lo[idim]);
+ WarpX::particle_boundary_hi[idim] = GetParticleBCTypeInteger(particle_BC_hi[idim]);
if (WarpX::field_boundary_lo[idim] == FieldBoundaryType::Periodic ||
WarpX::field_boundary_hi[idim] == FieldBoundaryType::Periodic ||