]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix compilation of kinsol wrappers with complex PETSc 5963/head
authorDenis Davydov <davydden@gmail.com>
Tue, 27 Feb 2018 09:02:11 +0000 (10:02 +0100)
committerDenis Davydov <davydden@gmail.com>
Tue, 27 Feb 2018 09:04:48 +0000 (10:04 +0100)
source/sundials/kinsol.cc

index 4fe71f0efdd3eeb0eca12326ead162cc3b3b28b3..5aea3ba400f7c49d2b4e8fb5f577a0618762c667 100644 (file)
@@ -350,9 +350,11 @@ namespace SUNDIALS
 #endif
 
 #ifdef DEAL_II_WITH_PETSC
+#ifndef PETSC_USE_COMPLEX
   template class KINSOL<PETScWrappers::MPI::Vector>;
   template class KINSOL<PETScWrappers::MPI::BlockVector>;
 #endif
+#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.