Skip to content
Snippets Groups Projects
Commit aeb83ffe authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Hide code if ADOLC is not found

parent 0d5f8e79
Branches
No related tags found
No related merge requests found
Pipeline #13421 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment