Skip to content

Commit

Permalink
this works with ROCm > 5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Dec 17, 2023
1 parent 42fcc6e commit e1cf891
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions integration/integrator_rhs_simplified_sdc.H
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void rhs(const Real time, BurnT& state, T& int_state, RArray1D& ydot,

// make sure that the temperature is valid

#if 0
if (state.T <= EOSData::mintemp || state.T >= MAX_TEMP) {

for (int n = 1; n <= INT_NEQS; ++n) {
Expand All @@ -51,6 +52,7 @@ void rhs(const Real time, BurnT& state, T& int_state, RArray1D& ydot,
return;

}
#endif

// call the specific network to get the RHS

Expand Down Expand Up @@ -104,6 +106,7 @@ void jac (const Real time, BurnT& state, T& int_state, MatrixType& pd)
int_to_burn(time, int_state, state);


#if 0
if (state.T <= EOSData::mintemp || state.T >= MAX_TEMP) {

for (int j = 1; j <= INT_NEQS; ++j) {
Expand All @@ -115,6 +118,7 @@ void jac (const Real time, BurnT& state, T& int_state, MatrixType& pd)
return;

}
#endif

// Call the specific network routine to get the Jacobian.

Expand Down
6 changes: 4 additions & 2 deletions integration/integrator_rhs_strang.H
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void rhs (const Real time, BurnT& state, T& int_state, RArray1D& ydot, [[maybe_u

// Only do the burn if the incoming temperature is within the temperature
// bounds. Otherwise set the RHS to zero and return.

#if 0
if (state.T <= EOSData::mintemp || state.T >= MAX_TEMP) {

for (int n = 1; n <= INT_NEQS; ++n) {
Expand All @@ -60,6 +60,7 @@ void rhs (const Real time, BurnT& state, T& int_state, RArray1D& ydot, [[maybe_u
return;

}
#endif

state.time = time;

Expand Down Expand Up @@ -119,7 +120,7 @@ void jac ([[maybe_unused]] const Real time, BurnT& state, T& int_state, MatrixTy

// Only do the burn if the incoming temperature is within the temperature
// bounds. Otherwise set the Jacobian to zero and return.

#if 0
if (state.T <= EOSData::mintemp || state.T >= MAX_TEMP) {

for (int j = 1; j <= INT_NEQS; ++j) {
Expand All @@ -131,6 +132,7 @@ void jac ([[maybe_unused]] const Real time, BurnT& state, T& int_state, MatrixTy
return;

}
#endif

// Call the specific network routine to get the Jacobian.

Expand Down

0 comments on commit e1cf891

Please sign in to comment.