![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <NodePartitioner.hpp>
Static Public Member Functions | |
static void | DumbPartitioning (AbstractMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, std::set< unsigned > &rNodesOwned) |
static void | PetscMatrixPartitioning (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader, std::vector< unsigned > &rNodePermutation, std::set< unsigned > &rNodesOwned, std::vector< unsigned > &rProcessorsOffset) |
static void | GeometricPartitioning (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader, std::vector< unsigned > &rNodePermutation, std::set< unsigned > &rNodesOwned, std::vector< unsigned > &rProcessorsOffset, ChasteCuboid< SPACE_DIM > *pRegion) |
Static methods to allow node-wise partitioning of meshes.
Definition at line 48 of file NodePartitioner.hpp.
|
static |
Specialised method to compute a parallel partitioning of a given mesh (called by ComputeMeshPartitioning, based on the value of mMetisPartitioning)
rMesh | is the original mesh (so that we can set the DistributedVectorFactory up |
rNodesOwned | is an empty set to be filled with the indices of nodes owned by this process |
Definition at line 51 of file NodePartitioner.cpp.
References EXCEPTION, AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetDistributedVectorFactory(), DistributedVectorFactory::GetHigh(), DistributedVectorFactory::GetLow(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), and DistributedVectorFactory::GetProblemSize().
|
static |
Specialised method to compute the partition of a mesh based on geometric partitioning
rMeshReader | is the reader pointing to the mesh to be read in and partitioned |
rNodePermutation | is the vector to be filled with node permutation information. |
rNodesOwned | is an empty set to be filled with the indices of nodes owned by this process |
rProcessorsOffset | a vector of length NumProcs to be filled with the index of the lowest indexed node owned by each process |
pRegion | the local region owned by this process. |
Definition at line 299 of file NodePartitioner.cpp.
References PetscTools::Barrier(), EXCEPTION, PetscTools::GetMyRank(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), PetscTools::GetNumProcs(), ChasteCuboid< SPACE_DIM >::rGetLowerCorner(), ChasteCuboid< SPACE_DIM >::rGetUpperCorner(), and UNSIGNED_UNSET.
|
static |
Method to compute a parallel partitioning of a given mesh.
rMeshReader | is the reader pointing to the mesh to be read in and partitioned |
rNodePermutation | is the vector to be filled with node permutation information. |
rNodesOwned | is an empty set to be filled with the indices of nodes owned by this process |
rProcessorsOffset | a vector of length NumProcs to be filled with the index of the lowest indexed node owned by each process |
It seems to be free-ing xadj and adjncy as a side effect
Definition at line 71 of file NodePartitioner.cpp.
References PetscTools::AmMaster(), PetscTools::AmTopMost(), PetscTools::Barrier(), CHASTE_PETSC_NULLPTR, PetscTools::Destroy(), PetscMatTools::Finalise(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData(), PetscTools::GetMyRank(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), PetscTools::GetNumProcs(), PetscTools::HasParMetis(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::IsFileFormatBinary(), PetscTools::IsParallel(), ElementData::NodeIndices, PETSC_DESTROY_PARAM, Timer::PrintAndReset(), Timer::Reset(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset(), and PetscTools::SetupMat().