51 unsigned int nfaces = 0;
52 unsigned int ngfaces = 0;
55 Inf >> db.
_id >> nfaces >> ngfaces;
56 unsigned int nfaces_accum = 0;
57 nfaces_accum += nfaces;
62 unsigned int face = 0;
64 unsigned int node1,node2,node3;
65 Inf >> node1 >> node2 >> node3;
71 Inf >> nfaces >> ngfaces;
72 nfaces_accum += nfaces;
77 unsigned int node1,node2,node3,node4;
78 Inf >> node1 >> node2 >> node3 >> node4;
95 Inf >> nlocal_patches;
96 gp.
_db.resize(nlocal_patches);
98 while(bound < nlocal_patches)
106 unsigned int pb_index,
120 >> nnodes >> nshared >> ngnodes;
121 nreal_nodes = nnodes - ngnodes;
122 nsend = nreal_nodes - nshared;
132 while(node < nshared)
135 while(node < ngnodes)
139 unsigned int ncells_total = 0;
140 unsigned int nreal_cells = 0;
141 unsigned int nghost_cells = 0;
143 unsigned int ntets = 0;
144 unsigned int ngtets = 0;
145 unsigned int nreal_tets = 0;
146 Inf >> ntets >> ngtets;
147 std::vector<unsigned int> btets;
148 btets.resize(ntets + ngtets);
149 unsigned int elem = 0;
151 Inf >> btets[elem++] >> dummy;
152 ncells_total += ntets;
153 nghost_cells += ngtets;
154 nreal_tets = ntets - ngtets;
156 unsigned int npyrs = 0;
157 unsigned int ngpyrs = 0;
158 unsigned int nreal_pyrs = 0;
159 std::vector< unsigned int > bpyrs;
160 Inf >> npyrs >> ngpyrs;
164 Inf >> bpyrs[elem++] >> dummy;
165 ncells_total += npyrs;
166 nghost_cells += ngpyrs;
167 nreal_pyrs = npyrs - ngpyrs;
169 unsigned int npris = 0;
170 unsigned int ngpris = 0;
171 unsigned int nreal_pris = 0;
172 std::vector< unsigned int > bpris;
173 Inf >> npris >> ngpris;
177 Inf >> bpris[elem++] >> dummy;
178 ncells_total += npris;
179 nghost_cells += ngpris;
180 nreal_pris = npris - ngpris;
182 unsigned int nhexs = 0;
183 unsigned int nghexs = 0;
184 unsigned int nreal_hexs = 0;
185 std::vector< unsigned int > bhexs;
186 Inf >> nhexs >> nghexs;
190 Inf >> bhexs[elem++] >> dummy;
191 ncells_total += nhexs;
192 nghost_cells += nghexs;
193 nreal_hexs = nhexs - nghexs;
195 nreal_cells = ncells_total - nghost_cells;
200 unsigned int send_cell = 0;
201 unsigned int recv_cell = 0;
203 if(elem < nreal_tets)
209 if(elem < nreal_pyrs)
215 if(elem < nreal_pris)
221 if(elem < nreal_hexs)
226 assert(send_cell == nreal_cells && recv_cell == nghost_cells);
233 int nbound = gp.
_pb.size();
235 while(bound < nbound)
245 unsigned int nvfaces,nbfaces,nnodes;
246 Inf >> nvfaces >> nbfaces >> nnodes >> gp.
_ngnodes;
247 gp.
_nvface = nvfaces + nbfaces;
248 unsigned int node = 0;
249 gp.
_nc.resize(3*nnodes);
250 while(node < nnodes){
251 Inf >> gp.
_nc[3*node] >> gp.
_nc[3*node+1]
255 unsigned int ntet = 0;
257 unsigned int tet = 0;
264 unsigned int npyr = 0;
266 unsigned int pyr = 0;
275 unsigned int npris = 0;
277 unsigned int pris = 0;
286 unsigned int nhex = 0;
288 unsigned int hex = 0;
299 unsigned int nbound = 0;
301 gp.
_pb.resize(nbound);
std::vector< unsigned int > _tetconn
std::vector< unsigned int > _recvnodes
std::vector< std::vector< int > > _int_data
std::vector< unsigned int > _sendcells
This file contains the prototypes for Roccom API.
std::vector< unsigned int > _quadconn
bool TRAIL_GeoPartReadPatchesASCII(GEM_Partition &gp, std::ifstream &Inf)
bool TRAIL_GeoPartReadPatchASCII(GEM_DomainBoundary &db, std::ifstream &Inf)
std::vector< unsigned int > _sharenodes
std::vector< unsigned int > _recvcells
std::vector< unsigned int > _sendnodes
unsigned int Elem2Cell(std::pair< unsigned int, unsigned int >)
std::vector< unsigned int > _triconn
std::vector< GEM_DomainBoundary > _db
bool TRAIL_GeoPartReadPartitionBoundariesASCII(GEM_Partition &gp, std::ifstream &Inf)
bool TRAIL_GeoPartReadPartitionBoundaryASCII(GEM_Partition &gp, unsigned int pb_index, std::ifstream &Inf)
std::vector< unsigned int > _pyrconn
std::vector< unsigned int > _hexconn
std::vector< GEM_PartitionBoundary > _pb
GEM_UserData _solver_data
std::vector< double > _nc
std::vector< unsigned int > _prisconn
bool TRAIL_GeoPartReadASCII(GEM_Partition &gp, std::ifstream &Inf)