]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tpetra: Fix instantiations for SolverDirect* with complex number types 16683/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 20 Feb 2024 22:07:48 +0000 (17:07 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 20 Feb 2024 22:08:14 +0000 (17:08 -0500)
source/lac/trilinos_tpetra_solver_direct.cc

index 512baf815b2067f7aad467154a7f9c54c355746f..44fe43c2b50fc31a1d7720c31f119a597ff06fae 100644 (file)
@@ -39,14 +39,14 @@ namespace LinearAlgebra
 #      endif
 #      ifdef DEAL_II_WITH_COMPLEX_VALUES
 #        ifdef HAVE_TPETRA_INST_COMPLEX_FLOAT
-    template class SolverDirectBase<complex<float>>;
-    template class SolverDirect<complex<float>>;
-    template class SolverDirectKLU2<complex<float>>;
+    template class SolverDirectBase<std::complex<float>>;
+    template class SolverDirect<std::complex<float>>;
+    template class SolverDirectKLU2<std::complex<float>>;
 #        endif
 #        ifdef HAVE_TPETRA_INST_COMPLEX_DOUBLE
-    template class SolverDirectBase<complex<double>>;
-    template class SolverDirect<complex<double>>;
-    template class SolverDirectKLU2<complex<double>>;
+    template class SolverDirectBase<std::complex<double>>;
+    template class SolverDirect<std::complex<double>>;
+    template class SolverDirectKLU2<std::complex<double>>;
 #        endif
 #      endif
 

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.