Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SAMRAI::mblk::MBUtilities< DIM > Class Template Reference

Class MBUtilities is a utility class to hold static functions related to multiblock functionality. More...

#include <source/multiblock/MBUtilities.h>

List of all members.

Public Member Functions

 MBUtilities ()
virtual ~MBUtilities ()

Static Public Member Functions

static void translateAndCopyData (hier::PatchData< DIM > &dst, const hier::PatchData< DIM > &src, const hier::IntVector< DIM > &shift, const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier rotate)
 Copy patch data from src to dst using the shift and rotate arguments.
static void rotateIndex (int *index, const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier rotation)
 rotate an index from one index space to another


Detailed Description

template<int DIM>
class SAMRAI::mblk::MBUtilities< DIM >

Class MBUtilities is a utility class to hold static functions related to multiblock functionality.

See also:
mblk_MultiblockPatchHierarchy


Constructor & Destructor Documentation

template<int DIM>
SAMRAI::mblk::MBUtilities< DIM >::MBUtilities  ) 
 

Empty constructor and destructor.

template<int DIM>
SAMRAI::mblk::MBUtilities< DIM >::~MBUtilities  )  [virtual]
 


Member Function Documentation

template<int DIM>
void SAMRAI::mblk::MBUtilities< DIM >::translateAndCopyData hier::PatchData< DIM > &  dst,
const hier::PatchData< DIM > &  src,
const hier::IntVector< DIM > &  shift,
const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier  rotate
[static]
 

Copy patch data from src to dst using the shift and rotate arguments.

Parameters:
dst destination data
src source data
shift the shift needed after rotation
rotate identifier of the rotation between index spaces

template<int DIM>
void SAMRAI::mblk::MBUtilities< DIM >::rotateIndex int *  index,
const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier  rotation
[static]
 

rotate an index from one index space to another

The parameter index is an int pointer with points to an array of int data, length DIM. It signifies an ijk location in an index space. According to the rotation number, the location will be rotated around the origin, with the new values overwriting the original values in the array pointed to by index.

Parameters:
index array identifying a point in index space
rotation_number identifier of the rotation that will be applied to index


The documentation for this class was generated from the following files:
Generated on Fri Dec 2 11:26:26 2005 for SAMRAI by  doxygen 1.4.2