Commit 3db779a1 authored by akbib's avatar akbib Committed by akbib
Browse files

Adjust to new base class interface

[[Imported from SVN: r12669]]
parent 4ffaec05
...@@ -67,7 +67,7 @@ public: ...@@ -67,7 +67,7 @@ public:
} }
//! Evaluate the strain energy //! Evaluate the strain energy
ReturnType energy(const GridFunction& displace) ReturnType energy(const GridFunction* displace)
{ {
ReturnType energy=0; ReturnType energy=0;
const GridType& grid = this->basis_->getGridView().grid(); const GridType& grid = this->basis_->getGridView().grid();
...@@ -114,16 +114,16 @@ public: ...@@ -114,16 +114,16 @@ public:
return 0.5*energy; return 0.5*energy;
} }
//! Return the local assembler of the first derivative of the strain energy //! Return the local assembler of the first derivative of the strain energy
LocalLinearization& firstDerivative(const GridFunction& displace) LocalLinearization& firstDerivative(GridFunction* displace)
{ {
localLinearization_->setConfiguration(displace); localLinearization_->setConfiguration(displace);
return *localLinearization_; return *localLinearization_;
} }
//! Return the local assembler of the second derivative of the strain energy //! Return the local assembler of the second derivative of the strain energy
LocalHessian& secondDerivative(const GridFunction& displace) LocalHessian& secondDerivative(GridFunction* displace)
{ {
localHessian_->setConfiguration(displace); localHessian_->setConfiguration(displace);
return *localHessian_; return *localHessian_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment