From bc9c94e83ddd4b24f603591e99b5d61e8223452a Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 21 Aug 2013 20:22:22 +0000 Subject: [PATCH] add missing initialize for constraints git-svn-id: https://svn.dealii.org/trunk@30386 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/meshworker/simple.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/deal.II/include/deal.II/meshworker/simple.h b/deal.II/include/deal.II/meshworker/simple.h index 0a5c70c6cb..dc9d1264ad 100644 --- a/deal.II/include/deal.II/meshworker/simple.h +++ b/deal.II/include/deal.II/meshworker/simple.h @@ -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::initialize(data); } + template + inline void + MatrixSimple::initialize(const ConstraintMatrix &c) + { + MatrixSimple::initialize(c); + ResidualSimple::initialize(c); + } + template template inline void -- 2.39.5