ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_PoissonWallDist.cpp File Reference
#include "ERF.H"
#include "ERF_Constants.H"
#include "ERF_Utils.H"
#include "ERF_TerrainPoisson_3D_K.H"
#include "ERF_TerrainMetrics.H"
#include "AMReX_MLMG.H"
#include "AMReX_MLABecLaplacian.H"
Include dependency graph for ERF_PoissonWallDist.cpp:

Namespaces

 erf_detail_PoissonWallDist
 

Functions

static MultiFab surface_slab (const MultiFab &z_nd, int klo)
 
void erf_detail_PoissonWallDist::assert_surface_gathered (const MultiFab &znd_surf)
 

Function Documentation

◆ surface_slab()

static MultiFab surface_slab ( const MultiFab &  z_nd,
int  klo 
)
static

Nodal slab at k = klo on the 2D footprint of every box of z_nd, so that boxes that do not touch the surface (a BoxArray split in z, a refined level that stops above the ground) still hold the surface nodes once fill_surface_nodes has run.

Parameters
z_ndNodal physical heights of the level
kloLowest k index of the level's domain
25 {
26  BoxList bl_surf = z_nd.boxArray().boxList();
27  for (auto& b : bl_surf) { b.setRange(2,klo); }
28  BoxArray ba_surf(std::move(bl_surf));
29  IntVect ng_surf = z_nd.nGrowVect(); ng_surf[2] = 0;
30  return MultiFab(ba_surf, z_nd.DistributionMap(), 1, ng_surf);
31 }
const int klo
Definition: ERF_InitCustomPert_KE.H:9

Referenced by ERF::poisson_wall_dist().

Here is the caller graph for this function: