with
elements per processor.
More...

Public Member Functions | |
| PartitionedRectangleMesher (double ax, double bx, int nx, int npx, double ay, double by, int ny, int npy, const MeshType &meshType, const MPIComm &comm=MPIComm::world()) | |
Set up meshing of the rectangle with elements per processor. | |
| PartitionedRectangleMesher (const ParameterList ¶ms) | |
| Create a rectangle mesher from a ParameterList. | |
| virtual | ~PartitionedRectangleMesher () |
| virtual std::string | description () const |
| Print a short descriptive std::string. | |
| virtual RCP< MeshSourceBase > | getRcp () |
| Return a ref count pointer to self. | |
Static Public Member Functions | |
| static void | balanceXY (int n, int *npx, int *npy) |
| Find a nearly equal balance between X and Y partitions. | |
Protected Member Functions | |
| virtual Mesh | fillMesh () const |
| Fill a mesh object with data from the source. | |
Private Attributes | |
| double | ax_ |
| double | bx_ |
| int | nx_ |
| int | npx_ |
| double | ay_ |
| double | by_ |
| int | ny_ |
| int | npy_ |
with
elements per processor.
The rectangle is partitioned among processors, with
equal sized subdomains in the
direction and
in the
direction.
Definition at line 52 of file SundancePartitionedRectangleMesher.hpp.
| Sundance::PartitionedRectangleMesher::PartitionedRectangleMesher | ( | double | ax, | |
| double | bx, | |||
| int | nx, | |||
| int | npx, | |||
| double | ay, | |||
| double | by, | |||
| int | ny, | |||
| int | npy, | |||
| const MeshType & | meshType, | |||
| const MPIComm & | comm = MPIComm::world() | |||
| ) | [inline] |
Set up meshing of the rectangle
with
elements per processor.
The rectangle is partitioned among processors, with
equal sized subdomains in the
direction and
in the
direction.
Definition at line 64 of file SundancePartitionedRectangleMesher.hpp.
| PartitionedRectangleMesher::PartitionedRectangleMesher | ( | const ParameterList & | params | ) |
Create a rectangle mesher from a ParameterList.
Definition at line 10 of file SundancePartitionedRectangleMesher.cpp.
| virtual Sundance::PartitionedRectangleMesher::~PartitionedRectangleMesher | ( | ) | [inline, virtual] |
Definition at line 78 of file SundancePartitionedRectangleMesher.hpp.
| void PartitionedRectangleMesher::balanceXY | ( | int | n, | |
| int * | npx, | |||
| int * | npy | |||
| ) | [static] |
Find a nearly equal balance between X and Y partitions.
Definition at line 32 of file SundancePartitionedRectangleMesher.cpp.
Referenced by Sundance::RectangleDomain::init().
| virtual std::string Sundance::PartitionedRectangleMesher::description | ( | ) | const [inline, virtual] |
Print a short descriptive std::string.
Reimplemented from Sundance::MeshSourceBase.
Definition at line 81 of file SundancePartitionedRectangleMesher.hpp.
References ax_, ay_, bx_, by_, nx_, ny_, and Sundance::toString().
| Mesh PartitionedRectangleMesher::fillMesh | ( | ) | const [protected, virtual] |
Fill a mesh object with data from the source.
Subclass implementors will need to provide a fillMesh() for their subclass. Implementors should use the createMesh() method for the allocation of the new mesh.
Implements Sundance::MeshSourceBase.
Definition at line 50 of file SundancePartitionedRectangleMesher.cpp.
References Sundance::Mesh::addElement(), Sundance::Mesh::addVertex(), ax_, ay_, bx_, by_, Sundance::MeshSourceBase::createMesh(), Sundance::MeshSourceBase::myRank(), Sundance::MeshSourceBase::nProc(), npx_, npy_, nx_, ny_, SUNDANCE_OUT, and Playa::ObjectWithVerbosity::verb().
| virtual RCP<MeshSourceBase> Sundance::PartitionedRectangleMesher::getRcp | ( | ) | [inline, virtual] |
Return a ref count pointer to self.
Implements Playa::Handleable< MeshSourceBase >.
Definition at line 96 of file SundancePartitionedRectangleMesher.hpp.
double Sundance::PartitionedRectangleMesher::ax_ [private] |
Definition at line 108 of file SundancePartitionedRectangleMesher.hpp.
Referenced by description(), and fillMesh().
double Sundance::PartitionedRectangleMesher::ay_ [private] |
Definition at line 117 of file SundancePartitionedRectangleMesher.hpp.
Referenced by description(), and fillMesh().
double Sundance::PartitionedRectangleMesher::bx_ [private] |
Definition at line 110 of file SundancePartitionedRectangleMesher.hpp.
Referenced by description(), and fillMesh().
double Sundance::PartitionedRectangleMesher::by_ [private] |
Definition at line 119 of file SundancePartitionedRectangleMesher.hpp.
Referenced by description(), and fillMesh().
int Sundance::PartitionedRectangleMesher::npx_ [private] |
Definition at line 114 of file SundancePartitionedRectangleMesher.hpp.
Referenced by fillMesh(), and PartitionedRectangleMesher().
int Sundance::PartitionedRectangleMesher::npy_ [private] |
Definition at line 123 of file SundancePartitionedRectangleMesher.hpp.
Referenced by fillMesh(), and PartitionedRectangleMesher().
int Sundance::PartitionedRectangleMesher::nx_ [private] |
Definition at line 112 of file SundancePartitionedRectangleMesher.hpp.
Referenced by description(), and fillMesh().
int Sundance::PartitionedRectangleMesher::ny_ [private] |
Definition at line 121 of file SundancePartitionedRectangleMesher.hpp.
Referenced by description(), and fillMesh().