Skip to content
Snippets Groups Projects
Commit d4fcd896 authored by Jonathan Youett's avatar Jonathan Youett Committed by Sander, Oliver
Browse files

Use correct field_type

parent 38134d0d
No related branches found
No related tags found
1 merge request!10Allow assembler to get temporaries
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
template <class Basis, class TargetSpace> template <class Basis, class TargetSpace>
class GeodesicFEAssembler { class GeodesicFEAssembler {
using field_type = typename TargetSpace::field_type;
typedef typename Basis::GridView GridView; typedef typename Basis::GridView GridView;
using LocalStiffness = LocalGeodesicFEStiffness<Basis, TargetSpace>; using LocalStiffness = LocalGeodesicFEStiffness<Basis, TargetSpace>;
...@@ -78,7 +79,7 @@ public: ...@@ -78,7 +79,7 @@ public:
* anyway to compute the Riemannian Hessian. * anyway to compute the Riemannian Hessian.
*/ */
virtual void assembleGradientAndHessian(const std::vector<TargetSpace>& sol, virtual void assembleGradientAndHessian(const std::vector<TargetSpace>& sol,
Dune::BlockVector<Dune::FieldVector<double, blocksize> >& gradient, Dune::BlockVector<Dune::FieldVector<field_type, blocksize> >& gradient,
Dune::BCRSMatrix<MatrixBlock>& hessian, Dune::BCRSMatrix<MatrixBlock>& hessian,
bool computeOccupationPattern=true) const; bool computeOccupationPattern=true) const;
...@@ -134,7 +135,7 @@ getNeighborsPerVertex(Dune::MatrixIndexSet& nb) const ...@@ -134,7 +135,7 @@ getNeighborsPerVertex(Dune::MatrixIndexSet& nb) const
template <class Basis, class TargetSpace> template <class Basis, class TargetSpace>
void GeodesicFEAssembler<Basis,TargetSpace>:: void GeodesicFEAssembler<Basis,TargetSpace>::
assembleGradientAndHessian(const std::vector<TargetSpace>& sol, assembleGradientAndHessian(const std::vector<TargetSpace>& sol,
Dune::BlockVector<Dune::FieldVector<double, blocksize> >& gradient, Dune::BlockVector<Dune::FieldVector<field_type, blocksize> > &gradient,
Dune::BCRSMatrix<MatrixBlock>& hessian, Dune::BCRSMatrix<MatrixBlock>& hessian,
bool computeOccupationPattern) const bool computeOccupationPattern) const
{ {
......
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