From: kanschat Date: Wed, 21 Aug 2013 20:22:22 +0000 (+0000) Subject: add missing initialize for constraints X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc2cb6ff6d1000fe8da21d30a6e4543aced4b684;p=dealii-svn.git add missing initialize for constraints git-svn-id: https://svn.dealii.org/trunk@30386 0785d39b-7218-0410-832d-ea1e28bc413d --- 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