59 const amrex::Real rho_value = states(i,j,k,
Rho_comp);
61 rho(i,j,k) = rho_value;
62 theta(i,j,k) = rho_theta / rho_value;
63 qv(i,j,k) = amrex::max(amrex::Real(0.0), states(i,j,k,
RhoQ1_comp) / rho_value);
64 qc(i,j,k) = amrex::max(amrex::Real(0.0), states(i,j,k,
RhoQ2_comp) / rho_value);
65 qi(i,j,k) = amrex::max(amrex::Real(0.0), states(i,j,k,
RhoQ3_comp) / rho_value);
66 qr(i,j,k) = amrex::max(amrex::Real(0.0), states(i,j,k,
RhoQ4_comp) / rho_value);
67 qs(i,j,k) = amrex::max(amrex::Real(0.0), states(i,j,k,
RhoQ5_comp) / rho_value);
68 qg(i,j,k) = amrex::max(amrex::Real(0.0), states(i,j,k,
RhoQ6_comp) / rho_value);
70 const amrex::Real
p0 = use_anelastic_reference_pressure
73 rho_value, rho_theta,
qv(i,j,k),
rdOcp,
74 use_anelastic_reference_pressure,
p0);
#define Rho_comp
Definition: ERF_IndexDefines.H:61
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE MicrophysicsThermoState diagnose_microphysics_thermo_state(const amrex::Real rho, const amrex::Real rho_theta, const amrex::Real qv, const amrex::Real rdOcp, const bool use_anelastic_reference_pressure, const amrex::Real p0) noexcept
Definition: ERF_MicrophysicsUtils.H:36
@ p0_comp
Definition: ERF_IndexDefines.H:110
Definition: ERF_ConsoleIO.cpp:17
real(c_double), parameter p0
Definition: ERF_module_model_constants.F90:40
Definition: ERF_MicrophysicsUtils.H:22
amrex::Real pressure_pa
Definition: ERF_MicrophysicsUtils.H:23
amrex::Real temperature
Definition: ERF_MicrophysicsUtils.H:24