Skip to content
Snippets Groups Projects
Commit 9ca37af3 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MGTL] Pass element's id to created boundary elems

This ensures correct bulk_node_ids map
parent d37b6ae9
No related branches found
No related tags found
No related merge requests found
...@@ -80,14 +80,14 @@ MeshLib::Element* modifyEdgeNodeOrdering( ...@@ -80,14 +80,14 @@ MeshLib::Element* modifyEdgeNodeOrdering(
{ {
std::array nodes = {const_cast<MeshLib::Node*>(e->getNode(1)), std::array nodes = {const_cast<MeshLib::Node*>(e->getNode(1)),
const_cast<MeshLib::Node*>(e->getNode(0))}; const_cast<MeshLib::Node*>(e->getNode(0))};
return new MeshLib::Line(nodes); return new MeshLib::Line(nodes, e->getID());
} }
if (auto const* e = dynamic_cast<MeshLib::Line3 const*>(&edge)) if (auto const* e = dynamic_cast<MeshLib::Line3 const*>(&edge))
{ {
std::array nodes = {const_cast<MeshLib::Node*>(e->getNode(1)), std::array nodes = {const_cast<MeshLib::Node*>(e->getNode(1)),
const_cast<MeshLib::Node*>(e->getNode(0)), const_cast<MeshLib::Node*>(e->getNode(0)),
const_cast<MeshLib::Node*>(e->getNode(2))}; const_cast<MeshLib::Node*>(e->getNode(2))};
return new MeshLib::Line3(nodes); return new MeshLib::Line3(nodes, e->getID());
} }
OGS_FATAL("Not implemented for element type {:s}", typeid(edge).name()); OGS_FATAL("Not implemented for element type {:s}", typeid(edge).name());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment