MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / PUMLReader

Method PUMLReader

src/Geometry/PUMLReader.cpp:184–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182} // namespace
183
184seissol::geometry::PUMLReader::PUMLReader(
185 const char* meshFile,
186 const char* partitioningLib,
187 double maximumAllowedTimeStep,
188 seissol::initializer::parameters::BoundaryFormat boundaryFormat,
189 initializer::time_stepping::LtsWeights* ltsWeights,
190 double tpwgt)
191 : seissol::geometry::MeshReader(MPI::mpi.rank()), boundaryFormat(boundaryFormat) {
192 PUML::TETPUML puml;
193 puml.setComm(MPI::mpi.comm());
194
195 read(puml, meshFile);
196
197 generatePUML(puml); // We need to call generatePUML in order to create the dual graph of the mesh
198 if (ltsWeights != nullptr) {
199 ltsWeights->computeWeights(puml, maximumAllowedTimeStep);
200 }
201 partition(puml, ltsWeights, tpwgt, meshFile, partitioningLib);
202
203 generatePUML(puml);
204
205 getMesh(puml);
206}
207
208void seissol::geometry::PUMLReader::read(PUML::TETPUML& puml, const char* meshFile) {
209 SCOREP_USER_REGION("PUMLReader_read", SCOREP_USER_REGION_TYPE_FUNCTION);

Callers

nothing calls this directly

Calls 5

readFunction · 0.85
rankMethod · 0.80
setCommMethod · 0.80
commMethod · 0.80
computeWeightsMethod · 0.80

Tested by

no test coverage detected