]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable some Sundials functions for complex-valued PETSc
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 2 Oct 2017 14:11:59 +0000 (16:11 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 2 Oct 2017 14:12:20 +0000 (16:12 +0200)
include/deal.II/sundials/copy.h
source/sundials/arkode.cc
source/sundials/copy.cc
source/sundials/ida.cc

index 63a67a01949c132b2be5177b6e2bfba6e36061ff..b4e25b37f9abd3b8c01bd8dc6530e5f273de9719 100644 (file)
@@ -50,10 +50,12 @@ namespace SUNDIALS
 #endif // DEAL_II_WITH_TRILINOS
 
 #ifdef DEAL_II_WITH_PETSC
+#ifndef PETSC_USE_COMPLEX
     void copy(PETScWrappers::MPI::Vector &dst, const N_Vector &src);
     void copy(N_Vector &dst, const PETScWrappers::MPI::Vector &src);
     void copy(PETScWrappers::MPI::BlockVector &dst, const N_Vector &src);
     void copy(N_Vector &dst, const PETScWrappers::MPI::BlockVector &src);
+#endif // PETSC_USE_COMPLEX
 #endif // DEAL_II_WITH_PETSC
 
 #endif
index d3a488229c1303b65453212bbb2d79774b915963..b6a6dad4e80220441b5747c90a6ad9e14ad9bec2 100644 (file)
@@ -472,14 +472,16 @@ namespace SUNDIALS
 #ifdef DEAL_II_WITH_TRILINOS
   template class ARKode<TrilinosWrappers::MPI::Vector>;
   template class ARKode<TrilinosWrappers::MPI::BlockVector>;
-#endif
+#endif // DEAL_II_WITH_TRILINOS
 
 #ifdef DEAL_II_WITH_PETSC
+#ifndef PETSC_USE_COMPLEX
   template class ARKode<PETScWrappers::MPI::Vector>;
   template class ARKode<PETScWrappers::MPI::BlockVector>;
-#endif
+#endif // PETSC_USE_COMPLEX
+#endif // DEAL_II_WITH_PETSC
 
-#endif
+#endif //DEAL_II_WITH_MPI
 
 }
 
index fb3d6fc147052aa3f921513f133f401de2467256..767c7f625e2390f6afedc1efb6b98c07fbdfeca6 100644 (file)
@@ -105,6 +105,7 @@ namespace SUNDIALS
 #endif //DEAL_II_WITH_TRILINOS
 
 #ifdef DEAL_II_WITH_PETSC
+#ifndef PETSC_USE_COMPLEX
 
     void copy(PETScWrappers::MPI::Vector &dst, const N_Vector &src)
     {
@@ -148,6 +149,7 @@ namespace SUNDIALS
         }
     }
 
+#endif //PETSC_USE_COMPLEX
 #endif //DEAL_II_WITH_PETSC
 
 #endif //mpi
index 114b7dd2317920a72ce0be076de09494a925c7ef..228f7538a3a86961b85e9f1ed9e18142cf526f29 100644 (file)
@@ -502,14 +502,16 @@ namespace SUNDIALS
 #ifdef DEAL_II_WITH_TRILINOS
   template class IDA<TrilinosWrappers::MPI::Vector>;
   template class IDA<TrilinosWrappers::MPI::BlockVector>;
-#endif
+#endif // DEAL_II_WITH_TRILINOS
 
 #ifdef DEAL_II_WITH_PETSC
+#ifndef PETSC_USE_COMPLEX
   template class IDA<PETScWrappers::MPI::Vector>;
   template class IDA<PETScWrappers::MPI::BlockVector>;
-#endif
+#endif // PETSC_USE_COMPLEX
+#endif // DEAL_II_WITH_PETSC
 
-#endif
+#endif //DEAL_II_WITH_MPI
 
 }
 

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.