Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-08 Thread Smith, Barry F.
Thanks Satish! > On Mar 8, 2018, at 9:50 AM, Satish Balay wrote: > > Great! I've merged balay/ftn-VIEWER_DRAW/maint to 'maint' > > Satish > > On Thu, 8 Mar 2018, Tim Steinhoff wrote: > >> Yeah, thanks Satish. >> PETSC_VIEWER_DRAW_() works perfectly and I could not reproduce my >> above m

Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-08 Thread Satish Balay
Great! I've merged balay/ftn-VIEWER_DRAW/maint to 'maint' Satish On Thu, 8 Mar 2018, Tim Steinhoff wrote: > Yeah, thanks Satish. > PETSC_VIEWER_DRAW_() works perfectly and I could not reproduce my > above mentioned issue with PETSC_VIEWER_STDOUT_(), so probably I > messed something up. > Thanks

Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-08 Thread Tim Steinhoff
Yeah, thanks Satish. PETSC_VIEWER_DRAW_() works perfectly and I could not reproduce my above mentioned issue with PETSC_VIEWER_STDOUT_(), so probably I messed something up. Thanks again for your great support, Volker 2018-03-06 18:14 GMT+01:00 Satish Balay : > Ok - I've added ftn interface for PET

Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-06 Thread Satish Balay
Ok - I've added ftn interface for PETSC_VIEWER_DRAW_() [similar to PETSC_VIEWER_STDOUT_()] in branch balay/ftn-VIEWER_DRAW/maint. You can give it a try and see if it works. Satish On Tue, 6 Mar 2018, Satish Balay wrote: > Hm - I do see the fortran interface code for PETSC_VIEWER_STDOUT_() > >

Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-06 Thread Satish Balay
Hm - I do see the fortran interface code for PETSC_VIEWER_STDOUT_() https://bitbucket.org/petsc/petsc/src/049452fa31a1384b9850ba16ebcec79c99e4198c/src/sys/classes/viewer/impls/ascii/ftn-custom/zvcreatef.c?at=master&fileviewer=file-view-default and it does appear to work for me. balay@asterix /ho

Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-06 Thread Tim Steinhoff
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.

Re: [petsc-users] PETSC_VIEWER_DRAW_(Comm) Fortran interface missing?

2018-03-06 Thread Smith, Barry F.
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