Skip to content
Snippets Groups Projects
Commit df29698c authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

accept local assembler as constructor argument

[[Imported from SVN: r4055]]
parent 4c3eecf2
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,10 @@ class GeodesicFEAssembler { ...@@ -34,8 +34,10 @@ class GeodesicFEAssembler {
public: public:
/** \brief Constructor for a given grid */ /** \brief Constructor for a given grid */
GeodesicFEAssembler(const GridView& gridView) : GeodesicFEAssembler(const GridView& gridView,
gridView_(gridView) LocalGeodesicFEStiffness<GridView,TargetSpace>* localStiffness)
: gridView_(gridView),
localStiffness_(localStiffness)
{} {}
/** \brief Assemble the tangent stiffness matrix /** \brief Assemble the tangent stiffness matrix
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <dune/ag-common/boundarypatch.hh> #include <dune/ag-common/boundarypatch.hh>
#include "rigidbodymotion.hh" #include "rigidbodymotion.hh"
#include "rodlocalstiffness.hh"
#include "geodesicfeassembler.hh" #include "geodesicfeassembler.hh"
/** \brief The FEM operator for an extensible, shearable rod /** \brief The FEM operator for an extensible, shearable rod
...@@ -47,9 +48,11 @@ class RodAssembler : public GeodesicFEAssembler<typename GridType::LeafGridView, ...@@ -47,9 +48,11 @@ class RodAssembler : public GeodesicFEAssembler<typename GridType::LeafGridView,
public: public:
//! ??? //! ???
RodAssembler(const GridType &grid) : RodAssembler(const GridType &grid,
GeodesicFEAssembler<typename GridType::LeafGridView, RigidBodyMotion<3> >(grid.leafView()), RodLocalStiffness<typename GridType::LeafGridView,double>* localStiffness) :
grid_(&grid) GeodesicFEAssembler<typename GridType::LeafGridView, RigidBodyMotion<3> >(grid.leafView(),
localStiffness),
grid_(&grid)
{ {
// Set dummy material parameters // Set dummy material parameters
K_[0] = K_[1] = K_[2] = 1; K_[0] = K_[1] = K_[2] = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment