Skip to content

Commit 946f079

Browse files
authored
update the interface for update_density_in_time (#1244)
we don't need int_state
1 parent c8f5118 commit 946f079

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

integration/integrator_rhs_simplified_sdc.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void rhs(const Real time, BurnT& state, T& int_state, RArray1D& ydot,
2828

2929
// update rho
3030

31-
update_density_in_time(time, state, int_state);
31+
update_density_in_time(time, state);
3232

3333
// ensure that the mass fractions are valid -- only int_state is
3434
// updated here
@@ -91,7 +91,7 @@ void jac (const Real time, BurnT& state, T& int_state, MatrixType& pd)
9191

9292
// update rho, rho*u, ... in the burn_t state
9393

94-
update_density_in_time(time, state, int_state);
94+
update_density_in_time(time, state);
9595

9696
// ensure that the mass fractions are valid -- only int_state is
9797
// updated here

integration/integrator_type.H

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
using namespace integrator_rp;
77

8-
template <typename BurnT, typename T>
8+
template <typename BurnT>
99
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
10-
void update_density_in_time(const Real time, BurnT& state, [[maybe_unused]] const T& int_state)
10+
void update_density_in_time(const Real time, BurnT& state)
1111
{
1212

1313
// some quantities are only advected. Here we update those state
@@ -16,9 +16,6 @@ void update_density_in_time(const Real time, BurnT& state, [[maybe_unused]] cons
1616
// Note: we don't update the aux data here based on the X's -- that
1717
// needs to be done separately.
1818
//
19-
// Also note: int_state is only used as input for the case where
20-
// we need to construct rho from (rho X).
21-
2219
// we are always integrating from t = 0, so there is no offset
2320
// time needed here. The indexing of ydot_a is based on
2421
// the indices in burn_t and is 0-based

integration/integrator_type_simplified_sdc.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void renormalize_species(const Real time, BurnT& state, T& int_state)
2323

2424
// update rho, rho*u, etc.
2525

26-
update_density_in_time(time, state, int_state);
26+
update_density_in_time(time, state);
2727

2828
Real nspec_sum = 0.0_rt;
2929
for (int n = 1; n <= NumSpec; n++) {
@@ -105,7 +105,7 @@ void int_to_burn(const Real time, const T& int_state, BurnT& state)
105105
// update rho in the burn_t state
106106
// this may be redundant, but better to be safe
107107

108-
update_density_in_time(time, state, int_state);
108+
update_density_in_time(time, state);
109109

110110
Real rhoInv = 1.0_rt / state.rho;
111111

0 commit comments

Comments
 (0)