From 071b7f9f495c929ca4298023eae68ff5c8d8c5f6 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Mon, 28 Mar 2011 15:45:33 +0000
Subject: [PATCH] warn if we are using the finite-difference approximation

[[Imported from SVN: r7030]]
---
 dune/gfe/harmonicenergystiffness.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dune/gfe/harmonicenergystiffness.hh b/dune/gfe/harmonicenergystiffness.hh
index 9081a265..8a8ea8f7 100644
--- a/dune/gfe/harmonicenergystiffness.hh
+++ b/dune/gfe/harmonicenergystiffness.hh
@@ -7,6 +7,10 @@
 #include "localgeodesicfestiffness.hh"
 #include "localgeodesicfefunction.hh"
 
+#ifdef HARMONIC_ENERGY_FD_GRADIENT
+#warning Finite-difference approximation of the energy gradient
+#endif
+
 template<class GridView, class TargetSpace>
 class HarmonicEnergyLocalStiffness 
     : public LocalGeodesicFEStiffness<GridView,TargetSpace>
-- 
GitLab