Skip to content
Snippets Groups Projects
Commit 923a427f authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Merge branch 'bugfix/define-IsStandard-for-ADOLC' into 'master'

adolc.hh: define `Dune::Simd::IsStandard` for ADOLC's adouble

See merge request !30
parents 92046962 d510ae44
No related branches found
No related tags found
1 merge request!30adolc.hh: define `Dune::Simd::IsStandard` for ADOLC's adouble
Pipeline #
#ifndef DUNE_FUFEM_ADOLC_HH
#define DUNE_FUFEM_ADOLC_HH 1
#if HAVE_ADOLC
#include <adolc/adouble.h>
#include <dune/common/typetraits.hh>
#include <dune/common/version.hh>
#if DUNE_VERSION_GTE(DUNE_COMMON, 2, 7)
# include <dune/common/simd/isstandard.hh>
#endif
namespace Dune {
template<>
struct IsNumber<adouble>
: std::true_type
{};
#if DUNE_VERSION_GTE(DUNE_COMMON, 2, 7)
namespace Simd {
template<>
struct IsStandard<adouble>
: std::true_type
{};
} /* namespace Simd */
#endif
} /* namespace Dune */
#endif /* HAVE_ADOLC */
#endif
......@@ -3,6 +3,7 @@
#ifndef DUNE_FUFEM_ASSEMBLERS_LOCALASSEMBLERS_ADOLCLOCALENERGY_HH
#define DUNE_FUFEM_ASSEMBLERS_LOCALASSEMBLERS_ADOLCLOCALENERGY_HH
#include <dune/fufem/adolc.hh>
#include <dune/fufem/utilities/adolcnamespaceinjections.hh>
// Includes for the ADOL-C automatic differentiation library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment