On Mon 20. Jan 2020 at 19:11, Sam Guo <sam....@cd-adapco.com> wrote: > Dear PETSc dev team, > If PETSc function returns an error, what's the correct way to clean > PETSc? >
The answer depends on the error message reported. Send the complete error message and a better answer can be provided. Particularly how to clean up the memory? > Totally depends on the objects which aren’t being freed. You need to provide more information Thanks Dave > Thanks, > Sam >