57    ASSERTL0(comm.get(), 
"Communication not initialised.");
 
   62    const bool isRoot = comm->TreatAsRankZero();
 
   68        session->InitSession();
 
   71        geomType = session->GetGeometryType();
 
   74        std::vector<char> v(geomType.c_str(),
 
   75                            geomType.c_str() + geomType.length());
 
   77        size_t length = v.size();
 
   78        comm->Bcast(length, 0);
 
   84        comm->Bcast(length, 0);
 
   86        std::vector<char> v(length);
 
   89        geomType = std::string(v.begin(), v.end());
 
   99    meshIO->m_meshGraph->SetSession(session);
 
  106    if (partitionedGraph && geomType == 
"HDF5")
 
  108        meshIO->m_meshGraph->SetPartition(partitionedGraph);
 
  109        meshIO->m_meshPartitioned = 
true;
 
  112    meshIO->PartitionMesh(session);
 
  115    meshIO->ReadGeometry(rng, fillGraph);
 
  117    return meshIO->m_meshGraph;
 
  129    std::map<int, MeshEntity> elements;
 
  138                e.
list.push_back(i.second->GetVertex(0)->GetGlobalID());
 
  139                e.
list.push_back(i.second->GetVertex(1)->GetGlobalID());
 
  151                e.
list.push_back(i.second->GetEdge(0)->GetGlobalID());
 
  152                e.
list.push_back(i.second->GetEdge(1)->GetGlobalID());
 
  153                e.
list.push_back(i.second->GetEdge(2)->GetGlobalID());
 
  161                e.
list.push_back(i.second->GetEdge(0)->GetGlobalID());
 
  162                e.
list.push_back(i.second->GetEdge(1)->GetGlobalID());
 
  163                e.
list.push_back(i.second->GetEdge(2)->GetGlobalID());
 
  164                e.
list.push_back(i.second->GetEdge(3)->GetGlobalID());
 
  176                e.
list.push_back(i.second->GetFace(0)->GetGlobalID());
 
  177                e.
list.push_back(i.second->GetFace(1)->GetGlobalID());
 
  178                e.
list.push_back(i.second->GetFace(2)->GetGlobalID());
 
  179                e.
list.push_back(i.second->GetFace(3)->GetGlobalID());
 
  187                e.
list.push_back(i.second->GetFace(0)->GetGlobalID());
 
  188                e.
list.push_back(i.second->GetFace(1)->GetGlobalID());
 
  189                e.
list.push_back(i.second->GetFace(2)->GetGlobalID());
 
  190                e.
list.push_back(i.second->GetFace(3)->GetGlobalID());
 
  191                e.
list.push_back(i.second->GetFace(4)->GetGlobalID());
 
  199                e.
list.push_back(i.second->GetFace(0)->GetGlobalID());
 
  200                e.
list.push_back(i.second->GetFace(1)->GetGlobalID());
 
  201                e.
list.push_back(i.second->GetFace(2)->GetGlobalID());
 
  202                e.
list.push_back(i.second->GetFace(3)->GetGlobalID());
 
  203                e.
list.push_back(i.second->GetFace(4)->GetGlobalID());
 
  211                e.
list.push_back(i.second->GetFace(0)->GetGlobalID());
 
  212                e.
list.push_back(i.second->GetFace(1)->GetGlobalID());
 
  213                e.
list.push_back(i.second->GetFace(2)->GetGlobalID());
 
  214                e.
list.push_back(i.second->GetFace(3)->GetGlobalID());
 
  215                e.
list.push_back(i.second->GetFace(4)->GetGlobalID());
 
  216                e.
list.push_back(i.second->GetFace(5)->GetGlobalID());
 
  229    auto meshComposites = &
m_meshGraph->GetComposites();
 
  232    for (
auto &comp : *meshComposites)
 
  234        std::pair<LibUtilities::ShapeType, std::vector<int>> tmp;
 
  235        tmp.first = comp.second->m_geomVec[0]->GetShapeType();
 
  237        tmp.second.resize(comp.second->m_geomVec.size());
 
  238        for (
size_t i = 0; i < tmp.second.size(); ++i)
 
  240            tmp.second[i] = comp.second->m_geomVec[i]->GetGlobalID();
 
  243        ret[comp.first] = tmp;
 
  254    if (comp->m_geomVec.size() == 0)
 
  261    std::map<LibUtilities::ShapeType, std::pair<std::string, std::string>>
 
  275    int shapeDim                = firstGeom->GetShapeDim();
 
  276    std::string tag             = (shapeDim < 
m_meshGraph->GetMeshDimension())
 
  277                                      ? compMap[firstGeom->GetShapeType()].second
 
  278                                      : compMap[firstGeom->GetShapeType()].first;
 
  280    std::vector<unsigned int> idxList;
 
  281    std::transform(comp->m_geomVec.begin(), comp->m_geomVec.end(),
 
  282                   std::back_inserter(idxList),
 
#define ASSERTL0(condition, msg)
Provides a generic Factory class.
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
static std::string GenerateSeqString(const std::vector< T > &v)
Generate a compressed comma-separated string representation of a vector of unsigned integers.
static MeshGraphSharedPtr Read(const LibUtilities::SessionReaderSharedPtr pSession, LibUtilities::DomainRangeShPtr rng=LibUtilities::NullDomainRangeShPtr, bool fillGraph=true, SpatialDomains::MeshGraphSharedPtr partitionedGraph=nullptr)
std::string GetCompositeString(CompositeSharedPtr comp)
Returns a string representation of a composite.
CompositeDescriptor CreateCompositeDescriptor()
MeshGraphSharedPtr m_meshGraph
std::map< int, MeshEntity > CreateMeshEntities()
Create mesh entities for this graph.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< DomainRange > DomainRangeShPtr
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
std::shared_ptr< MeshGraphIO > MeshGraphIOSharedPtr
std::map< int, std::pair< LibUtilities::ShapeType, std::vector< int > > > CompositeDescriptor
std::shared_ptr< Composite > CompositeSharedPtr
MeshGraphIOFactory & GetMeshGraphIOFactory()
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
std::shared_ptr< Geometry > GeometrySharedPtr
std::vector< unsigned int > list