SAMRAI::geom::CartesianPatchGeometry< DIM > Class Template Reference

#include <source/geometry/cartesian/patch_geom/CartesianPatchGeometry.h>

Inheritance diagram for SAMRAI::geom::CartesianPatchGeometry< DIM >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CartesianPatchGeometry (const hier::IntVector< DIM > &ratio_to_level_zero, const tbox::Array< tbox::Array< bool > > &touches_regular_bdry, const tbox::Array< tbox::Array< bool > > &touches_periodic_bdry, const double *dx, const double *x_lo, const double *x_hi)
 ~CartesianPatchGeometry ()
const double * getDx () const
const double * getXLower () const
const double * getXUpper () const
virtual void printClassData (std::ostream &os) const

Detailed Description

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

Class CartesianPatchGeometry implements simple Cartesian mes geometry management for a single patch in an AMR hierarchy. The geometry is limited to the mesh increments being specified by the DIM-tuple (dx[0],...,dx[DIM-1]) associated with the patch, and the spatial coordinates of the lower and upper corners of the patch within the computational domain. The grid data is set by CartesianGridGeometry<DIM> class. This patch geometry class is derived from hier::PatchGeometry<DIM> base class.

See also:
hier::BoundaryBox

hier::PatchGeometry

geom::CartesianGridGeometry


Constructor & Destructor Documentation

template<int DIM>
SAMRAI::geom::CartesianPatchGeometry< DIM >::CartesianPatchGeometry ( const hier::IntVector< DIM > &  ratio_to_level_zero,
const tbox::Array< tbox::Array< bool > > &  touches_regular_bdry,
const tbox::Array< tbox::Array< bool > > &  touches_periodic_bdry,
const double *  dx,
const double *  x_lo,
const double *  x_hi 
)

Constructor for CartesianPatchGeometry class. It simply passes patch boundary information to hier::PatchGeometry base class constructor and allocates storage for spatial coordinates on patch.

template<int DIM>
SAMRAI::geom::CartesianPatchGeometry< DIM >::~CartesianPatchGeometry (  ) 

Destructor for CartesianPatchGeometry deallocates the storage for spatial coordinates on patch.


Member Function Documentation

template<int DIM>
const double * SAMRAI::geom::CartesianPatchGeometry< DIM >::getDx (  )  const [inline]

Return const pointer to dx array for patch.

template<int DIM>
const double * SAMRAI::geom::CartesianPatchGeometry< DIM >::getXLower (  )  const [inline]

Return const pointer to lower spatial coordinate for patch.

template<int DIM>
const double * SAMRAI::geom::CartesianPatchGeometry< DIM >::getXUpper (  )  const [inline]

Return const pointer to upper spatial coordinate for patch.

template<int DIM>
void SAMRAI::geom::CartesianPatchGeometry< DIM >::printClassData ( std::ostream &  os  )  const [virtual]

Print CartesianPatchGeometry class data.

Reimplemented from SAMRAI::hier::PatchGeometry< DIM >.


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