SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM > Class Template Reference

Class MultiblockCoarsenPatchStrategy is an abstract base class that provides interfaces between coarsen operations in the multiblock classes and user's problem specific routines. In general, it mimics the standard CoarsenPatchStrategy class but implements some additional methods that supply information about the blocks. More...

#include <source/transfer/multiblock/MultiblockCoarsenPatchStrategy.h>

Inheritance diagram for SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MultiblockCoarsenPatchStrategy ()
virtual ~MultiblockCoarsenPatchStrategy ()
virtual hier::IntVector< DIM > getMultiblockCoarsenOpStencilWidth ()=0
virtual void preprocessCoarsen (hier::Patch< DIM > &coarse, const hier::Patch< DIM > &fine, const hier::Box< DIM > &coarse_box, const hier::IntVector< DIM > &ratio)
virtual void postprocessCoarsen (hier::Patch< DIM > &coarse, const hier::Patch< DIM > &fine, const hier::Box< DIM > &coarse_box, const hier::IntVector< DIM > &ratio)
virtual void setCoarsenBlockNumber (const int block_number)
virtual int getCoarsenBlockNumber ()
virtual void clearCoarsenBlockNumber ()

Protected Attributes

int d_block_number

Detailed Description

template<int DIM>
class SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >

Class MultiblockCoarsenPatchStrategy is an abstract base class that provides interfaces between coarsen operations in the multiblock classes and user's problem specific routines. In general, it mimics the standard CoarsenPatchStrategy class but implements some additional methods that supply information about the blocks.

See also:
xfer::CoarsenPatchStrategy

xfer::MultiblockCoarsenSchedule


Constructor & Destructor Documentation

template<int DIM>
SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::MultiblockCoarsenPatchStrategy (  ) 

The constructor for coarsen strategy does nothing interesting.

template<int DIM>
SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::~MultiblockCoarsenPatchStrategy (  )  [virtual]

The virtual destructor for coarsen strategy does nothing interesting.


Member Function Documentation

template<int DIM>
virtual hier::IntVector<DIM> SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::getMultiblockCoarsenOpStencilWidth (  )  [pure virtual]

Return maximum stencil width needed over all user-defined data coarsening operations. This is needed to determine the correct coarsening data dependencies.

template<int DIM>
virtual void SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::preprocessCoarsen ( hier::Patch< DIM > &  coarse,
const hier::Patch< DIM > &  fine,
const hier::Box< DIM > &  coarse_box,
const hier::IntVector< DIM > &  ratio 
) [inline, virtual]

Perform user-defined coarsening operations. This member function is called before standard coarsening operations (expressed using concrete subclasses of the MultiblockCoarsenOperator<DIM> base class). The preprocess function should move data from the source components on the fine patch into the source components on the coarse patch in the specified coarse box region. Recall that the source components are specified in calls to the registerCoarsen() function in the MultiblockCoarsenAlgorithm<DIM> class.

Parameters:
coarse Coarse patch containing destination data.
fine Fine patch containing source data.
coarse_box hier::Box region on coarse patch into which data is coarsened.
ratio Integer vector containing ratio relating index space between coarse and fine patches.

Implements SAMRAI::xfer::CoarsenPatchStrategy< DIM >.

template<int DIM>
virtual void SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::postprocessCoarsen ( hier::Patch< DIM > &  coarse,
const hier::Patch< DIM > &  fine,
const hier::Box< DIM > &  coarse_box,
const hier::IntVector< DIM > &  ratio 
) [inline, virtual]

Perform user-defined coarsening operations. This member function is called after standard coarsening operations (expressed using concrete subclasses of the CoarsenOperator<DIM> base class). The postprocess function should move data from the source components on the fine patch into the source components on the coarse patch in the specified coarse box region. Recall that the source components are specified in calls to the registerMultiblockCoarsen() function in the MultiblockCoarsenAlgorithm<DIM> class.

Parameters:
coarse Coarse patch containing destination data.
fine Fine patch containing source data.
coarse_box hier::Box region on coarse patch into which data is copied.
ratio Integer vector containing ratio

Implements SAMRAI::xfer::CoarsenPatchStrategy< DIM >.

template<int DIM>
virtual void SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::setCoarsenBlockNumber ( const int  block_number  )  [inline, virtual]

template<int DIM>
virtual int SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::getCoarsenBlockNumber (  )  [inline, virtual]

template<int DIM>
virtual void SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::clearCoarsenBlockNumber (  )  [inline, virtual]


Member Data Documentation

template<int DIM>
int SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::d_block_number [protected]


The documentation for this class was generated from the following files:
Generated on Thu Jun 18 11:29:11 2009 for SAMRAI by  doxygen 1.5.1