Skip to content
Snippets Groups Projects
Commit fe80e404 authored by Norihiro Watanabe's avatar Norihiro Watanabe Committed by Dmitri Naumov
Browse files

[Num/DOF] check invalid index in getNodalValue

parent 443ea1c8
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,8 @@ double getNodalValue(GlobalVector const& x, MeshLib::Mesh const& mesh,
auto const index = dof_table.getLocalIndex(
l, global_component_id, x.getRangeBegin(), x.getRangeEnd());
if (index == NumLib::MeshComponentMap::nop)
return 0.0;
return x.get(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