From 19e2b444a7c428ed06a4851d4fb97b3a85da335d Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 30 Sep 2013 15:56:36 +0000 Subject: [PATCH] Make missing gradient implementation of curl-based enery a runtime error It used to be a compile-term error, but now that we have ADOL-C support the missing gradient is not a problem anymore. [[Imported from SVN: r9516]] --- dune/gfe/cosseratenergystiffness.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/gfe/cosseratenergystiffness.hh b/dune/gfe/cosseratenergystiffness.hh index 7c95109e..cec69c76 100644 --- a/dune/gfe/cosseratenergystiffness.hh +++ b/dune/gfe/cosseratenergystiffness.hh @@ -764,7 +764,7 @@ curvatureEnergyGradient(typename TargetSpace::EmbeddedTangentVector& embeddedLoc const Dune::array<Tensor3<field_type,3,3,4>, 3>& dDR_dv) const { #ifndef DONT_USE_CURL -#error curvatureEnergyGradient not implemented for the curl curvature energy + DUNE_THROW(Dune::NotImplemented, "curvatureEnergyGradient not implemented for the curl curvature energy!"); #endif embeddedLocalGradient = 0; -- GitLab