#include <source/transfer/multiblock/MultiblockCoarsenPatchStrategy.h>
Inheritance diagram for SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >:
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 |
SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::MultiblockCoarsenPatchStrategy | ( | ) |
The constructor for coarsen strategy does nothing interesting.
SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::~MultiblockCoarsenPatchStrategy | ( | ) | [virtual] |
The virtual destructor for coarsen strategy does nothing interesting.
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.
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.
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 >.
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.
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 >.
virtual void SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::setCoarsenBlockNumber | ( | const int | block_number | ) | [inline, virtual] |
virtual int SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::getCoarsenBlockNumber | ( | ) | [inline, virtual] |
virtual void SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::clearCoarsenBlockNumber | ( | ) | [inline, virtual] |
int SAMRAI::xfer::MultiblockCoarsenPatchStrategy< DIM >::d_block_number [protected] |