Skip to content

Commit

Permalink
[NL] MCM: getSubset checks for valid global idx.
Browse files Browse the repository at this point in the history
If the boundary mesh is larger then the definition region
of the bulk component, then a nop is returned.
This usually indicates wrong geometry or something horrible.
  • Loading branch information
endJunction committed Jun 12, 2018
1 parent fdc7b40 commit 3475743
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NumLib/DOF/MeshComponentMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ MeshComponentMap MeshComponentMap::getSubset(

for (auto component_id : component_ids)
{
subset_dict.insert({new_location, component_id,
getGlobalIndex(bulk_location, component_id)});
auto const global_index =
getGlobalIndex(bulk_location, component_id);
assert (global_index != nop);
subset_dict.insert({new_location, component_id, global_index});
}
}

Expand Down

0 comments on commit 3475743

Please sign in to comment.