18#include <libmesh/libmesh_config.h>
20#ifdef LIBMESH_HAVE_PETSC
22#include <libmesh/petsc_mffd_matrix.h>
23#include <libmesh/petsc_matrix_shell_matrix.h>
57 CPPUNIT_ASSERT(mffd.
mat() == owner.
mat());
71 CPPUNIT_ASSERT(mffd.
mat() == owner.
mat());
CPPUNIT_TEST(testAssignWithoutContext)
void testAssignWithoutContext()
CPPUNIT_TEST(testAssignWithContext)
void testAssignWithContext()
LIBMESH_CPPUNIT_TEST_SUITE(PetscMFFDMatrixTest)
This class allows to use a PETSc shell matrix as a PetscMatrix.
void assign(Mat m, bool set_context)
Adopt an existing, externally-owned Mat, without destroying it when this object goes out of scope.
This class provides a nice interface to the PETSc C-based data structures for parallel,...
This class allows to use a PETSc shell matrix as a PetscMatrix.
virtual void init(const numeric_index_type m, const numeric_index_type n, const numeric_index_type m_l, const numeric_index_type n_l, const numeric_index_type=30, const numeric_index_type=10, const numeric_index_type blocksize=1) override
Initialize SparseMatrix with the specified sizes.
Communicator * TestCommWorld
The libMesh namespace provides an interface to certain functionality in the library.
CPPUNIT_TEST_SUITE_REGISTRATION(PetscMFFDMatrixTest)