We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81b32dc commit 56a41c2Copy full SHA for 56a41c2
1 file changed
plugin/mpi/PETSc-code.hpp
@@ -1066,6 +1066,7 @@ namespace PETSc {
1066
PetscBool assembled;
1067
MatAssembled(ptB->_petsc, &assembled);
1068
MatDuplicate(ptB->_petsc, assembled ? MAT_COPY_VALUES : MAT_DO_NOT_COPY_VALUES, &ptA->_petsc);
1069
+ MatShellSetOperation(ptB->_petsc, MATOP_DESTROY, NULL);
1070
MatDestroy(&ptB->_petsc);
1071
}
1072
} else
0 commit comments