]> https://gitweb.dealii.org/ - dealii.git/commitdiff
separate MPI and non-MPI
authorTimo Heister <timo.heister@gmail.com>
Fri, 2 Nov 2012 21:40:43 +0000 (21:40 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 2 Nov 2012 21:40:43 +0000 (21:40 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27324 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/parallel_linear_algebra.h

index d9e7e615ddba3ac163302a1e762a532305e53439..2f66b9d23eda42f1424a6f0c76f91e65739eab92 100644 (file)
@@ -26,8 +26,7 @@ namespace LinearAlgebraDealII
 
   typedef SparseMatrix<double> SparseMatrix;
 
-  
-  
+  typedef PreconditionSSOR<SparseMatrix > PreconditionSSOR;
   
 }
 
@@ -40,6 +39,7 @@ DEAL_II_NAMESPACE_CLOSE
 #include <deal.II/lac/petsc_vector.h>
 #include <deal.II/lac/petsc_block_vector.h>
 #include <deal.II/lac/petsc_parallel_sparse_matrix.h>
+#include <deal.II/lac/petsc_sparse_matrix.h>
 #include <deal.II/lac/petsc_parallel_block_sparse_matrix.h>
 #include <deal.II/lac/petsc_precondition.h>
 
@@ -49,6 +49,16 @@ DEAL_II_NAMESPACE_OPEN
   {
     using namespace dealii;
 
+  typedef PETScWrappers::Vector Vector;
+  typedef PETScWrappers::BlockVector BlockVector;
+
+  typedef PETScWrappers::SparseMatrix SparseMatrix;
+    typedef PETScWrappers::PreconditionSSOR PreconditionSSOR;
+    
+
+    namespace MPI
+    {
+      
     /**
      * Typedef for the vector type used.
      */
@@ -88,6 +98,8 @@ DEAL_II_NAMESPACE_OPEN
      * for other blocks of the system matrix.
      */
     typedef PETScWrappers::PreconditionILU PreconditionILU;
+    }
+    
   }
 DEAL_II_NAMESPACE_CLOSE
 
@@ -106,7 +118,9 @@ DEAL_II_NAMESPACE_OPEN
   namespace LinearAlgebraTrilinos
   {
     using namespace dealii;
-
+    namespace MPI
+    {
+      
     /**
      * Typedef for the vector type used.
      */
@@ -146,6 +160,8 @@ DEAL_II_NAMESPACE_OPEN
      * for other blocks of the system matrix.
      */
     typedef TrilinosWrappers::PreconditionILU PreconditionILU;
+    }
+    
   }
 
 DEAL_II_NAMESPACE_CLOSE

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.