Skip to content

Commit

Permalink
Update for Microphysics EXTRA_THERMO change
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpkatz committed Jun 19, 2023
1 parent 5afd9ad commit 9066243
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 17 deletions.
7 changes: 0 additions & 7 deletions Exec/Make.Maestro
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ all: $(executable)
# Maestro uses a coarse grained OMP approach
DEFINES += -DCRSEGRNDOMP

# Maestro needs to compute additional thermodynamic derivatives in the EOS
DEFINES += -DEXTRA_THERMO

USE_MG = FALSE

ifeq ($(DIM), 1)
Expand Down Expand Up @@ -123,10 +120,6 @@ USE_CXX_REACTIONS := TRUE

ifeq ($(USE_REACT), TRUE)
DEFINES += -DREACTIONS
ifeq ($(USE_SDC), TRUE)
# we need the compositional derivatives for SDC
DEFINES += -DEXTRA_THERMO
endif
endif

# Maestro SDC uses the SDC_EVOLVE_ENTHALPY mode in StarKiller Microphysics
Expand Down
4 changes: 0 additions & 4 deletions Exec/science/urca/analysis/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ ifdef NEED_EOS_NETWORK

endif

# Add EXTRA_THERMO to FPP_DEFINES to calculate dpdA, etc.
EXTRA_THERMO := t
FPP_DEFINES += -DEXTRA_THERMO=$(EXTRA_THERMO)

# we are not using the CUDA stuff
FPP_DEFINES += -DAMREX_DEVICE=""

Expand Down
4 changes: 2 additions & 2 deletions Exec/test_problems/imposed_external_heating/MaestroMakeS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void Maestro::Make_S_cc(
const Array4<const Real> normal_arr = normal[lev].array(mfi);

AMREX_PARALLEL_FOR_3D(tileBox, i, j, k, {
eos_t eos_state;
eos_extra_t eos_state;

eos_state.rho = scal_arr(i, j, k, Rho);
eos_state.T = scal_arr(i, j, k, Temp);
Expand Down Expand Up @@ -199,7 +199,7 @@ void Maestro::Make_S_cc(
base_geom.anelastic_cutoff_density_coord(lev);

AMREX_PARALLEL_FOR_3D(tileBox, i, j, k, {
eos_t eos_state;
eos_extra_t eos_state;

eos_state.rho = scal_arr(i, j, k, Rho);
eos_state.T = scal_arr(i, j, k, Temp);
Expand Down
2 changes: 1 addition & 1 deletion Source/MaestroIntra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void Maestro::MakeIntraCoeffs(const Vector<MultiFab>& scal1,

ParallelFor(gtbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) {
// old state first
eos_t eos_state;
eos_extra_t eos_state;

eos_state.rho = scalold(i, j, k, Rho);
eos_state.T = scalold(i, j, k, Temp);
Expand Down
4 changes: 2 additions & 2 deletions Source/MaestroMakeS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void Maestro::Make_S_cc(
const Array4<const Real> normal_arr = normal[lev].array(mfi);

ParallelFor(tileBox, [=] AMREX_GPU_DEVICE(int i, int j, int k) {
eos_t eos_state;
eos_extra_t eos_state;

eos_state.rho = scal_arr(i, j, k, Rho);
eos_state.T = scal_arr(i, j, k, Temp);
Expand Down Expand Up @@ -199,7 +199,7 @@ void Maestro::Make_S_cc(
base_geom.anelastic_cutoff_density_coord(lev);

ParallelFor(tileBox, [=] AMREX_GPU_DEVICE(int i, int j, int k) {
eos_t eos_state;
eos_extra_t eos_state;

eos_state.rho = scal_arr(i, j, k, Rho);
eos_state.T = scal_arr(i, j, k, Temp);
Expand Down
2 changes: 1 addition & 1 deletion Source/MaestroThermal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void Maestro::MakeThermalCoeffs(const Vector<MultiFab>& scal,
Xkcoeff_arr(i, j, k, comp) = 0.0;
}
} else {
eos_t eos_state;
eos_extra_t eos_state;
eos_state.rho = scal_arr(i, j, k, Rho);
eos_state.T = scal_arr(i, j, k, Temp);
for (auto comp = 0; comp < NumSpec; ++comp) {
Expand Down

0 comments on commit 9066243

Please sign in to comment.