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

[NL] DOF; Test only base nodes for matching domain

parent b9712c9b
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,7 @@ MeshComponentMap MeshComponentMap::getSubset( ...@@ -159,6 +159,7 @@ MeshComponentMap MeshComponentMap::getSubset(
for (auto* const node : new_mesh_subset.getNodes()) for (auto* const node : new_mesh_subset.getNodes())
{ {
auto const node_id = node->getID(); auto const node_id = node->getID();
bool const is_base_node = isBaseNode(*node);
MeshLib::Location const new_location{ MeshLib::Location const new_location{
new_mesh_id, MeshLib::MeshItemType::Node, node_id}; new_mesh_id, MeshLib::MeshItemType::Node, node_id};
...@@ -174,18 +175,22 @@ MeshComponentMap MeshComponentMap::getSubset( ...@@ -174,18 +175,22 @@ MeshComponentMap MeshComponentMap::getSubset(
getGlobalIndex(bulk_location, component_id); getGlobalIndex(bulk_location, component_id);
if (global_index == nop) if (global_index == nop)
{ {
OGS_FATAL( if (is_base_node)
"Could not find a global index for global component %d for " {
"the mesh '%s', node %d, in the corresponding bulk mesh " OGS_FATAL(
"'%s' and node %d. This happens because the boundary mesh " "Could not find a global index for global component %d "
"is larger then the definition region of the bulk " "for the mesh '%s', node %d, in the corresponding bulk "
"component, usually because the geometry for the boundary " "mesh '%s' and node %d. This happens because the "
"condition is too large.", "boundary mesh is larger then the definition region of "
component_id, "the bulk component, usually because the geometry for "
new_mesh_subset.getMesh().getName().c_str(), "the boundary condition is too large.",
node_id, component_id,
bulk_mesh_subsets.front().getMesh().getName().c_str(), new_mesh_subset.getMesh().getName().c_str(),
bulk_node_ids_map[node_id]); node_id,
bulk_mesh_subsets.front().getMesh().getName().c_str(),
bulk_node_ids_map[node_id]);
}
continue;
} }
subset_dict.insert({new_location, component_id, global_index}); subset_dict.insert({new_location, component_id, global_index});
} }
......
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