]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Only instantiate TpetraWrappers::Vector for types that have explicit instantiations...
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 23 Feb 2023 14:11:19 +0000 (09:11 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 23 Feb 2023 14:11:53 +0000 (09:11 -0500)
source/lac/trilinos_tpetra_vector.cc

index 73a7621b95c2ce9095a897a2e68e410266857e56..91e07281789ac9759184480dd6b7b6491f346bb9 100644 (file)
@@ -23,11 +23,19 @@ namespace LinearAlgebra
 {
   namespace TpetraWrappers
   {
+#  ifdef HAVE_TPETRA_INST_FLOAT
     template class Vector<float>;
+#  endif
+#  ifdef HAVE_TPETRA_INST_DOUBLE
     template class Vector<double>;
+#  endif
 #  ifdef DEAL_II_WITH_COMPLEX_VALUES
+#    ifdef HAVE_TPETRA_INST_COMPLEX_FLOAT
     template class Vector<std::complex<float>>;
+#    endif
+#    ifdef HAVE_TPETRA_INST_COMPLEX_DOUBLE
     template class Vector<std::complex<double>>;
+#    endif
 #  endif
   } // namespace TpetraWrappers
 } // namespace LinearAlgebra

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.