Skip to content

Commit

Permalink
fix bug introduced in #2574 (#2585)
Browse files Browse the repository at this point in the history
we need to access bc as a reference for inflow to override the BC type
  • Loading branch information
zingale authored Sep 25, 2023
1 parent 025c1f1 commit 24cf701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/problems/Castro_bc_fill_nd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void ca_statefill(Box const& bx, FArrayBox& data,
// valid data is always present.

Vector<BCRec> bcr_noinflow{bcr};
for (auto bc : bcr_noinflow) {
for (auto & bc : bcr_noinflow) {
for (int dir = 0; dir < AMREX_SPACEDIM; ++dir) {
if (bc.lo(dir) == EXT_DIR) {
bc.setLo(dir, FOEXTRAP);
Expand Down

0 comments on commit 24cf701

Please sign in to comment.