PETScWrappers:BlockSparseMatrix: constructor from PETSc Mat
Mat &
petsc_matrix();
+ /**
+ * 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);
+
private:
+ /**
+ * A PETSc Mat object that describes the entire block matrix.
+ * Internally, this is done by creating
+ * a "nested" matrix using Petsc's MatCreateNest object whose individual
+ * blocks are the blocks of this matrix.
+ */
Mat petsc_nest_matrix = nullptr;
};
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams