IBAMR  IBAMR version 0.19.
Public Member Functions | Private Attributes | List of all members
SAMRAI::geom::SkeletonCoarsen< DIM > Class Template Reference

#include <SkeletonCoarsen.h>

Inheritance diagram for SAMRAI::geom::SkeletonCoarsen< DIM >:
Inheritance graph
[legend]

Public Member Functions

 SkeletonCoarsen ()
 
virtual ~SkeletonCoarsen ()
 
bool findCoarsenOperator (const tbox::Pointer< hier::Variable< DIM > > &var, const std::string &op_name) const
 
const std::string & getOperatorName () const
 
int getOperatorPriority () const
 
hier::IntVector< DIM > getStencilWidth () const
 
void coarsen (hier::Patch< DIM > &coarse, const hier::Patch< DIM > &fine, const int dst_component, const int src_component, const hier::Box< DIM > &coarse_box, const hier::IntVector< DIM > &ratio) const
 

Private Attributes

std::string d_name_id
 

Detailed Description

template<int DIM>
class SAMRAI::geom::SkeletonCoarsen< DIM >

Class SkeletonCoarsen implements a dummy coarsen operator for the skeleton geometry type. It does nothing but provide
basic implementations of the pure virtual functions in the coarsen operator interface. The findCoarsenOperator() operator function returns true if the the argument string is "SKELETON_COARSEN".

See also
xfer::CoarsenOperator

Constructor & Destructor Documentation

◆ SkeletonCoarsen()

template<int DIM>
SAMRAI::geom::SkeletonCoarsen< DIM >::SkeletonCoarsen ( )

Uninteresting default constructor.

◆ ~SkeletonCoarsen()

template<int DIM>
virtual SAMRAI::geom::SkeletonCoarsen< DIM >::~SkeletonCoarsen ( )
virtual

Uninteresting virtual destructor.

Member Function Documentation

◆ findCoarsenOperator()

template<int DIM>
bool SAMRAI::geom::SkeletonCoarsen< DIM >::findCoarsenOperator ( const tbox::Pointer< hier::Variable< DIM > > &  var,
const std::string &  op_name 
) const
virtual

Return true if the variable and name string match cell-centered double weighted averaging; otherwise, return false.

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

◆ getOperatorName()

template<int DIM>
const std::string& SAMRAI::geom::SkeletonCoarsen< DIM >::getOperatorName ( ) const
virtual

Return name string identifier of this coarsening operator.

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

◆ getOperatorPriority()

template<int DIM>
int SAMRAI::geom::SkeletonCoarsen< DIM >::getOperatorPriority ( ) const
virtual

The priority of cell-centered double weighted averaging is 0. It will be performed before any user-defined coarsen operations.

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

◆ getStencilWidth()

template<int DIM>
hier::IntVector<DIM> SAMRAI::geom::SkeletonCoarsen< DIM >::getStencilWidth ( ) const
virtual

The stencil width of the weighted averaging operator is the vector of zeros. That is, its stencil does not extend outside the fine box.

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

◆ coarsen()

template<int DIM>
void SAMRAI::geom::SkeletonCoarsen< DIM >::coarsen ( hier::Patch< DIM > &  coarse,
const hier::Patch< DIM > &  fine,
const int  dst_component,
const int  src_component,
const hier::Box< DIM > &  coarse_box,
const hier::IntVector< DIM > &  ratio 
) const
virtual

Coarsen the source component on the fine patch to the destination component on the coarse patch using the cell-centered double weighted averaging operator. Coarsening is performed on the intersection of the destination patch and the coarse box. It is assumed that the fine patch contains sufficient data for the stencil width of the coarsening operator.

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

Member Data Documentation

◆ d_name_id

template<int DIM>
std::string SAMRAI::geom::SkeletonCoarsen< DIM >::d_name_id
private

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