From 6102c6b3a2442b1b45aa1ee0aec75c8a117eb8d1 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 22 Dec 2022 09:29:44 +0100 Subject: [PATCH] Improve documentation. --- include/deal.II/lac/petsc_block_sparse_matrix.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/deal.II/lac/petsc_block_sparse_matrix.h b/include/deal.II/lac/petsc_block_sparse_matrix.h index 626974e70a..15db6f4f31 100644 --- a/include/deal.II/lac/petsc_block_sparse_matrix.h +++ b/include/deal.II/lac/petsc_block_sparse_matrix.h @@ -296,6 +296,11 @@ namespace PETScWrappers /** * This method assigns the PETSc Mat to the instance of the class. + * + * Note that the matrix is not copied: instead, the instance of this class + * is initialized to use the given matrix. This is useful if you want to + * interpret a PETSc Mat object as a deal.II BlockMatrix, and you already + * have a BlockMatrix object that you want to use for this purpose. */ void assign_petsc_matrix(Mat A); -- 2.39.5