Block-Structured AMR Software Framework
amrex::FillPatchIterator Class Reference

#include <AMReX_AmrLevel.H>

Inheritance diagram for amrex::FillPatchIterator:
amrex::MFIter

Public Member Functions

 FillPatchIterator (AmrLevel &amrlevel, MultiFab &leveldata)
 
 FillPatchIterator (AmrLevel &amrlevel, MultiFab &leveldata, int boxGrow, Real time, int idx, int scomp, int ncomp)
 
void Initialize (int boxGrow, Real time, int idx, int scomp, int ncomp)
 
FArrayBoxoperator() () noexcept
 
Box UngrownBox () const noexcept
 
MultiFabget_mf () noexcept
 
- Public Member Functions inherited from amrex::MFIter
 MFIter (const FabArrayBase &fabarray, unsigned char flags_=0)
 The default constructor does not enable tiling (flags_ is set to 0 by default). However, the tiling mode can be enabled by explicitly turning the tiling flag on (i.e. flags_ = Tiling). The tile size in this case is defined by FabArrayBase::mfiter_tile_size. More...
 
 MFIter (const FabArrayBase &fabarray, bool do_tiling)
 Enable tiling with the default tile size, which is defined by FabArrayBase::mfiter_tile_size. More...
 
 MFIter (const FabArrayBase &fabarray, const IntVect &tilesize, unsigned char flags_=0)
 Enable tiling with explicit tile size and flags (See type Flags for more information) More...
 
 MFIter (const BoxArray &ba, const DistributionMapping &dm, unsigned char flags_=0)
 
 MFIter (const BoxArray &ba, const DistributionMapping &dm, bool do_tiling)
 
 MFIter (const BoxArray &ba, const DistributionMapping &dm, const IntVect &tilesize, unsigned char flags_=0)
 
 MFIter (const FabArrayBase &fabarray, const MFItInfo &info)
 
 MFIter (const BoxArray &ba, const DistributionMapping &dm, const MFItInfo &info)
 
 MFIter (MFIter &&rhs)=default
 
 MFIter (MFIter const &)=delete
 
MFIteroperator= (MFIter const &)=delete
 
MFIteroperator= (MFIter &&)=delete
 
 ~MFIter ()
 
Box tilebox () const noexcept
 Return the tile Box at the current index. More...
 
Box tilebox (const IntVect &nodal) const noexcept
 Return the tilebox with provided nodal flag. More...
 
Box tilebox (const IntVect &nodal, const IntVect &ngrow) const noexcept
 Return the tilebox with provided nodal flag and grown cells. More...
 
Box nodaltilebox (int dir=-1) const noexcept
 Return the dir-nodal (or all nodal if dir<0) Box at the current index. More...
 
Box growntilebox (int ng=-1000000) const noexcept
 Return the tile box at the current index grown to include ghost cells. More...
 
Box growntilebox (const IntVect &ng) const noexcept
 
Box grownnodaltilebox (int dir=-1, int ng=-1000000) const noexcept
 Return the dir-nodal (or all nodal if dir<0) box grown to include ghost cells. More...
 
Box grownnodaltilebox (int dir, const IntVect &ng) const noexcept
 
Box validbox () const noexcept
 Return the valid Box in which the current tile resides. More...
 
Box fabbox () const noexcept
 Return the Box of the FAB at which we currently point. More...
 
void operator++ () noexcept
 Increment iterator to the next tile we own. More...
 
bool isValid () const noexcept
 Is the iterator valid i.e. is it associated with a FAB? More...
 
int index () const noexcept
 The index into the underlying BoxArray of the current FAB. More...
 
int length () const noexcept
 The number of indices. More...
 
int LocalTileIndex () const noexcept
 The current local tile index in the current grid;. More...
 
int numLocalTiles () const noexcept
 The the number of tiles in the current grid;. More...
 
int LocalIndex () const noexcept
 Return local index into the vector of fab pointers, m_fabs_v When AllBoxes is on, local_index_map is a nullptr and local index is current index. More...
 
const FabArrayBasetheFabArrayBase () const noexcept
 Constant reference to FabArray over which we're iterating. More...
 
int tileIndex () const noexcept
 
const DistributionMappingDistributionMap () const noexcept
 
void Finalize ()
 

Private Member Functions

void FillFromLevel0 (Real time, int idx, int scomp, int dcomp, int ncomp)
 
void FillFromTwoLevels (Real time, int idx, int scomp, int dcomp, int ncomp)
 

Private Attributes

AmrLevelm_amrlevel
 
MultiFabm_leveldata
 
std::vector< std::pair< int, int > > m_range
 
MultiFab m_fabs
 
int m_ncomp
 

Friends

class AmrLevel
 

Additional Inherited Members

- Public Types inherited from amrex::MFIter
enum  Flags { Tiling = 0x01 , AllBoxes = 0x02 , NoTeamBarrier = 0x04 }
 Flags that specify tiling modes. All these flags are off by default. More...
 
- Static Public Member Functions inherited from amrex::MFIter
static int allowMultipleMFIters (int allow)
 
static int currentDepth ()
 
- Protected Member Functions inherited from amrex::MFIter
void Initialize ()
 
- Protected Attributes inherited from amrex::MFIter
std::unique_ptr< FabArrayBasem_fa
 This must be the first member! More...
 
const FabArrayBasefabArray
 
IntVect tile_size
 
unsigned char flags
 
int currentIndex
 
int beginIndex
 
int endIndex
 
int streams
 
IndexType typ
 
bool dynamic
 
bool finalized = false
 
DeviceSync device_sync
 
const Vector< int > * index_map
 
const Vector< int > * local_index_map
 
const Vector< Box > * tile_array
 
const Vector< int > * local_tile_index_map
 
const Vector< int > * num_local_tiles
 
- Static Protected Attributes inherited from amrex::MFIter
static AMREX_EXPORT int nextDynamicIndex = std::numeric_limits<int>::min()
 
static AMREX_EXPORT int depth = 0
 
static AMREX_EXPORT int allow_multiple_mfiters = 0
 

Constructor & Destructor Documentation

◆ FillPatchIterator() [1/2]

amrex::FillPatchIterator::FillPatchIterator ( AmrLevel amrlevel,
MultiFab leveldata 
)

◆ FillPatchIterator() [2/2]

amrex::FillPatchIterator::FillPatchIterator ( AmrLevel amrlevel,
MultiFab leveldata,
int  boxGrow,
Real  time,
int  idx,
int  scomp,
int  ncomp 
)

Member Function Documentation

◆ FillFromLevel0()

void amrex::FillPatchIterator::FillFromLevel0 ( Real  time,
int  idx,
int  scomp,
int  dcomp,
int  ncomp 
)
private

◆ FillFromTwoLevels()

void amrex::FillPatchIterator::FillFromTwoLevels ( Real  time,
int  idx,
int  scomp,
int  dcomp,
int  ncomp 
)
private

◆ get_mf()

MultiFab& amrex::FillPatchIterator::get_mf ( )
inlinenoexcept

◆ Initialize()

void amrex::FillPatchIterator::Initialize ( int  boxGrow,
Real  time,
int  idx,
int  scomp,
int  ncomp 
)

◆ operator()()

FArrayBox& amrex::FillPatchIterator::operator() ( )
inlinenoexcept

◆ UngrownBox()

Box amrex::FillPatchIterator::UngrownBox ( ) const
inlinenoexcept

Friends And Related Function Documentation

◆ AmrLevel

friend class AmrLevel
friend

Member Data Documentation

◆ m_amrlevel

AmrLevel* amrex::FillPatchIterator::m_amrlevel
private

◆ m_fabs

MultiFab amrex::FillPatchIterator::m_fabs
private

◆ m_leveldata

MultiFab* amrex::FillPatchIterator::m_leveldata
private

◆ m_ncomp

int amrex::FillPatchIterator::m_ncomp
private

◆ m_range

std::vector< std::pair<int,int> > amrex::FillPatchIterator::m_range
private

The documentation for this class was generated from the following files: