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

[PL] Update for ptr version of getPropertyVec.

parent 407566a1
No related branches found
No related tags found
No related merge requests found
......@@ -76,9 +76,9 @@ public:
getProcessVariables()[0].get().getNumberOfComponents(),
_integration_order);
boost::optional<MeshLib::PropertyVector<double>&> balance_pv(
auto* const balance_pv =
_balance_mesh->getProperties()
.template getPropertyVector<double>(_balance_pv_name));
.template getPropertyVector<double>(_balance_pv_name);
balance.integrate(x, *balance_pv, *this);
// post: surface_mesh has vectorial element property
......
......@@ -135,7 +135,7 @@ void doProcessOutput(
std::string const& property_name, MeshLib::MeshItemType type)
{
// Get or create a property vector for results.
boost::optional<MeshLib::PropertyVector<double>&> result;
MeshLib::PropertyVector<double>* result = nullptr;
auto const N = count_mesh_items(mesh, type);
......
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