]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed bug in matrix creator. 1832/head
authorLuca Heltai <luca.heltai@sissa.it>
Wed, 4 Nov 2015 21:45:25 +0000 (22:45 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Wed, 4 Nov 2015 21:53:50 +0000 (22:53 +0100)
source/numerics/matrix_tools.cc

index 2e46d1581f06e59bc287a2488d6bd5361c32ff5f..2f494c053ee601ed317f9959db3f7da298b03ce3 100644 (file)
@@ -1707,9 +1707,10 @@ namespace MatrixCreator
                               const Quadrature<dim>    &q,
                               SparseMatrix<double>     &matrix,
                               const Function<spacedim> *const coefficient,
-                              const ConstraintMatrix &)
+                              const ConstraintMatrix &constraints)
   {
-    create_laplace_matrix(StaticMappingQ1<dim,spacedim>::mapping, dof, q, matrix, coefficient);
+    create_laplace_matrix(StaticMappingQ1<dim,spacedim>::mapping,
+                          dof, q, matrix, coefficient, constraints);
   }
 
 
@@ -1766,10 +1767,10 @@ namespace MatrixCreator
                               const Function<spacedim>      &rhs,
                               Vector<double>           &rhs_vector,
                               const Function<spacedim> *const coefficient,
-                              const ConstraintMatrix &)
+                              const ConstraintMatrix &constraints)
   {
     create_laplace_matrix(StaticMappingQ1<dim,spacedim>::mapping, dof, q,
-                          matrix, rhs, rhs_vector, coefficient);
+                          matrix, rhs, rhs_vector, coefficient, constraints);
   }
 
 
@@ -1819,9 +1820,10 @@ namespace MatrixCreator
                               const hp::QCollection<dim>    &q,
                               SparseMatrix<double>     &matrix,
                               const Function<spacedim> *const coefficient,
-                              const ConstraintMatrix &)
+                              const ConstraintMatrix &constraints)
   {
-    create_laplace_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q, matrix, coefficient);
+    create_laplace_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q,
+                          matrix, coefficient, constraints);
   }
 
 
@@ -1875,10 +1877,10 @@ namespace MatrixCreator
                               const Function<spacedim>      &rhs,
                               Vector<double>           &rhs_vector,
                               const Function<spacedim> *const coefficient,
-                              const ConstraintMatrix &)
+                              const ConstraintMatrix &constraints)
   {
     create_laplace_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q,
-                          matrix, rhs, rhs_vector, coefficient);
+                          matrix, rhs, rhs_vector, coefficient, constraints);
   }
 
 }  // namespace MatrixCreator

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.