GridPartition.h File Reference

A layout partitioner that will break a given global domain into blocks specified by a domain Grid. More...

#include "Domain/Loc.h"
#include "Domain/Interval.h"
#include "Domain/Grid.h"
#include "Layout/GuardLayers.h"
#include "Utilities/PAssert.h"
#include "Partition/ContextMapper.h"
#include "Partition/DistributedMapper.h"
#include <iosfwd>
#include <vector>
#include <list>

Include dependency graph for GridPartition.h:

This graph shows which files directly or indirectly include this file:


Classes

class  GridPartition< Dim >
 GridPartition is a layout partitioner; it is created with the info needed to partition a global domain into subdomains using N 1-dim upper sub-domain specifications along each axis, or any of the specifiers used for the UniformGridPartition. More...

Functions

template<int Dim>
Grid< Dim > makeRGrid (const Interval< Dim > &gdom, const Loc< Dim > &blocks)
 Utility function to return a Grid from a global domain and a loc blocks.
template<int Dim>
std::ostream & operator<< (std::ostream &o, const GridPartition< Dim > &gp)
 A specialization of the Inform traits used to say that node has a print method.
template<typename T >
std::vector< T > makeRBlocksFactor (T number)
 Utility function to factor a number into its primes.
template<int Dim>
Loc< Dim > makeRBlocks (const Interval< Dim > &domain, int nodes)
 Utility function to create a near-uniform partitioning of a domain into n bricks.

Detailed Description

A layout partitioner that will break a given global domain into blocks specified by a domain Grid.

The user must provide consistent information; if the subdomain bounds are greater than the global domain, an insist failure will result.

Secondarily, if Global and Internal guard cells are specified, those internal guard cell regions may not span more than the adjacent patch; violations will result in an insist failure.


Function Documentation

template<int Dim>
Grid< Dim > makeRGrid ( const Interval< Dim > &  gdom,
const Loc< Dim > &  blocks 
) [inline]

Utility function to return a Grid from a global domain and a loc blocks.

Utility function to create a near-uniform partitioning of a domain.

The result is represented by a Grid object.

References Domain< Dim, DomainTraits< Interval< Dim > > >::size().

Referenced by GridPartition< Dim >::partition().

template<int Dim>
std::ostream& operator<< ( std::ostream &  o,
const GridPartition< Dim > &  gp 
) [inline]

A specialization of the Inform traits used to say that node has a print method.

template<typename T >
std::vector<T> makeRBlocksFactor ( number  )  [inline]

Utility function to factor a number into its primes.

The result is represented by a std::vector type.

template<int Dim>
Loc<Dim> makeRBlocks ( const Interval< Dim > &  domain,
int  nodes 
) [inline]

Utility function to create a near-uniform partitioning of a domain into n bricks.

The result is represented by a Loc object.

References Domain< Dim, DomainTraits< Interval< Dim > > >::size().


Generated on Wed Mar 16 06:17:36 2011 for FreePOOMA by  doxygen 1.5.9