Dharmendar Reddy <dharmareddy84 at gmail.com> writes: > I am using Fortran. Can i make this call from fortran ? > PetscViewerCreate(PetscObjectComm((PetscObject)dm), viewer) MPI_Comm comm call PetscObjectGetComm(dm, comm, ierr) call PetscViewerCreate(comm, viewer, ierr) or use PETSC_COMM_WORLD if you never use subcommunicators.