ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ColumnBands.H File Reference
#include <AMReX_BoxArray.H>
#include <AMReX_Geometry.H>
#include <AMReX_IntVect.H>
#include <AMReX_MultiFab.H>
#include <AMReX_Vector.H>
Include dependency graph for ERF_ColumnBands.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

amrex::Vector< int > column_bands (const amrex::BoxArray &ba)
 
void fill_below_band (amrex::MultiFab &mf, int icomp, int ncomp, int klo_band, const amrex::IntVect &lateral_ng, const amrex::Geometry &geom)
 

Function Documentation

◆ column_bands()

amrex::Vector<int> column_bands ( const amrex::BoxArray &  ba)

The distinct lowest z indices of the boxes of a BoxArray, bottom up.

Parameters
[in]baBoxArray of the level
Returns
lowest z index of every band of boxes, in increasing order

◆ fill_below_band()

void fill_below_band ( amrex::MultiFab &  mf,
int  icomp,
int  ncomp,
int  klo_band,
const amrex::IntVect &  lateral_ng,
const amrex::Geometry &  geom 
)

Fill the cells just below the boxes of mf whose lowest z index is klo_band, widened laterally by lateral_ng, from the boxes of mf below that band, which must already have been integrated. A cell inside a box below takes that box's value; otherwise a cell in the lateral ghost region of a box below takes the value that box holds there. A cell with no box of mf below it (e.g. under a refined patch that does not reach the ground) keeps the value it has.

Parameters
[in,out]mffield being integrated; needs lateral_ng ghost cells plus one in z
[in]icompfirst component to fill
[in]ncompnumber of components to fill
[in]klo_bandlowest z index of the band about to be integrated
[in]lateral_nglateral width of the filled slabs; its z entry must be zero
[in]geomgeometry of the level (lateral periodicity is honoured)