18 #if defined(HAVE_LIBCGNS)
26 LocalData() : partition(0), index(0) {}
27 unsigned int partition;
31 typedef std::map<MVertex *, std::vector<LocalData> > Vertex2LocalData;
34 std::vector<GEntity *> &entities);
36 void getPeriodicEntities(
const std::vector<GEntity *> &allEntities,
37 std::vector<GEntity *> &entitiesPer);
39 void getPartitionInterfaceEntities(
const std::vector<GEntity *> &entities,
41 std::vector<GEntity *> &entitiesInt);
43 void initInterfVertex2LocalData(
const std::vector<GEntity *> &entitiesPer,
44 const std::vector<GEntity *> &entitiesInterf,
45 Vertex2LocalData &interfVert2Local);
47 int writeZone(
GModel *model,
bool saveAll,
double scalingFactor,
int meshDim,
48 std::size_t numNodesTotal, std::size_t partition,
49 const std::vector<GEntity *> &entities,
int cgIndexFile,
50 int cgIndexBase, std::vector<std::string> &zoneName,
51 Vertex2LocalData &interfVert2Local, std::set<int> &eleMshTypes,
52 std::map<GEntity *, std::string> &geomEntities);
54 int writePeriodic(
const std::vector<GEntity *> &entitiesPer,
int cgIndexFile,
55 int cgIndexBase,
const std::vector<std::string> &zoneName,
56 Vertex2LocalData &interfVert2Local);
58 void getEntitiesInPartitions(
59 const std::vector<GEntity *> &entities,
60 std::vector<std::vector<GEntity *> > &entitiesPart);
62 int writeInterfaces(
const std::vector<GEntity *> &entitiesInterf,
63 int cgIndexFile,
int cgIndexBase,
64 const std::vector<std::string> &zoneName,
65 Vertex2LocalData &interfVert2Local);
67 int writeHOPointInfo(
const std::set<int> &eleMshTypes,
int cgIndexFile,
70 int writeGeomEntities(std::map<GEntity *, std::string> &geomEntities,
71 int cgIndexFile,
int cgIndexBase);
73 #endif // HAVE_LIBCGNS
75 #endif // CGNS_WRITE_H