Hi Barry, thanks for your fast response. Yes, I'm fine with that. Indeed, my code with the routine PETSC_VIEWER_STDOUT_(comm) was compilable, but turned out it did not work properly at runtime (hangs). When using PETSC_VIEWER_DRAW_(comm), the compiler immediately gives an error and I was confused.
Thanks, Volker By the way, the output parameter description of PetscViewerASCIIGetStdout is missing in the documentation: http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerASCIIGetStdout.html 2018-03-06 16:26 GMT+01:00 Smith, Barry F. <bsm...@mcs.anl.gov>: > > > Tim, > > The PETSC_VIEWER_STDOUT_(comm) construct doesn't work in Fortran. Only > the > PETSC_VIEWER_STDOUT_WORLD or PETSC_VIEWER_STDOUT_SELF work. This is also true > for > draw see src/ksp/ksp/examples/tutorials/ex100f.F90 > > Note that you can use PetscViewerDrawOpen() to get a draw to open on any > communicator you like. > > > Does this answer your question or did I misunderstand? > > Barry > > > > >> On Mar 6, 2018, at 9:02 AM, Tim Steinhoff <kandanov...@gmail.com> wrote: >> >> Hi all, >> >> it seems like the routine PETSC_VIEWER_DRAW_(comm) is not available >> in Fortran, while PETSC_VIEWER_STDOUT_(comm) is. >> Is there anything I can do about it? (I am using the current maint >> branch of PETSc) >> >> Thank you very much and kind regards, >> >> Volker >