#include <AMReX_BoxArray.H>
#include <AMReX_Geometry.H>
#include <AMReX_IntVect.H>
#include <AMReX_MultiFab.H>
#include <AMReX_Vector.H>
Go to the source code of this file.
|
| 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) |
| |
◆ 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] | ba | BoxArray 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] | mf | field being integrated; needs lateral_ng ghost cells plus one in z |
| [in] | icomp | first component to fill |
| [in] | ncomp | number of components to fill |
| [in] | klo_band | lowest z index of the band about to be integrated |
| [in] | lateral_ng | lateral width of the filled slabs; its z entry must be zero |
| [in] | geom | geometry of the level (lateral periodicity is honoured) |