From 86dd9583f654c1e515ad8222a49da6c3f2575ad5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 19 Nov 2019 11:47:12 -0500 Subject: [PATCH] Use explicit instantiations instead of forward declarations --- source/base/symmetric_tensor.cc | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) 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 -- 2.39.5