BISICLES AMR ice sheet model  0.9
Public Member Functions | Protected Attributes | List of all members
IntFineInterp Class Reference

replaces fine level BaseFAB<int> data with coarse level data More...

#include <IntFineInterp.H>

Public Member Functions

 IntFineInterp ()
 
 ~IntFineInterp ()
 
 IntFineInterp (const DisjointBoxLayout &a_fine_domain, const int &a_numcomps, const int &a_ref_ratio, const IntVect &a_ghost, const Box &a_fine_problem_domain)
 
 IntFineInterp (const DisjointBoxLayout &a_fine_domain, const int &a_numcomps, const int &a_ref_ratio, const IntVect &a_ghost, const ProblemDomain &a_fine_problem_domain)
 
void define (const DisjointBoxLayout &a_fine_domain, const int &a_numcomps, const int &a_ref_ratio, const IntVect &a_ghost, const Box &a_fine_problem_domain)
 
void define (const DisjointBoxLayout &a_fine_domain, const int &a_numcomps, const int &a_ref_ratio, const IntVect &a_ghost, const ProblemDomain &a_fine_problem_domain)
 
bool isDefined () const
 
void pwcInterpToFine (LevelData< BaseFab< int > > &a_fine_data, const LevelData< BaseFab< int > > &a_coarse_data)
 

Protected Attributes

bool is_defined
 
int m_ref_ratio
 
LevelData< BaseFab< int > > m_coarsened_fine_data
 
ProblemDomain m_coarse_problem_domain
 
IntVect m_fineGhost
 

Detailed Description

replaces fine level BaseFAB<int> data with coarse level data

Constructor & Destructor Documentation

◆ IntFineInterp() [1/3]

IntFineInterp::IntFineInterp ( )

Default constructor. User must subsequently call define().

◆ ~IntFineInterp()

IntFineInterp::~IntFineInterp ( )

Destructor.

◆ IntFineInterp() [2/3]

IntFineInterp::IntFineInterp ( const DisjointBoxLayout &  a_fine_domain,
const int &  a_numcomps,
const int &  a_ref_ratio,
const IntVect &  a_ghost,
const Box &  a_fine_problem_domain 
)

Defining constructor. Constructs a valid object. Equivalent to default construction followed by define().

{ Arguments:}\ a_fine_domain (not modified): the fine level domain.\ a_numcomps (not modified): the number of components.\ a_ref_ratio (not modified): the refinement ratio.\ a_ghost (not modified): ghost regions to fill.\ a_fine_problem_domain (not modified): problem domain at the fine level.\

References define().

◆ IntFineInterp() [3/3]

IntFineInterp::IntFineInterp ( const DisjointBoxLayout &  a_fine_domain,
const int &  a_numcomps,
const int &  a_ref_ratio,
const IntVect &  a_ghost,
const ProblemDomain &  a_fine_problem_domain 
)

Defining constructor. Constructs a valid object. Equivalent to default construction followed by define().

{ Arguments:}\ a_fine_domain (not modified): the fine level domain.\ a_numcomps (not modified): the number of components.\ a_ref_ratio (not modified): the refinement ratio.\ a_ghost (not modified): ghost regions to fill.\ a_fine_problem_domain (not modified): problem domain at the fine level.\

References define().

Member Function Documentation

◆ define() [1/2]

void IntFineInterp::define ( const DisjointBoxLayout &  a_fine_domain,
const int &  a_numcomps,
const int &  a_ref_ratio,
const IntVect &  a_ghost,
const Box &  a_fine_problem_domain 
)

Defines this object. Existing information is overriden.

{ Arguments:}\ a_fine_domain (not modified): the fine level domain.\ a_numcomps (not modified): the number of components.\ a_ref_ratio (not modified): the refinement ratio.\ a_ghost (not modified): ghost regions to fill.\ a_fine_problem_domain (not modified): problem domain at the fine level.\

{ This:}\ —This object is modified.—

Referenced by IntFineInterp().

◆ define() [2/2]

void IntFineInterp::define ( const DisjointBoxLayout &  a_fine_domain,
const int &  a_numcomps,
const int &  a_ref_ratio,
const IntVect &  a_ghost,
const ProblemDomain &  a_fine_problem_domain 
)

Defines this object. Existing information is overriden.

{ Arguments:}\ a_fine_domain (not modified): the fine level domain.\ a_numcomps (not modified): the number of components.\ a_ref_ratio (not modified): the refinement ratio.\ a_ghost (not modified): ghost regions to fill.\ a_fine_problem_domain (not modified): problem domain at the fine level.\

{ This:}\ —This object is modified.—

References is_defined, m_coarse_problem_domain, m_coarsened_fine_data, m_fineGhost, and m_ref_ratio.

◆ isDefined()

bool IntFineInterp::isDefined ( ) const

Returns true if this object was created with the defining constructor or if define() has been called.

{ This:}\ This object is not modified.

References is_defined.

◆ pwcInterpToFine()

void IntFineInterp::pwcInterpToFine ( LevelData< BaseFab< int > > &  a_fine_data,
const LevelData< BaseFab< int > > &  a_coarse_data 
)

Member Data Documentation

◆ is_defined

bool IntFineInterp::is_defined
protected

Referenced by define(), isDefined(), and pwcInterpToFine().

◆ m_coarse_problem_domain

ProblemDomain IntFineInterp::m_coarse_problem_domain
protected

Referenced by define().

◆ m_coarsened_fine_data

LevelData<BaseFab<int> > IntFineInterp::m_coarsened_fine_data
protected

Referenced by define(), and pwcInterpToFine().

◆ m_fineGhost

IntVect IntFineInterp::m_fineGhost
protected

Referenced by define().

◆ m_ref_ratio

int IntFineInterp::m_ref_ratio
protected

Referenced by define(), and pwcInterpToFine().


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