]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix PETSc error.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 13 Jan 2010 16:18:52 +0000 (16:18 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 13 Jan 2010 16:18:52 +0000 (16:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@20363 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_values.h

index ecf59a42bbba1a698bfffdd4db60fda6af0e5874..c405834f3d72ccbe10326ad03645756cb8e426ab 100644 (file)
 #include <algorithm>
 #include <memory>
 
+                               // dummy include in order to have the
+                               // definition of PetscScalar available
+                               // without including other PETSc stuff
+#ifdef DEAL_II_USE_PETSC
+#  include <petsc.h>
+#endif
+
 DEAL_II_NAMESPACE_OPEN
 
 template <int dim>   class Quadrature;
@@ -47,15 +54,10 @@ template <typename Number> class Vector;
 template <typename Number> class BlockVector;
 
 #ifdef DEAL_II_USE_PETSC
-namespace PetscWrappers
+namespace PETScWrappers
 {
   class Vector;
   class BlockVector;
-  namespace MPI
-  {
-    class Vector;
-    class BlockVector;
-  }
 }
 #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.