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

Store a const pointer for the external forces

parent e4a40308
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,8 @@ public:
typedef typename VectorType::field_type field_type;
typedef std::shared_ptr<BasisGridFunction<Basis,VectorType> > GridFunctionPtr;
VectorType& extForces):
NonlinearElasticityProblem(MaterialType& material,
const VectorType& extForces):
material_(Dune::stackobject_to_shared_ptr(material)),
extForces_(Dune::stackobject_to_shared_ptr(extForces))
{}
......@@ -51,7 +52,7 @@ private:
//! The involved materials
std::shared_ptr<MaterialType> material_;
//! The external forces
std::shared_ptr<VectorType> extForces_;
std::shared_ptr<const VectorType> extForces_;
};
#include "nonlinearelasticityproblem.cc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment