diff --git a/NumLib/DOF/LocalToGlobalIndexMap.h b/NumLib/DOF/LocalToGlobalIndexMap.h index 292e7396c75f22c6f0fdc93d5c4bc0f09341486e..e66f6b56de2cf40257ef38bfc0456d71868f44b5 100644 --- a/NumLib/DOF/LocalToGlobalIndexMap.h +++ b/NumLib/DOF/LocalToGlobalIndexMap.h @@ -155,7 +155,12 @@ public: MeshLib::MeshSubsets const& getMeshSubsets(int const variable_id, int const component_id) const { - return *_mesh_subsets[getGlobalComponent(variable_id, component_id)]; + return getMeshSubsets(getGlobalComponent(variable_id, component_id)); + } + + MeshLib::MeshSubsets const& getMeshSubsets(int const global_component_id) const + { + return *_mesh_subsets[global_component_id]; } private: