From: Jean-Paul Pelteret Date: Thu, 20 Sep 2018 09:36:18 +0000 (+0200) Subject: Fix undefined reference to some ADNumberTraits static variables. X-Git-Tag: v9.1.0-rc1~699^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb1746f89bdffd272a07c759ea5c3a68f5ddac9c;p=dealii.git Fix undefined reference to some ADNumberTraits static variables. Fixes #7211 --- diff --git a/include/deal.II/differentiation/ad/ad_number_traits.h b/include/deal.II/differentiation/ad/ad_number_traits.h index 2b5073bb2e..4675c493bf 100644 --- a/include/deal.II/differentiation/ad/ad_number_traits.h +++ b/include/deal.II/differentiation/ad/ad_number_traits.h @@ -1009,6 +1009,62 @@ namespace Differentiation typename internal::RemoveComplexWrapper::type, ADNumberTypeCode>::n_supported_derivative_levels; +# else + + template + constexpr bool NumberTraits< + ScalarType, + ADNumberTypeCode, + typename std::enable_if< + std::is_floating_point::value || + (boost::is_complex::value && + std::is_floating_point::type>::value)>::type>::is_taped; + + + template + constexpr bool NumberTraits< + ScalarType, + ADNumberTypeCode, + typename std::enable_if< + std::is_floating_point::value || + (boost::is_complex::value && + std::is_floating_point::type>::value)>::type>::is_tapeless; + + + template + constexpr bool NumberTraits< + ScalarType, + ADNumberTypeCode, + typename std::enable_if< + std::is_floating_point::value || + (boost::is_complex::value && + std::is_floating_point::type>::value)>::type>::is_real_valued; + + + template + constexpr bool NumberTraits< + ScalarType, + ADNumberTypeCode, + typename std::enable_if< + std::is_floating_point::value || + (boost::is_complex::value && + std::is_floating_point::type>::value)>::type>::is_complex_valued; + + + template + constexpr unsigned int NumberTraits< + ScalarType, + ADNumberTypeCode, + typename std::enable_if< + std::is_floating_point::value || + (boost::is_complex::value && + std::is_floating_point::type>::value)>::type>::n_supported_derivative_levels; + # endif