Skip to content

Commit

Permalink
use narrower eos_extra_t variants in the NSE table routines
Browse files Browse the repository at this point in the history
this should reduce memory
  • Loading branch information
zingale committed Nov 20, 2024
1 parent c89e334 commit 74d8771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nse_tabular/nse_eos.H
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ nse_T_abar_from_e(const Real rho, const Real e_in, const Real Ye,
Real abar_old = nse_state.abar;

// call the EOS with the initial guess for T
eos_extra_t eos_state;
eos_re_extra_t eos_state;
eos_state.rho = rho;
eos_state.T = T;
eos_state.aux[iye] = Ye;
Expand Down Expand Up @@ -156,7 +156,7 @@ nse_rho_abar_from_e(const Real T, const Real e_in, const Real Ye,
Real abar_old = nse_state.abar;

// call the EOS with the initial guess for rho
eos_extra_t eos_state;
eos_re_extra_t eos_state;
eos_state.rho = rho;
eos_state.T = T;
eos_state.aux[iye] = Ye;
Expand Down Expand Up @@ -247,7 +247,7 @@ nse_T_abar_from_p(const Real rho, const Real p_in, const Real Ye,
Real abar_old = nse_state.abar;

// call the EOS with the initial guess for T
eos_extra_t eos_state;
eos_rep_extra_t eos_state;
eos_state.rho = rho;
eos_state.T = T;
eos_state.aux[iye] = Ye;
Expand Down Expand Up @@ -338,7 +338,7 @@ nse_rho_abar_from_p(const Real T, const Real p_in, const Real Ye,
Real abar_old = nse_state.abar;

// call the EOS with the initial guess for rho
eos_extra_t eos_state;
eos_rep_extra_t eos_state;
eos_state.rho = rho;
eos_state.T = T;
eos_state.aux[iye] = Ye;
Expand Down

0 comments on commit 74d8771

Please sign in to comment.