From 378d433c56bc1d138734e9c9169257cef15e4095 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Tue, 19 Mar 2024 13:39:29 -0700 Subject: [PATCH] adding comment --- Source/Utils/WarpXUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index bfb0a569ec8..7cd6c9b6f33 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -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 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);