Commit 54e4271e authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Base class method 'energy' is const

parent f826cd5c
......@@ -68,7 +68,7 @@ public:
}
//! Evaluate the strain energy
ReturnType energy(std::shared_ptr<GridFunction> displace)
ReturnType energy(std::shared_ptr<GridFunction> displace) const
{
typename LocalEnergy::ReturnType aEnergy(0.0);
......
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