Thank you for this solution. For now, I am using this

call PetscInitialize(PETSC_NULL_CHARACTER,ierr)
if (ierr .ne. 0) stop 'Unable to initialize PETSc'

and CHKERRA in other places of main.

Best
praveen

> On 19-Nov-2017, at 9:18 PM, Smith, Barry F. <[email protected]> wrote:
> 
>      In some of the Fortran examples we have code like
> 
>      call PetscInitialize(PETSC_NULL_CHARACTER,ierr)
>      if (ierr .ne. 0) then
>         print*,'Unable to initialize PETSc'
>         stop
>      endif
> 
>      Eventually we should update all the examples with this, or something 
> even better.
> 
>   Barry

Reply via email to