From: Daniel Arndt Date: Thu, 23 Feb 2023 14:11:19 +0000 (-0500) Subject: Only instantiate TpetraWrappers::Vector for types that have explicit instantiations... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5fb05b61b0ba59c480a981e8db60e0cc04103d5;p=dealii.git Only instantiate TpetraWrappers::Vector for types that have explicit instantiations in Tpetra --- 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