Definition at line 95 of file PMesh.H.
int Read |
( |
const std::string & |
MeshName, |
|
|
IRAD::Comm::CommunicatorObject & |
comm, |
|
|
bool |
allow_n2m, |
|
|
std::ostream & |
ErrOut |
|
) |
| |
Definition at line 41 of file PMesh.C.
References _borders, _communicator, _info, _mesh, Mesh::MeshUtilityObject::ECon(), Mesh::PartInfo::nborder, Mesh::MeshUtilityObject::NC(), Mesh::PartInfo::nelem, Mesh::PartInfo::nlocal, Mesh::PartInfo::nnodes, Mesh::PartInfo::nown, Mesh::PartInfo::npart, Mesh::PartInfo::nshared, Mesh::MeshUtilityObject::NumberOfElements(), Mesh::MeshUtilityObject::NumberOfNodes(), Mesh::PartInfo::part, rank, and Mesh::Connectivity::ShrinkWrap().
43 unsigned int nproc = comm.Size();
44 unsigned int rank = comm.Rank();
45 unsigned int id = rank + 1;
48 std::ifstream InfoInf;
49 std::ostringstream FNOstr;
50 FNOstr << MeshName <<
"." <<
id <<
".info";
51 InfoInf.open(FNOstr.str().c_str());
56 ErrOut <<
"Partition::Read Could not find partition info for " << MeshName;
65 ErrOut <<
"Partition::Read " << MeshName <<
" has partition/processor mismatch: ("
78 std::ostringstream Ostr;
81 Ostr <<
"." <<
id <<
".pmesh";
84 Inf.open(Ostr.str().c_str());
107 Inf >>
_borders[nn].rpart >> nrecv >> nsend;
111 Inf >>
_borders[nn].nrecv[ii] >> nodeid;
116 Inf >>
_borders[nn].nsend[ii] >> nodeid;
std::vector< Border > _borders
IRAD::Comm::CommunicatorObject * _communicator
Mesh::IndexType part
total number of partitions
int NumberOfElements() const
Mesh::IndexType nnodes
total number of elems
Mesh::IndexType nborder
total number of nodes
Mesh::IndexType nlocal
number of shared nodes owned
Mesh::IndexType nelem
partition id
int NumberOfNodes() const
IRAD::Primitive::IndexType IndexType
Mesh::IndexType nown
number of shared nodes
Mesh::IndexType nshared
number of borders