Go to the source code of this file.
|
| ParmParse | pp_for_pert_vels ("prob") |
| |
| pp_for_pert_vels | query ("U_0", U_0) |
| |
| pp_for_pert_vels | query ("V_0", V_0) |
| |
| | ParallelFor (xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;}) |
| |
| | ParallelFor (ybx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { y_vel_pert(i, j, k)=V_0;}) |
| |
| | if (sc.terrain_type==TerrainType::StaticFittedMesh) |
| |
◆ if()
| if |
( |
sc. |
terrain_type = = TerrainType::StaticFittedMesh | ) |
|
28 ParallelFor(
zbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
31 x_vel_pert, y_vel_pert,
32 mf_u, mf_v, z_nd,
dxInv);
amrex::GpuArray< Real, AMREX_SPACEDIM > dxInv
Definition: ERF_InitCustomPertVels_WitchOfAgnesi.H:23
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
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real WFromOmega(int &i, int &j, int &k, amrex::Real omega, const amrex::Array4< const amrex::Real > &u_arr, const amrex::Array4< const amrex::Real > &v_arr, const amrex::Array4< const amrex::Real > &mf_u, const amrex::Array4< const amrex::Real > &mf_v, const amrex::Array4< const amrex::Real > &z_nd, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &dxInv)
Definition: ERF_TerrainMetrics.H:462
◆ ParallelFor() [1/2]
| ParallelFor |
( |
xbx |
, |
|
|
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;} |
|
|
) |
| |
◆ ParallelFor() [2/2]
| ParallelFor |
( |
ybx |
, |
|
|
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { y_vel_pert(i, j, k)=V_0;} |
|
|
) |
| |
◆ pp_for_pert_vels()
| ParmParse pp_for_pert_vels |
( |
"prob" |
| ) |
|
◆ query() [1/2]
◆ query() [2/2]
◆ dx
| const auto dx = geomdata.CellSize() |
◆ dxInv
◆ U_0
◆ V_0