Skip to content

Commit 1ac4c12

Browse files
authored
use narrower eos_extra_t variants in the NSE table routines (AMReX-Astro#1668)
this should reduce memory
1 parent b41ff25 commit 1ac4c12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nse_tabular/nse_eos.H

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ nse_T_abar_from_e(const amrex::Real rho, const amrex::Real e_in, const amrex::Re
6565
amrex::Real abar_old = nse_state.abar;
6666

6767
// call the EOS with the initial guess for T
68-
eos_extra_t eos_state;
68+
eos_re_extra_t eos_state;
6969
eos_state.rho = rho;
7070
eos_state.T = T;
7171
eos_state.aux[iye] = Ye;
@@ -156,7 +156,7 @@ nse_rho_abar_from_e(const amrex::Real T, const amrex::Real e_in, const amrex::Re
156156
amrex::Real abar_old = nse_state.abar;
157157

158158
// call the EOS with the initial guess for rho
159-
eos_extra_t eos_state;
159+
eos_re_extra_t eos_state;
160160
eos_state.rho = rho;
161161
eos_state.T = T;
162162
eos_state.aux[iye] = Ye;
@@ -247,7 +247,7 @@ nse_T_abar_from_p(const amrex::Real rho, const amrex::Real p_in, const amrex::Re
247247
amrex::Real abar_old = nse_state.abar;
248248

249249
// call the EOS with the initial guess for T
250-
eos_extra_t eos_state;
250+
eos_rep_extra_t eos_state;
251251
eos_state.rho = rho;
252252
eos_state.T = T;
253253
eos_state.aux[iye] = Ye;
@@ -338,7 +338,7 @@ nse_rho_abar_from_p(const amrex::Real T, const amrex::Real p_in, const amrex::Re
338338
amrex::Real abar_old = nse_state.abar;
339339

340340
// call the EOS with the initial guess for rho
341-
eos_extra_t eos_state;
341+
eos_rep_extra_t eos_state;
342342
eos_state.rho = rho;
343343
eos_state.T = T;
344344
eos_state.aux[iye] = Ye;

0 commit comments

Comments
 (0)