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

Method fromMeshReader

src/Initializer/ParameterDB.cpp:95–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 : size(size), elementCoordinates(elementCoordinates), elementGroups(elementGroups) {}
94
95CellToVertexArray
96 CellToVertexArray::fromMeshReader(const seissol::geometry::MeshReader& meshReader) {
97 const auto& elements = meshReader.getElements();
98 const auto& vertices = meshReader.getVertices();
99
100 return CellToVertexArray(
101 elements.size(),
102 [&](size_t index) {
103 std::array<Eigen::Vector3d, 4> verts;
104 for (size_t i = 0; i < 4; ++i) {
105 auto vindex = elements[index].vertices[i];
106 const auto& vertex = vertices[vindex];
107 verts[i] << vertex.coords[0], vertex.coords[1], vertex.coords[2];
108 }
109 return verts;
110 },
111 [&](size_t index) { return elements[index].group; });
112}
113
114#ifdef USE_HDF
115CellToVertexArray CellToVertexArray::fromPUML(const PUML::TETPUML& mesh) {

Callers

nothing calls this directly

Calls 2

CellToVertexArrayClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected