ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPertVels_ConstantU.H
Go to the documentation of this file.
1 
2  ParmParse pp_prob("prob");
3  Real U_0 = 0.0; pp_prob.query("U_0", U_0);
4  Real V_0 = 0.0; pp_prob.query("V_0", V_0);
5  Real W_0 = 0.0; pp_prob.query("W_0", W_0);
6 
7  // Set the x-velocity
8  ParallelFor(xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
9  {
10  x_vel_pert(i, j, k) = U_0;
11  });
12 
13  // Set the y-velocity
14  ParallelFor(ybx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
15  {
16  y_vel_pert(i, j, k) = V_0;
17  });
18 
19  // Set the z-velocity
20  ParallelFor(zbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
21  {
22  z_vel_pert(i, j, k) = W_0;
23  });
ParmParse pp_prob("prob")
Real U_0
Definition: ERF_InitCustomPertVels_ConstantU.H:3
Real V_0
Definition: ERF_InitCustomPertVels_ConstantU.H:4
Real W_0
Definition: ERF_InitCustomPertVels_ConstantU.H:5
ParallelFor(xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;})
const Box zbx
Definition: ERF_SetupDiff.H:9
const Box xbx
Definition: ERF_SetupDiff.H:7
const Box ybx
Definition: ERF_SetupDiff.H:8
amrex::Real Real
Definition: ERF_ShocInterface.H:19