Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 19, 2024
1 parent c1d5de9 commit 378d433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Utils/WarpXUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,14 @@ void ReadBCParams ()
ablastr::warn_manager::WMRecordWarning("Input", warnMsg);
}

// particle boundary may not be explicitly specified for some applications
const ParmParse pp_particles("particles");
std::vector<std::string> species_names;
pp_particles.queryarr("species_names",species_names);
const ParmParse pp_boundary("boundary");
pp_boundary.queryarr("field_lo", field_BC_lo, 0, AMREX_SPACEDIM);
pp_boundary.queryarr("field_hi", field_BC_hi, 0, AMREX_SPACEDIM);

// If number of species is finite, then get particle boundary condition, which must be specified
if (species_names.size() > 0) {
pp_boundary.getarr("particle_lo", particle_BC_lo, 0, AMREX_SPACEDIM);
pp_boundary.getarr("particle_hi", particle_BC_hi, 0, AMREX_SPACEDIM);
Expand Down

0 comments on commit 378d433

Please sign in to comment.