Skip to content

Commit

Permalink
fix zero of burn_weights in retry (#2826)
Browse files Browse the repository at this point in the history
we only need to setVal if we allocated burn_weights
  • Loading branch information
zingale authored Apr 16, 2024
1 parent 3d76cd5 commit 5cacc94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/driver/Castro_advance_ctu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ Castro::retry_advance_ctu(Real dt, const advance_status& status)
#endif

#ifdef REACTIONS
burn_weights.setVal(0.0);
if (castro::store_burn_weights) {
burn_weights.setVal(0.0);
}
#endif

// For simplified SDC, we'll have garbage data if we
Expand Down

0 comments on commit 5cacc94

Please sign in to comment.