Skip to content
Snippets Groups Projects
Commit 94b42ff4 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

make compile: the interface method gets a shared_ptr

parent a6db13cb
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ public: ...@@ -68,7 +68,7 @@ public:
} }
//! Evaluate the strain energy //! Evaluate the strain energy
ReturnType energy(const GridFunction& displace) ReturnType energy(std::shared_ptr<GridFunction> displace)
{ {
typename LocalEnergy::ReturnType aEnergy(0.0); typename LocalEnergy::ReturnType aEnergy(0.0);
...@@ -83,7 +83,7 @@ public: ...@@ -83,7 +83,7 @@ public:
// interpolate by local finite element to get the local coefficients // interpolate by local finite element to get the local coefficients
typename LocalEnergy::CoefficientVectorType localCoeff(lfe.localBasis().size()); typename LocalEnergy::CoefficientVectorType localCoeff(lfe.localBasis().size());
LocalWrapper fiLocal(displace,*eIt,0); LocalWrapper fiLocal(*displace,*eIt,0);
std::vector<typename LocalWrapper::RangeType> interpolationValues; std::vector<typename LocalWrapper::RangeType> interpolationValues;
for (int i=0; i<dim; i++) { for (int i=0; i<dim; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment