From 2014977b699e901563bc91e14dce447e58b05a98 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 13 Nov 2013 12:31:26 +0000 Subject: [PATCH] Add a note. git-svn-id: https://svn.dealii.org/trunk@31637 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/block_sparse_matrix.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/lac/block_sparse_matrix.h b/deal.II/include/deal.II/lac/block_sparse_matrix.h index e5f91ad22b..75d3c5811e 100644 --- a/deal.II/include/deal.II/lac/block_sparse_matrix.h +++ b/deal.II/include/deal.II/lac/block_sparse_matrix.h @@ -186,8 +186,11 @@ public: * sparsity patterns of the * parameter. * - * The elements of the matrix are - * set to zero by this function. + * You have to make sure that the lifetime of the sparsity structure is at + * least as long as that of this matrix or as long as reinit(const + * SparsityPattern &) is not called with a new sparsity structure. + * + * The elements of the matrix are set to zero by this function. */ virtual void reinit (const BlockSparsityPattern &sparsity); //@} -- 2.39.5