fixed: TestPETScMatrix.Assemble

for some reason newer PETSc requires an explicit call to zero out the
matrix.
This commit is contained in:
Arne Morten Kvarving 2020-06-12 15:43:21 +02:00
parent 9606dea6db
commit 35c8464a2b

View File

@ -30,6 +30,8 @@ TEST(TestPETScMatrix, Assemble)
PETScMatrix* myMat = dynamic_cast<PETScMatrix*>(sim.getLHSmatrix());
ASSERT_TRUE(myMat != nullptr);
myMat->init();
Matrix stencil(4,4);
stencil.diag(1.0);