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

make the analytical expression for the gradient switchable with a cpp directive

[[Imported from SVN: r8569]]
parent e794c50d
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,13 @@
#include <dune/gfe/orthogonalmatrix.hh>
#define DONT_USE_CURL
#define COSSERAT_ENERGY_FD_GRADIENT
#ifdef COSSERAT_ENERGY_FD_GRADIENT
#warning Finite-difference approximation of the Cosserat energy gradient
#endif
template<class GridView, class LocalFiniteElement, int dim>
class CosseratEnergyLocalStiffness
: public LocalGeodesicFEStiffness<GridView,LocalFiniteElement,RigidBodyMotion<double,dim> >
......@@ -239,7 +246,7 @@ public:
const LocalFiniteElement& localFiniteElement,
const std::vector<TargetSpace>& localSolution) const;
#if 0 // out-commented, because not completely implemented yet
#ifndef COSSERAT_ENERGY_FD_GRADIENT // switchable, because not completely implemented yet
/** \brief Assemble the element gradient of the energy functional */
virtual void assembleGradient(const Entity& element,
const LocalFiniteElement& localFiniteElement,
......@@ -691,7 +698,7 @@ bendingEnergyGradient(typename TargetSpace::EmbeddedTangentVector& embeddedLocal
}
#if 0 // out-commented, because not completely implemented yet
#if COSSERAT_ENERGY_FD_GRADIENT // switchable, because not completely implemented yet
template <class GridView, class LocalFiniteElement, int dim>
void CosseratEnergyLocalStiffness<GridView, LocalFiniteElement, dim>::
assembleGradient(const Entity& element,
......
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