1 #ifndef ERF_LENGTH_SCALE_CELL_SIZE_H_
2 #define ERF_LENGTH_SCALE_CELL_SIZE_H_
4 #include <AMReX_Array.H>
6 #include <AMReX_Geometry.H>
7 #include <AMReX_REAL.H>
27 inline amrex::GpuArray<amrex::Real, AMREX_SPACEDIM>
30 amrex::GpuArray<amrex::Real, AMREX_SPACEDIM>
dx = geom.CellSizeArray();
31 const amrex::Box& domain = geom.Domain();
32 const int nx = domain.length(0);
33 const int ny = domain.length(1);
34 if (
ny == 1 &&
nx > 1) {
36 }
else if (
nx == 1 &&
ny > 1) {
48 inline amrex::GpuArray<amrex::Real, AMREX_SPACEDIM>
51 amrex::GpuArray<amrex::Real, AMREX_SPACEDIM> dxinv = geom.InvCellSizeArray();
52 const amrex::Box& domain = geom.Domain();
53 const int nx = domain.length(0);
54 const int ny = domain.length(1);
55 if (
ny == 1 &&
nx > 1) {
57 }
else if (
nx == 1 &&
ny > 1) {
GpuArray< Real, AMREX_SPACEDIM > dx
Definition: ERF_ActuatorSpreading.cpp:131
const int nx
Definition: ERF_InitCustomPertVels_CloudChamber.H:14
const int ny
Definition: ERF_InitCustomPertVels_CloudChamber.H:15
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > LengthScaleCellSize(const amrex::Geometry &geom)
Definition: ERF_LengthScaleCellSize.H:28
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > LengthScaleInvCellSize(const amrex::Geometry &geom)
Definition: ERF_LengthScaleCellSize.H:49