Commit 4ffaec05 authored by akbib's avatar akbib Committed by akbib
Browse files

Replace input parameter references by pointer

[[Imported from SVN: r12668]]
parent cdac3f47
......@@ -41,15 +41,14 @@ class Material
basis_ = &basis;
}
//! Evaluate the strain energy
virtual ReturnType energy(const GridFunction& displace) = 0;
virtual ReturnType energy(const GridFunction* displace) = 0;
//! Return the local assembler of the first derivative of the strain energy at some displacement
virtual LocalLinearization& firstDerivative(const GridFunction& displace) = 0;
virtual LocalLinearization& firstDerivative(GridFunction* displace) = 0;
//! Return the local assembler of the second derivative of the strain energy at some displacement
virtual LocalHessian& secondDerivative(const GridFunction& displace) = 0;
virtual LocalHessian& secondDerivative(GridFunction* displace) = 0;
//! Return the global basis
const Basis& basis() {return *basis_;}
......
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