Fande Kong <fande.kong at colorado.edu> writes: > This was not complete. The complete result is attached. With petsc-3.4, you can use PetscFunctionBeginUser and -objects_dump to eliminate internal allocations from the output. I'm guessing you missed a KSPDestroy.