A libMesh partitioner that partitions a mesh based on the x coordinate of each centroid in a numerically stable way.
More...
#include <ibtk/StableCentroidPartitioner.h>
|
| virtual void | _do_partition (libMesh::MeshBase &mesh, const unsigned int n) override |
| | The function used to actually do the partitioning. More...
|
| |
This partitioner is intended only for internal use in IBAMR (e.g., to generate platform-independent partitionings of meshes). It differs from libMesh::CentroidPartitioner in a few significant ways:
-
Centroids are sorted lexically instead of by a specified coordinate.
-
To improve stability the least significant bits are cleared by casting the coordinates to and from single precision.
-
To improve stability a stable sorting algorithm is used.
◆ StableCentroidPartitioner()
| IBTK::StableCentroidPartitioner::StableCentroidPartitioner |
( |
| ) |
|
|
default |
◆ clone()
| virtual std::unique_ptr<libMesh::Partitioner> IBTK::StableCentroidPartitioner::clone |
( |
| ) |
const |
|
overridevirtual |
◆ _do_partition()
| virtual void IBTK::StableCentroidPartitioner::_do_partition |
( |
libMesh::MeshBase & |
mesh, |
|
|
const unsigned int |
n |
|
) |
| |
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file: