From a5fb05b61b0ba59c480a981e8db60e0cc04103d5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 23 Feb 2023 09:11:19 -0500 Subject: [PATCH] Only instantiate TpetraWrappers::Vector for types that have explicit instantiations in Tpetra --- source/lac/trilinos_tpetra_vector.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/lac/trilinos_tpetra_vector.cc b/source/lac/trilinos_tpetra_vector.cc index 73a7621b95..91e0728178 100644 --- a/source/lac/trilinos_tpetra_vector.cc +++ b/source/lac/trilinos_tpetra_vector.cc @@ -23,11 +23,19 @@ namespace LinearAlgebra { namespace TpetraWrappers { +# ifdef HAVE_TPETRA_INST_FLOAT template class Vector; +# endif +# ifdef HAVE_TPETRA_INST_DOUBLE template class Vector; +# endif # ifdef DEAL_II_WITH_COMPLEX_VALUES +# ifdef HAVE_TPETRA_INST_COMPLEX_FLOAT template class Vector>; +# endif +# ifdef HAVE_TPETRA_INST_COMPLEX_DOUBLE template class Vector>; +# endif # endif } // namespace TpetraWrappers } // namespace LinearAlgebra -- 2.39.5