ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPertVels_ConstantU.H
Go to the documentation of this file.
1 
2  amrex::Gpu::streamSynchronize();
3  ParmParse pp_for_pert_vels("prob");
4  Real U_0 = 10.0; pp_for_pert_vels.query("U_0", U_0);
5 
6  // Set the x-velocity
7  ParallelFor(xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
8  {
9  x_vel_pert(i, j, k) = U_0;
10  });
ParmParse pp_for_pert_vels("prob")
Real U_0
Definition: ERF_InitCustomPertVels_ConstantU.H:4
ParallelFor(xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;})
const Box xbx
Definition: ERF_SetupDiff.H:7
amrex::Real Real
Definition: ERF_ShocInterface.H:19