Proto  3.2
Public Member Functions | Private Attributes | List of all members
Proto::MBAMRLayout Class Reference

Multiblock AMR Grid. More...

#include <Proto_MBAMRLayout.H>

Public Member Functions

 MBAMRLayout ()
 
 MBAMRLayout (const MBProblemDomain &a_coarseDomain, const std::vector< MBPoint > &a_coarsePatches, const std::vector< Point > &a_coarseBoxSizes, const std::vector< Point > &a_refRatios)
 
 MBAMRLayout (const MBProblemDomain &a_coarseDomain, const std::vector< Point > &a_coarseBoxSizes, const std::vector< Point > &a_refRatios)
 
 MBAMRLayout (const MBProblemDomain &a_coarseDomain, Point a_coarseBoxSize, Point a_refRatio, int a_numLevels)
 
void define (const MBProblemDomain &a_coarseDomain, const std::vector< MBPoint > &a_coarsePatches, const std::vector< Point > &a_coarseBoxSizes, const std::vector< Point > &a_refRatios)
 
void define (const MBProblemDomain &a_coarseDomain, const std::vector< Point > &a_coarseBoxSizes, const std::vector< Point > &a_refRatios)
 
void setPatches (const std::vector< MBPoint > &a_coarsePatches)
 
void setPatches (int a_level, const std::vector< MBPoint > &a_coarsePatches)
 
const AMRGridgetBlock (BlockIndex a_block) const
 
AMRGridgetBlock (BlockIndex a_block)
 
const MBDisjointBoxLayoutgetLevel (int a_level) const
 
MBDisjointBoxLayoutgetLevel (int a_level)
 
const MBDisjointBoxLayoutoperator[] (int a_level) const
 
MBDisjointBoxLayoutoperator[] (int a_level)
 
unsigned int numLevels () const
 
unsigned int maxLevels () const
 
unsigned int numBlocks () const
 
std::vector< PointrefRatios () const
 
MBIndex find (Point a_point, BlockIndex a_block, int a_level) const
 
MBIterator begin (int a_level) const
 
MBIterator end (int a_level) const
 

Private Attributes

std::vector< Pointm_refRatios
 
std::shared_ptr< MBAMRBoxPartitionm_partition
 
std::vector< AMRGridm_grids
 One grid per block. More...
 
std::vector< MBDisjointBoxLayoutm_layouts
 One layout per level. More...
 

Detailed Description

Multiblock AMR Grid.

Constructor & Destructor Documentation

◆ MBAMRLayout() [1/4]

Proto::MBAMRLayout::MBAMRLayout ( )
inline

◆ MBAMRLayout() [2/4]

Proto::MBAMRLayout::MBAMRLayout ( const MBProblemDomain a_coarseDomain,
const std::vector< MBPoint > &  a_coarsePatches,
const std::vector< Point > &  a_coarseBoxSizes,
const std::vector< Point > &  a_refRatios 
)
inline

◆ MBAMRLayout() [3/4]

Proto::MBAMRLayout::MBAMRLayout ( const MBProblemDomain a_coarseDomain,
const std::vector< Point > &  a_coarseBoxSizes,
const std::vector< Point > &  a_refRatios 
)
inline

◆ MBAMRLayout() [4/4]

Proto::MBAMRLayout::MBAMRLayout ( const MBProblemDomain a_coarseDomain,
Point  a_coarseBoxSize,
Point  a_refRatio,
int  a_numLevels 
)
inline

Member Function Documentation

◆ define() [1/2]

void Proto::MBAMRLayout::define ( const MBProblemDomain a_coarseDomain,
const std::vector< MBPoint > &  a_coarsePatches,
const std::vector< Point > &  a_coarseBoxSizes,
const std::vector< Point > &  a_refRatios 
)
inline

◆ define() [2/2]

void Proto::MBAMRLayout::define ( const MBProblemDomain a_coarseDomain,
const std::vector< Point > &  a_coarseBoxSizes,
const std::vector< Point > &  a_refRatios 
)
inline

◆ setPatches() [1/2]

void Proto::MBAMRLayout::setPatches ( const std::vector< MBPoint > &  a_coarsePatches)
inline

◆ setPatches() [2/2]

void Proto::MBAMRLayout::setPatches ( int  a_level,
const std::vector< MBPoint > &  a_coarsePatches 
)
inline

◆ getBlock() [1/2]

const AMRGrid & Proto::MBAMRLayout::getBlock ( BlockIndex  a_block) const
inline

◆ getBlock() [2/2]

AMRGrid & Proto::MBAMRLayout::getBlock ( BlockIndex  a_block)
inline

◆ getLevel() [1/2]

const MBDisjointBoxLayout & Proto::MBAMRLayout::getLevel ( int  a_level) const
inline

Referenced by operator[]().

◆ getLevel() [2/2]

MBDisjointBoxLayout & Proto::MBAMRLayout::getLevel ( int  a_level)
inline

◆ operator[]() [1/2]

const MBDisjointBoxLayout& Proto::MBAMRLayout::operator[] ( int  a_level) const
inline

References getLevel().

◆ operator[]() [2/2]

MBDisjointBoxLayout& Proto::MBAMRLayout::operator[] ( int  a_level)
inline

References getLevel().

◆ numLevels()

unsigned int Proto::MBAMRLayout::numLevels ( ) const
inline

◆ maxLevels()

unsigned int Proto::MBAMRLayout::maxLevels ( ) const
inline

References numLevels().

◆ numBlocks()

unsigned int Proto::MBAMRLayout::numBlocks ( ) const
inline

◆ refRatios()

std::vector<Point> Proto::MBAMRLayout::refRatios ( ) const
inline

References begin(), end(), find(), and m_refRatios.

◆ find()

MBIndex Proto::MBAMRLayout::find ( Point  a_point,
BlockIndex  a_block,
int  a_level 
) const
inline

Referenced by refRatios().

◆ begin()

MBIterator Proto::MBAMRLayout::begin ( int  a_level) const
inline

Referenced by refRatios().

◆ end()

MBIterator Proto::MBAMRLayout::end ( int  a_level) const
inline

Referenced by refRatios().

Member Data Documentation

◆ m_refRatios

std::vector<Point> Proto::MBAMRLayout::m_refRatios
private

Referenced by refRatios().

◆ m_partition

std::shared_ptr<MBAMRBoxPartition> Proto::MBAMRLayout::m_partition
private

◆ m_grids

std::vector<AMRGrid> Proto::MBAMRLayout::m_grids
private

One grid per block.

Referenced by numBlocks().

◆ m_layouts

std::vector<MBDisjointBoxLayout> Proto::MBAMRLayout::m_layouts
private

One layout per level.

Referenced by numLevels().


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