Skip to content
Snippets Groups Projects
Commit 87529fce authored by wenqing's avatar wenqing
Browse files

added std::before exit

parent 6267848a
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ bool PETScLinearSolver::solve(const PETScVector &b, PETScVector &x) ...@@ -95,7 +95,7 @@ bool PETScLinearSolver::solve(const PETScVector &b, PETScVector &x)
PetscPrintf(PETSC_COMM_WORLD, "\nLinear solver (PETSc KSP) failed, quit now.\n"); PetscPrintf(PETSC_COMM_WORLD, "\nLinear solver (PETSc KSP) failed, quit now.\n");
KSPDestroy(&_solver); KSPDestroy(&_solver);
PetscFinalize(); PetscFinalize();
exit(EXIT_FAILURE); std::exit(EXIT_FAILURE);
} }
#ifdef TEST_MEM_PETSC #ifdef TEST_MEM_PETSC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment