Commit aeb83ffe authored by Jonathan Youett's avatar Jonathan Youett

Hide code if ADOLC is not found

parent 0d5f8e79
Pipeline #13421 passed with stage
in 55 minutes
......@@ -3,15 +3,16 @@
#ifndef DUNE_FUFEM_ASSEMBLERS_LOCALASSEMBLERS_ADOLCLOCALENERGY_HH
#define DUNE_FUFEM_ASSEMBLERS_LOCALASSEMBLERS_ADOLCLOCALENERGY_HH
#include <dune/fufem/utilities/adolcnamespaceinjections.hh>
// Includes for the ADOL-C automatic differentiation library
// Need to come before (almost) all others.
#ifdef HAVE_ADOLC
#include <dune/fufem/utilities/adolcnamespaceinjections.hh>
#include <adolc/adolc.h>
#include <adolc/drivers/drivers.h> // use of "Easy to Use" drivers
#include <adolc/taping.h>
#endif
#include <dune/common/fvector.hh>
......@@ -108,4 +109,7 @@ static typename Lfe::Traits::LocalBasisType::Traits::RangeFieldType tapeEnergy(
}
}
#endif // HAVE_ADOLC
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment