Skip to content
Snippets Groups Projects
Commit 62a065ca authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Intermediate variable for clarity

parent 4c7dee8d
Branches
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ class GlobalLaursenNonlinearity
coefficient *= (*normalStress)[i];
coefficient *= 1 + (*mu)[i];
return make_shared<LocalNonlinearity<dim> const>(
make_shared<OuterFunctionType const>(coefficient));
auto const func = make_shared<OuterFunctionType const>(coefficient);
return make_shared<LocalNonlinearity<dim> const>(func);
}
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment