IBAMR  IBAMR version 0.19.
Public Member Functions | List of all members
SAMRAI::xfer::LocallyActiveDataCoarsenPatchStrategy< DIM > Class Template Referenceabstract

Class LocallyActiveDataCoarsenPatchStrategy is an abstract base class that defines a Strategy pattern interface for operations that a user may supply for application-specific coarsening of locally-active data between two levels in an AMR patch hierarchy. This interface class is similar to the CoarsenPatchStrategy interface, except that it is used to treat locally-active patch data. A concrete subclass must define three member functions to perform the following tasks: More...

#include <LocallyActiveDataCoarsenPatchStrategy.h>

Inheritance diagram for SAMRAI::xfer::LocallyActiveDataCoarsenPatchStrategy< DIM >:
Inheritance graph
[legend]

Public Member Functions

 LocallyActiveDataCoarsenPatchStrategy ()
 
virtual ~LocallyActiveDataCoarsenPatchStrategy ()
 
virtual hier::IntVector< DIM > getCoarsenOpStencilWidth () const =0
 
virtual void preprocessCoarsen (hier::Patch< DIM > &coarse, const hier::Patch< DIM > &fine, const tbox::List< int > &src_data_ids, const hier::Box< DIM > &coarse_box, const hier::IntVector< DIM > &ratio)=0
 
virtual void postprocessCoarsen (hier::Patch< DIM > &coarse, const hier::Patch< DIM > &fine, const tbox::List< int > &src_data_ids, const hier::Box< DIM > &coarse_box, const hier::IntVector< DIM > &ratio)=0
 

Detailed Description

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

Note that the preprocess member function is called before standard data coarsening using CoarsenOperators and the postprocessor member function is called afterwards.

See also
xfer::LocallyActiveDataCoarsenAlgorithm
xfer::LocallyActiveDataCoarsenSchedule

Constructor & Destructor Documentation

◆ LocallyActiveDataCoarsenPatchStrategy()

The constructor for the coarsen strategy does nothing interesting.

◆ ~LocallyActiveDataCoarsenPatchStrategy()

The virtual destructor for the coarsen strategy does nothing interesting.

Member Function Documentation

◆ getCoarsenOpStencilWidth()

template<int DIM>
virtual hier::IntVector<DIM> SAMRAI::xfer::LocallyActiveDataCoarsenPatchStrategy< DIM >::getCoarsenOpStencilWidth ( ) const
pure virtual

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

◆ preprocessCoarsen()

template<int DIM>
virtual void SAMRAI::xfer::LocallyActiveDataCoarsenPatchStrategy< DIM >::preprocessCoarsen ( hier::Patch< DIM > &  coarse,
const hier::Patch< DIM > &  fine,
const tbox::List< int > &  src_data_ids,
const hier::Box< DIM > &  coarse_box,
const hier::IntVector< DIM > &  ratio 
)
pure virtual

Perform user-defined coarsening operations. This member function is called before standard coarsening operations (expressed using concrete subclasses of the CoarsenOperator<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 CoarsenAlgorithm<DIM> class.

Parameters
coarseCoarse patch containing destination data.
fineFine patch containing source data.
src_data_idsList of integer patch data ids to preprocess.
coarse_boxBox region on coarse patch into which data is coarsened.
ratioInteger vector containing ratio relating index space between coarse and fine patches.

◆ postprocessCoarsen()

template<int DIM>
virtual void SAMRAI::xfer::LocallyActiveDataCoarsenPatchStrategy< DIM >::postprocessCoarsen ( hier::Patch< DIM > &  coarse,
const hier::Patch< DIM > &  fine,
const tbox::List< int > &  src_data_ids,
const hier::Box< DIM > &  coarse_box,
const hier::IntVector< DIM > &  ratio 
)
pure 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 registerCoarsen() function in the CoarsenOperator<DIM> class.

Parameters
coarseCoarse patch containing destination data.
fineFine patch containing source data.
src_data_idsList of integer patch data ids to preprocess.
coarse_boxBox region on coarse patch into which data is copied.
ratioInteger vector containing ratio

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