Commit 48932bd6 authored by Dmitry Bagaev's avatar Dmitry Bagaev

petsc rare bug fix

parent 7ea33147
......@@ -217,7 +217,9 @@ namespace INMOST {
if (matrix != NULL) {
MatrixDestroyDataPetsc(&matrix);
}
SolverDestroyDataPetsc(&ksp);
if (ksp != NULL) {
SolverDestroyDataPetsc(&ksp);
}
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment