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

[MeL] Fix getOrCreateMeshProperty for IP data.

For an existing, non-empty mesh property on integration
points the check fails and it is not possible to know
what the size of this data should be.
Omitting the assertion for this case.
parent d35c7fc5
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,13 @@ PropertyVector<T>* getOrCreateMeshProperty(Mesh& mesh, ...@@ -268,7 +268,13 @@ PropertyVector<T>* getOrCreateMeshProperty(Mesh& mesh,
auto result = auto result =
mesh.getProperties().template getPropertyVector<T>(property_name); mesh.getProperties().template getPropertyVector<T>(property_name);
assert(result); assert(result);
assert(result->size() == numberOfMeshItems() * number_of_components); if (item_type != MeshItemType::IntegrationPoint)
{
// Test the size if number of mesh items is known, which is not the
// case for the integration point data.
assert(result->size() ==
numberOfMeshItems() * number_of_components);
}
return result; return result;
} }
......
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