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

[PL] ProcessVar: Add n_components for MeshProperty

When creating a new MeshProperty the number of components was not passed
further.
parent 76395ac8
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ MeshLib::PropertyVector<double>& ProcessVariable::getOrCreateMeshProperty()
else
{
result = _mesh.getProperties().template createNewPropertyVector<double>(
_name, MeshLib::MeshItemType::Node);
_name, MeshLib::MeshItemType::Node, _n_components);
assert(result);
result->resize(_mesh.getNumberOfNodes() * _n_components);
}
......
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