Skip to content

Commit

Permalink
redefine PRIMORDIAL_CHEM as CHEMISTRY
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 29, 2024
1 parent 0808034 commit f331724
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/chemistry/Chemistry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "hydro/hydro_system.hpp"
#include "radiation/radiation_system.hpp"

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
#include "actual_eos_data.H"
#include "burn_type.H"
#include "eos.H"
Expand Down
16 changes: 8 additions & 8 deletions src/hydro/EOS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "eos.H"

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
#include "actual_eos_data.H"
#endif

Expand Down Expand Up @@ -79,7 +79,7 @@ EOS<problem_t>::ComputeTgasFromEint(amrex::Real rho, amrex::Real Eint,
// return temperature for an ideal gas given density and internal energy
amrex::Real Tgas = NAN;

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
chemstate.e = Eint / rho;
Expand Down Expand Up @@ -121,7 +121,7 @@ EOS<problem_t>::ComputeEintFromTgas(amrex::Real rho, amrex::Real Tgas,
// return internal energy density given density and temperature
amrex::Real Eint = NAN;

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
// Define and initialize Tgas here
Expand Down Expand Up @@ -164,7 +164,7 @@ EOS<problem_t>::ComputeEintFromPres(amrex::Real rho, amrex::Real Pressure,
// return internal energy density given density and pressure
amrex::Real Eint = NAN;

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
chemstate.p = Pressure;
Expand Down Expand Up @@ -205,7 +205,7 @@ EOS<problem_t>::ComputeEintTempDerivative(const amrex::Real rho, const amrex::Re
// compute derivative of internal energy w/r/t temperature, given density and temperature
amrex::Real dEint_dT = NAN;

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
// we don't need Tgas to find chemstate.dedT, but we still need to initialize chemstate.T because we are using the 'rt' EOS mode
Expand Down Expand Up @@ -254,7 +254,7 @@ EOS<problem_t>::ComputeOtherDerivatives(const amrex::Real rho, const amrex::Real
// fundamental derivative
amrex::Real G = NAN;

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
chemstate.p = P;
Expand Down Expand Up @@ -302,7 +302,7 @@ EOS<problem_t>::ComputePressure(amrex::Real rho, amrex::Real Eint, std::optional
{
// return pressure for an ideal gas
amrex::Real P = NAN;
#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
chemstate.e = Eint / rho;
Expand Down Expand Up @@ -348,7 +348,7 @@ EOS<problem_t>::ComputeSoundSpeed(amrex::Real rho, amrex::Real Pressure,
// return sound speed for an ideal gas
amrex::Real cs = NAN;

#ifdef PRIMORDIAL_CHEM
#ifdef CHEMISTRY
eos_t chemstate;
chemstate.rho = rho;
chemstate.p = Pressure;
Expand Down

0 comments on commit f331724

Please sign in to comment.