From 84d426abb4b1a9ac5ee899e04ee62715351fa6bf Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Wed, 4 Nov 2015 22:45:25 +0100 Subject: [PATCH] Fixed bug in matrix creator. --- source/numerics/matrix_tools.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/source/numerics/matrix_tools.cc b/source/numerics/matrix_tools.cc index 2e46d1581f..2f494c053e 100644 --- a/source/numerics/matrix_tools.cc +++ b/source/numerics/matrix_tools.cc @@ -1707,9 +1707,10 @@ namespace MatrixCreator const Quadrature &q, SparseMatrix &matrix, const Function *const coefficient, - const ConstraintMatrix &) + const ConstraintMatrix &constraints) { - create_laplace_matrix(StaticMappingQ1::mapping, dof, q, matrix, coefficient); + create_laplace_matrix(StaticMappingQ1::mapping, + dof, q, matrix, coefficient, constraints); } @@ -1766,10 +1767,10 @@ namespace MatrixCreator const Function &rhs, Vector &rhs_vector, const Function *const coefficient, - const ConstraintMatrix &) + const ConstraintMatrix &constraints) { create_laplace_matrix(StaticMappingQ1::mapping, dof, q, - matrix, rhs, rhs_vector, coefficient); + matrix, rhs, rhs_vector, coefficient, constraints); } @@ -1819,9 +1820,10 @@ namespace MatrixCreator const hp::QCollection &q, SparseMatrix &matrix, const Function *const coefficient, - const ConstraintMatrix &) + const ConstraintMatrix &constraints) { - create_laplace_matrix(hp::StaticMappingQ1::mapping_collection, dof, q, matrix, coefficient); + create_laplace_matrix(hp::StaticMappingQ1::mapping_collection, dof, q, + matrix, coefficient, constraints); } @@ -1875,10 +1877,10 @@ namespace MatrixCreator const Function &rhs, Vector &rhs_vector, const Function *const coefficient, - const ConstraintMatrix &) + const ConstraintMatrix &constraints) { create_laplace_matrix(hp::StaticMappingQ1::mapping_collection, dof, q, - matrix, rhs, rhs_vector, coefficient); + matrix, rhs, rhs_vector, coefficient, constraints); } } // namespace MatrixCreator -- 2.39.5