Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a copy of the mask in the reaction code #2835

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra
auto U = s.array(mfi);
auto reactions = r.array(mfi);
auto weights = store_burn_weights ? burn_weights.array(mfi) : Array4<Real>{};
const auto mask = mask_covered_zones ? mask_mf.array(mfi) : Array4<Real>{};
Array4<Real> empty_arr{};
const auto& mask = mask_covered_zones ? mask_mf.array(mfi) : empty_arr;

const auto dx = geom.CellSizeArray();
#ifdef MODEL_PARSER
Expand Down Expand Up @@ -550,7 +551,8 @@ Castro::react_state(Real time, Real dt)
auto I = SDC_react.array(mfi);
auto react_src = reactions.array(mfi);
auto weights = store_burn_weights ? burn_weights.array(mfi) : Array4<Real>{};
const auto mask = mask_covered_zones ? mask_mf.array(mfi) : Array4<Real>{};
Array4<Real> empty_arr{};
const auto& mask = mask_covered_zones ? mask_mf.array(mfi) : empty_arr;

int lsdc_iteration = sdc_iteration;

Expand Down