Skip to content

Commit 293e470

Browse files
author
Dmitri Naumov
committed
Merge branch 'fix_identy_subdomain_rare_bug' into 'master'
fix rare bug in identify subdomain See merge request ogs/ogs!5398
2 parents 6589846 + c5c99fc commit 293e470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MeshGeoToolsLib/IdentifySubdomainMesh.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ void updateOrCheckExistingSubdomainProperty(
151151
MeshLib::MeshItemType const mesh_item_type, bool const force_overwrite)
152152
{
153153
auto& properties = mesh.getProperties();
154-
if (!properties.existsPropertyVector<std::size_t>(property_name))
154+
if (!properties.existsPropertyVector<std::size_t>(property_name,
155+
mesh_item_type, 1))
155156
{
156157
addPropertyToMesh<std::size_t>(mesh, property_name, mesh_item_type, 1,
157158
{values});

0 commit comments

Comments
 (0)