![]() |
Block-Structured AMR Software Framework
|
#include <AMReX_MultiMask.H>
Public Member Functions | |
| MultiMask () | |
| Construct an empty MultiMask; call define() before use. | |
| MultiMask (const BoxArray &ba, const DistributionMapping &dm, int ncomp) | |
Construct masks over ba with mapping dm and ncomp components. | |
| MultiMask (const BoxArray ®ba, const DistributionMapping &dm, const Geometry &geom, Orientation face, int in_rad, int out_rad, int extent_rad, int ncomp, bool initval) | |
| Construct masks surrounding coarse/fine interfaces. | |
| ~MultiMask ()=default | |
| MultiMask (MultiMask &&rhs) noexcept=default | |
| MultiMask (const MultiMask &rhs)=delete | |
| MultiMask & | operator= (const MultiMask &rhs)=delete |
| MultiMask & | operator= (MultiMask &&rhs)=delete |
| void | define (const BoxArray &ba, const DistributionMapping &dm, int ncomp) |
Define masks over ba with mapping dm and ncomp components. | |
| void | define (const BoxArray ®ba, const DistributionMapping &dm, const Geometry &geom, Orientation face, int in_rad, int out_rad, int extent_rad, int ncomp, bool initval) |
Define masks for a coarse/fine interface region described by regba, dm, geom, face, and stencil widths in_rad/ | |
| Mask & | operator[] (const MFIter &mfi) noexcept |
Mutable access to the mask referenced by iterator mfi. | |
| const Mask & | operator[] (const MFIter &mfi) const noexcept |
Const access to the mask referenced by iterator mfi. | |
| Array4< int const > | array (const MFIter &mfi) const noexcept |
Return an Array4 view (const) for iterator mfi. | |
| Array4< int > | array (const MFIter &mfi) noexcept |
Return an Array4 view (mutable) for iterator mfi. | |
| Array4< int const > | const_array (const MFIter &mfi) const noexcept |
Return a const Array4 view for iterator mfi. | |
| MultiArray4< int const > | arrays () const noexcept |
| Return const multi-array views of every mask. | |
| MultiArray4< int > | arrays () noexcept |
| Return mutable multi-array views of every mask. | |
| MultiArray4< int const > | const_arrays () const noexcept |
| Return const multi-array views (alias of arrays()). | |
| int | nComp () const noexcept |
| Number of components stored in each mask. | |
| const BoxArray & | boxArray () const noexcept |
| BoxArray used to build this MultiMask. | |
| const DistributionMapping & | DistributionMap () const noexcept |
| DistributionMapping describing mask ownership. | |
Static Public Member Functions | |
| static void | Copy (MultiMask &dst, const MultiMask &src) |
Copy multi-mask data from src into dst. | |
Friends | |
| class | MultiMaskIter |
| amrex::MultiMask::MultiMask | ( | const BoxArray & | ba, |
| const DistributionMapping & | dm, | ||
| int | ncomp | ||
| ) |
Construct masks over ba with mapping dm and ncomp components.
| amrex::MultiMask::MultiMask | ( | const BoxArray & | regba, |
| const DistributionMapping & | dm, | ||
| const Geometry & | geom, | ||
| Orientation | face, | ||
| int | in_rad, | ||
| int | out_rad, | ||
| int | extent_rad, | ||
| int | ncomp, | ||
| bool | initval | ||
| ) |
Construct masks surrounding coarse/fine interfaces.
| regba | Regular BoxArray to cover. |
| dm | Distribution mapping. |
| geom | Geometry describing the physical domain. |
| face | Orientation for which to build masks. |
| in_rad | Number of inward cells. |
| out_rad | Number of outward cells. |
| extent_rad | Tangential extent. |
| ncomp | Number of components. |
| initval | Whether to initialize mask values immediately. |
|
default |
|
defaultnoexcept |
|
delete |
Return an Array4 view (const) for iterator mfi.
Return an Array4 view (mutable) for iterator mfi.
|
inlinenoexcept |
Return const multi-array views of every mask.
|
inlinenoexcept |
Return mutable multi-array views of every mask.
|
inlinenoexcept |
Return a const Array4 view for iterator mfi.
|
inlinenoexcept |
Return const multi-array views (alias of arrays()).
| void amrex::MultiMask::define | ( | const BoxArray & | ba, |
| const DistributionMapping & | dm, | ||
| int | ncomp | ||
| ) |
Define masks over ba with mapping dm and ncomp components.
| void amrex::MultiMask::define | ( | const BoxArray & | regba, |
| const DistributionMapping & | dm, | ||
| const Geometry & | geom, | ||
| Orientation | face, | ||
| int | in_rad, | ||
| int | out_rad, | ||
| int | extent_rad, | ||
| int | ncomp, | ||
| bool | initval | ||
| ) |
Define masks for a coarse/fine interface region described by regba, dm, geom, face, and stencil widths in_rad/ out_rad/ extent_rad.
|
inlinenoexcept |
DistributionMapping describing mask ownership.
|
inlinenoexcept |
Number of components stored in each mask.
Const access to the mask referenced by iterator mfi.
Mutable access to the mask referenced by iterator mfi.
|
friend |