#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>
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. |
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.
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().
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.
std::vector<T> makeRBlocksFactor | ( | T | number | ) | [inline] |
Utility function to factor a number into its primes.
The result is represented by a std::vector type.
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().