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