Skip to content

Commit

Permalink
change the SDC+NSE update to be more flexible
Browse files Browse the repository at this point in the history
this implements an RK2 integration
  • Loading branch information
zingale committed Nov 20, 2023
1 parent c2f5968 commit 58b85f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/nse_update_simplified_sdc.H
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void nse_derivs(const Real rho0, const Real rhoe0, const Real *rhoaux0,

// start with the current state and compute T

eos_t eos_state;
eos_re_t eos_state;
eos_state.rho = rho0;
eos_state.e = rhoe0 / rho0;
eos_state.T = 1.e8; // guess
Expand Down Expand Up @@ -214,13 +214,13 @@ void sdc_nse_burn(BurnT& state, const Real dt) {
Real rhoe_new = rhoe_old + dt * (state.ydot_a[SEINT] + drhoedt);
Real rhoaux_new[NumAux];
for (int n = 0; n < NumAux; ++n) {
rhoaux_tmp[n] = rhoaux_old[n] +
rhoaux_new[n] = rhoaux_old[n] +
dt * (state.ydot_a[SFX+n] + drhoauxdt[n]);
}

// get the new temperature

eos_t eos_state;
eos_re_t eos_state;
eos_state.rho = rho_new;
eos_state.e = rhoe_new / rho_new;
eos_state.T = 1.e8; // guess
Expand Down

0 comments on commit 58b85f1

Please sign in to comment.