Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use narrower eos_extra_t variants in the NSE table routines #1668

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use narrower eos_extra_t variants in the NSE table routines
this should reduce memory
zingale committed Nov 20, 2024
commit 74d8771d3b30fed3f0e668a1d9052c96df6d3e54
8 changes: 4 additions & 4 deletions nse_tabular/nse_eos.H
Original file line number Diff line number Diff line change
@@ -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;
@@ -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;
@@ -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;
@@ -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;