From: Daniel Arndt Date: Tue, 19 Nov 2019 16:47:12 +0000 (-0500) Subject: Use explicit instantiations instead of forward declarations X-Git-Tag: v9.2.0-rc1~863^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86dd9583f654c1e515ad8222a49da6c3f2575ad5;p=dealii.git Use explicit instantiations instead of forward declarations --- diff --git a/source/base/symmetric_tensor.cc b/source/base/symmetric_tensor.cc index e0995d383e..aa608a2697 100644 --- a/source/base/symmetric_tensor.cc +++ b/source/base/symmetric_tensor.cc @@ -112,7 +112,9 @@ eigenvectors(const SymmetricTensor<2, 3, adouble> & /*T*/, AssertThrow(false, ExcADOLCAdvancedBranching()); return std::array>, 3>(); } + # else + template std::array eigenvalues(const SymmetricTensor<2, 1, adouble> &); @@ -122,18 +124,15 @@ eigenvalues(const SymmetricTensor<2, 2, adouble> &); template std::array eigenvalues(const SymmetricTensor<2, 3, adouble> &); -template <> -std::array>, 1> +template std::array>, 1> eigenvectors(const SymmetricTensor<2, 1, adouble> &, const SymmetricTensorEigenvectorMethod); -template <> -std::array>, 2> +template std::array>, 2> eigenvectors(const SymmetricTensor<2, 2, adouble> &, const SymmetricTensorEigenvectorMethod); -template <> -std::array>, 3> +template std::array>, 3> eigenvectors(const SymmetricTensor<2, 3, adouble> &, const SymmetricTensorEigenvectorMethod); # endif @@ -147,18 +146,15 @@ eigenvalues(const SymmetricTensor<2, 2, adtl::adouble> &); template std::array eigenvalues(const SymmetricTensor<2, 3, adtl::adouble> &); -template <> -std::array>, 1> +template std::array>, 1> eigenvectors(const SymmetricTensor<2, 1, adtl::adouble> &, const SymmetricTensorEigenvectorMethod); -template <> -std::array>, 2> +template std::array>, 2> eigenvectors(const SymmetricTensor<2, 2, adtl::adouble> &, const SymmetricTensorEigenvectorMethod); -template <> -std::array>, 3> +template std::array>, 3> eigenvectors(const SymmetricTensor<2, 3, adtl::adouble> &, const SymmetricTensorEigenvectorMethod); #endif