#include <ERF_TerrainIF.H>
|
| TerrainIF (amrex::FArrayBox &a_z_terrain, amrex::Geometry &a_geom) |
|
AMREX_GPU_HOST_DEVICE amrex::Real | operator() (AMREX_D_DECL(amrex::Real x, amrex::Real y, amrex::Real z)) const noexcept |
|
amrex::Real | operator() (const amrex::RealArray &p) const noexcept |
|
◆ TerrainIF()
TerrainIF::TerrainIF |
( |
amrex::FArrayBox & |
a_z_terrain, |
|
|
amrex::Geometry & |
a_geom |
|
) |
| |
|
inline |
21 amrex::Print() <<
" EB type = Terrain " << std::endl;
amrex::FArrayBox & m_terr
Definition: ERF_TerrainIF.H:45
amrex::Geometry & m_geom
Definition: ERF_TerrainIF.H:46
◆ operator()() [1/2]
AMREX_GPU_HOST_DEVICE amrex::Real TerrainIF::operator() |
( |
AMREX_D_DECL(amrex::Real x, amrex::Real y, amrex::Real z) |
| ) |
const |
|
inlinenoexcept |
28 amrex::Real dx =
m_geom.CellSizeArray()[0];
29 amrex::Real dy =
m_geom.CellSizeArray()[1];
31 const int i =
static_cast<int>(
x / dx);
32 const int j =
static_cast<int>(
y / dy);
34 amrex::Array4<amrex::Real const>
const& terr_arr =
m_terr.const_array();
36 return -(
z - terr_arr(i,j,0));
Referenced by operator()().
◆ operator()() [2/2]
amrex::Real TerrainIF::operator() |
( |
const amrex::RealArray & |
p | ) |
const |
|
inlinenoexcept |
41 return this->
operator() (AMREX_D_DECL(p[0], p[1], p[2]));
AMREX_GPU_HOST_DEVICE amrex::Real operator()(AMREX_D_DECL(amrex::Real x, amrex::Real y, amrex::Real z)) const noexcept
Definition: ERF_TerrainIF.H:25
◆ m_geom
amrex::Geometry& TerrainIF::m_geom |
|
protected |
◆ m_terr
amrex::FArrayBox& TerrainIF::m_terr |
|
protected |
The documentation for this class was generated from the following file: