UniformLayout Class Reference

UniformLayout is a very simple particle layout class that is used to determine where particles will be located in a parallel environment. More...

#include <UniformLayout.h>

Inheritance diagram for UniformLayout:

Inheritance graph
[legend]
Collaboration diagram for UniformLayout:

Collaboration graph
[legend]

List of all members.

Public Types

typedef UniformLayout This_t
typedef PatchSwapLayout< This_tBase_t
typedef Base_t::Size_t Size_t
typedef Base_t::AmountArray_t AmountArray_t
typedef Base_t::MoveArray_t MoveArray_t

Public Member Functions

 UniformLayout ()
 UniformLayout (int numPatches)
 UniformLayout (const This_t &s)
This_toperator= (const This_t &s)
void initialize (int numPatches)
void initialize (const This_t &s)
 ~UniformLayout ()
bool initialized () const
int patchesGlobal () const
int patchesLocal () const
int patchesRemote () const
template<class AL >
void initializeAttributeLayout (AL &attriblayout)
template<class Attr >
Size_t findPatchNumber (int lid, int gid, const Attr &, MoveArray_t &movepid, AmountArray_t &moveamount)
template<class Out >
void print (Out &o) const


Detailed Description

UniformLayout is a very simple particle layout class that is used to determine where particles will be located in a parallel environment.

UniformLayout simply tries to keep the same number of particles on each patch. UniformLayout is a PatchSwapLayout, and inherits the main "swap" routine from that class. It provides a "findPatchNumber" routine that calculates patch numbers based on getting an equal number of particles on each patch.


Member Typedef Documentation

Reimplemented from PatchSwapLayout< UniformLayout >.

Reimplemented from PatchSwapLayout< UniformLayout >.

Reimplemented from PatchSwapLayout< UniformLayout >.

Reimplemented from PatchSwapLayout< UniformLayout >.


Constructor & Destructor Documentation

UniformLayout::UniformLayout (  )  [inline]

UniformLayout::UniformLayout ( int  numPatches  )  [inline]

UniformLayout::UniformLayout ( const This_t s  )  [inline]

UniformLayout::~UniformLayout (  )  [inline]


Member Function Documentation

This_t& UniformLayout::operator= ( const This_t s  )  [inline]

void UniformLayout::initialize ( int  numPatches  )  [inline]

void UniformLayout::initialize ( const This_t s  )  [inline]

bool UniformLayout::initialized (  )  const [inline]

int UniformLayout::patchesGlobal (  )  const [inline]

Referenced by findPatchNumber().

int UniformLayout::patchesLocal (  )  const [inline]

int UniformLayout::patchesRemote (  )  const [inline]

template<class AL >
void UniformLayout::initializeAttributeLayout ( AL &  attriblayout  )  [inline]

References PAssert.

template<class Attr >
Size_t UniformLayout::findPatchNumber ( int  lid,
int  gid,
const Attr &  ,
MoveArray_t movepid,
AmountArray_t moveamount 
) [inline]

template<class Out >
void UniformLayout::print ( Out &  o  )  const [inline]

Referenced by operator<<().


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

Generated on Wed Mar 16 06:20:42 2011 for FreePOOMA by  doxygen 1.5.9