]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add missing initialize for constraints
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 21 Aug 2013 20:22:22 +0000 (20:22 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 21 Aug 2013 20:22:22 +0000 (20:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@30386 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/meshworker/simple.h

index 0a5c70c6cb10d36627f1fb88d179818a183595b0..dc9d1264ad669861d92ae98a9f8e6638861c8b0c 100644 (file)
@@ -458,6 +458,15 @@ namespace MeshWorker
        */
       void initialize(MATRIX &m, VECTOR &rhs);
 
+      /**
+       * Initialize the constraints. After this function has been
+       * called with a valid ConstraintMatrix, the function
+       * ConstraintMatrix::distribute_local_to_global() will be used
+       * by assemble() to distribute the cell and face matrices into a
+       * global sparse matrix.
+       */
+      void initialize(const ConstraintMatrix &constraints);
+
       /**
        * Initialize the local data
        * in the
@@ -1189,7 +1198,15 @@ namespace MeshWorker
       ResidualSimple<VECTOR>::initialize(data);
     }
 
+    template <class MATRIX, class VECTOR>
+    inline void
+    MatrixSimple<MATRIX>::initialize(const ConstraintMatrix &c)
+    {
+      MatrixSimple<MATRIX>::initialize(c);
+      ResidualSimple<VECTOR>::initialize(c);
+    }
 
+    
     template <class MATRIX, class VECTOR>
     template <class DOFINFO>
     inline void

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.