Interface of a mesh partitioner on a grid. More...
#include <arcane/core/IGridMeshPartitioner.h>
Public Member Functions | |
| virtual void | setBoundingBox (Real3 min_val, Real3 max_val)=0 |
| Positions the bounding box of our subdomain. | |
| virtual void | setPartIndex (Int32 i, Int32 j, Int32 k)=0 |
| Index (i,j,k) of the part. | |
| virtual void | applyMeshPartitioning (IMesh *mesh)=0 |
| Applies the repartitioning to the mesh mesh. | |
| Public Member Functions inherited from Arcane::IMeshPartitionerBase | |
| virtual | ~IMeshPartitionerBase ()=default |
| Releases resources. | |
| virtual void | partitionMesh (bool initial_partition)=0 |
| virtual IPrimaryMesh * | primaryMesh ()=0 |
| Associated mesh. | |
| virtual void | notifyEndPartition ()=0 |
| Notification when a re-partitioning finishes (after entity exchange). | |
Interface of a mesh partitioner on a grid.
This partitioner redistributes the mesh in a 2D or 3D grid.
The grid is composed of a set of parts, each part being defined by its bounding box (the coordinates of the two points at the ends of the grid) and an index (i,j,k). The dimensions of each part can be different but they must be consistent: all parts with the same index i must have the same bounding box x coordinate.
Instances of this class are single-use and must only be used for a single partitioning. The user must call setBoundingBox() and setPartIndex() and then perform the partitioning by calling applyMeshPartitioning().
Definition at line 53 of file IGridMeshPartitioner.h.
|
pure virtual |
Applies the repartitioning to the mesh mesh.
The setPartIndex() and setBoundingBox() methods must have been called previously. This method can only be called once per instance.
The partitioning uses a specific algorithm for calculating ghost cells to ensure that every cell in mesh that intersects the part specified in setBoundingBox() will be in this subdomain, possibly as a ghost cell.
|
pure virtual |
Positions the bounding box of our subdomain.
For the algorithm to work, there must be no overlap between the bounding boxes of the subdomains.
Index (i,j,k) of the part.
The indices start at zero. In 1D or 2D, the value of k is (-1). In 1D, the value of j is (-1)