ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPert_FlowInABox.H
Go to the documentation of this file.
1  ParmParse pp_prob("prob");
2  Real T_0_Pert_Mag = 0.0; pp_prob.query("T_0_Pert_Mag", T_0_Pert_Mag);
3 
4  // Add temperature perturbations
5  ParallelForRNG(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k, const amrex::RandomEngine& engine) noexcept
6  {
7  Real rand_double = amrex::Random(engine); // Between 0.0 and 1.0
8  state_pert(i, j, k, RhoTheta_comp) = (rand_double*2.0 - 1.0)*T_0_Pert_Mag;
9  state_pert(i, j, k, RhoTheta_comp) *= r_hse(i,j,k);
10  });
#define RhoTheta_comp
Definition: ERF_IndexDefines.H:37
state_pert(i, j, k, RhoTheta_comp)
Real T_0_Pert_Mag
Definition: ERF_InitCustomPert_FlowInABox.H:2
ParmParse pp_prob("prob")
ParallelForRNG(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k, const amrex::RandomEngine &engine) noexcept { Real rand_double=amrex::Random(engine);state_pert(i, j, k, RhoTheta_comp)=(rand_double *2.0 - 1.0) *T_0_Pert_Mag;state_pert(i, j, k, RhoTheta_comp) *=r_hse(i, j, k);})
amrex::Real Real
Definition: ERF_ShocInterface.H:19