Skip to content

Commit

Permalink
switch how we deal with the zeroing.
Browse files Browse the repository at this point in the history
Now we make it the job of the network
  • Loading branch information
zingale committed Jul 31, 2024
1 parent 391ffcb commit 14e234b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration/integrator_rhs_sdc.H
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void jac (const amrex::Real time, BurnT& state, T& int_state, MatrixType& pd)


if (state.T <= EOSData::mintemp || state.T >= integrator_rp::MAX_TEMP) {
pd.zero();
return;
}

Expand Down
1 change: 1 addition & 0 deletions integration/integrator_rhs_strang.H
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void jac ([[maybe_unused]] const amrex::Real time, BurnT& state, T& int_state, M
// bounds. Otherwise set the Jacobian to zero and return.

if (state.T <= EOSData::mintemp || state.T >= integrator_rp::MAX_TEMP) {
pd.zero();
return;
}

Expand Down

0 comments on commit 14e234b

Please sign in to comment.