MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Public Member Functions | |
int | num_parts () const |
iMeshP_Part | part_id_from_local_id (int local_id) const |
int | local_id_from_part_id (iMeshP_Part part) const |
int | rank_from_part_id (iMeshP_Part part) const |
int | rank_from_local_id (int id) const |
int | count_from_rank (int rank) const |
void | part_id_from_rank (int rank, std::vector< iMeshP_Part > &parts) const |
void | local_id_from_rank (int rank, std::vector< int > &ids) const |
const std::vector< iMeshP_Part > & | get_parts () const |
const std::vector< int > & | get_ranks () const |
int | build_map (iMesh_Instance imesh, iMeshP_PartitionHandle partition, int num_expected_parts) |
Static Public Member Functions | |
static int | part_from_coords (iMesh_Instance imesh, iMeshP_PartHandle part, int &id_out) |
Private Member Functions | |
int | idx_from_part_id (iMeshP_Part id) const |
int | idx_from_local_id (int id) const |
Private Attributes | |
std::vector< iMeshP_Part > | sortedPartList |
std::vector< int > | partRanks |
std::vector< int > | partLocalIds |
std::vector< int > | localIdReverseMap |
Definition at line 232 of file MOAB_iMeshP_unit_tests.cpp.
int PartMap::build_map | ( | iMesh_Instance | imesh, |
iMeshP_PartitionHandle | partition, | ||
int | num_expected_parts | ||
) |
Definition at line 2886 of file MOAB_iMeshP_unit_tests.cpp.
References CHKERR, get_local_parts(), ierr, localIdReverseMap, MPI_COMM_WORLD, part_from_coords(), partLocalIds, partRanks, rank, size, and sortedPartList.
Referenced by create_mesh_in_memory(), and test_load().
|
inline |
Definition at line 260 of file MOAB_iMeshP_unit_tests.cpp.
References partRanks, and rank.
Referenced by test_get_parts().
|
inline |
Definition at line 269 of file MOAB_iMeshP_unit_tests.cpp.
References sortedPartList.
Referenced by get_part_boundary_verts(), test_entity_copy_parts(), test_exchange_ents(), test_get_part_boundary(), test_part_boundary_iter(), and test_part_rank().
|
inline |
Definition at line 274 of file MOAB_iMeshP_unit_tests.cpp.
References partRanks.
Referenced by test_part_rank().
|
inlineprivate |
Definition at line 288 of file MOAB_iMeshP_unit_tests.cpp.
References localIdReverseMap.
Referenced by part_id_from_local_id(), and rank_from_local_id().
|
inlineprivate |
Definition at line 284 of file MOAB_iMeshP_unit_tests.cpp.
References sortedPartList.
Referenced by local_id_from_part_id(), and rank_from_part_id().
|
inline |
Definition at line 245 of file MOAB_iMeshP_unit_tests.cpp.
References idx_from_part_id(), and partLocalIds.
Referenced by interface_verts().
void PartMap::local_id_from_rank | ( | int | rank, |
std::vector< int > & | ids | ||
) | const |
Definition at line 3002 of file MOAB_iMeshP_unit_tests.cpp.
References partLocalIds, partRanks, rank, and sortedPartList.
Referenced by test_get_neighbors().
|
inline |
Definition at line 235 of file MOAB_iMeshP_unit_tests.cpp.
References sortedPartList.
Referenced by test_get_by_topo(), test_get_by_type(), test_get_neighbors(), and test_get_parts().
|
static |
Definition at line 3008 of file MOAB_iMeshP_unit_tests.cpp.
References CHKERR, iBase_FACE, iBase_VERTEX, ierr, iMesh_getEntArrAdj, iMesh_getEntities, iMesh_getVtxCoord, iMesh_QUADRILATERAL, MPI_COMM_WORLD, rank, and vtx().
Referenced by build_map(), get_part_boundary_verts(), and test_entity_copy_parts().
|
inline |
Definition at line 240 of file MOAB_iMeshP_unit_tests.cpp.
References idx_from_local_id(), and sortedPartList.
Referenced by test_entity_copy_parts(), and test_get_neighbors().
void PartMap::part_id_from_rank | ( | int | rank, |
std::vector< iMeshP_Part > & | parts | ||
) | const |
Definition at line 2996 of file MOAB_iMeshP_unit_tests.cpp.
References partRanks, rank, and sortedPartList.
Referenced by test_get_neighbors(), and test_part_id_handle().
|
inline |
Definition at line 255 of file MOAB_iMeshP_unit_tests.cpp.
References idx_from_local_id(), and partRanks.
|
inline |
Definition at line 250 of file MOAB_iMeshP_unit_tests.cpp.
References idx_from_part_id(), and partRanks.
|
private |
Definition at line 296 of file MOAB_iMeshP_unit_tests.cpp.
Referenced by build_map(), and idx_from_local_id().
|
private |
Definition at line 295 of file MOAB_iMeshP_unit_tests.cpp.
Referenced by build_map(), local_id_from_part_id(), and local_id_from_rank().
|
private |
Definition at line 294 of file MOAB_iMeshP_unit_tests.cpp.
Referenced by build_map(), count_from_rank(), get_ranks(), local_id_from_rank(), part_id_from_rank(), rank_from_local_id(), and rank_from_part_id().
|
private |
Definition at line 293 of file MOAB_iMeshP_unit_tests.cpp.
Referenced by build_map(), get_parts(), idx_from_part_id(), local_id_from_rank(), num_parts(), part_id_from_local_id(), and part_id_from_rank().