[petsc-dev] Fortran interface for PetscViewerASCIISynchronizedAllow

Barry Smith bsmith at mcs.anl.gov
Thu Dec 10 21:55:40 CST 2015


> On Dec 10, 2015, at 9:28 PM, Adrian Croucher <a.croucher at auckland.ac.nz> wrote:
> 
> 
> 
> On 11/12/15 16:00, Barry Smith wrote:
>>   Ahh, we've changed it to PetscViewerASCIISynchronizePush() and PetscViewerASCIISynchronizePop() to allow it to be nested.
> 
> Thanks... looks like it is actually PetscViewerASCIIPushSynchronized() and PetscViewerASCIIPopSynchronized().
> 
> 
> Now a sort-of-related question:
> 
> How do you use PetscSynchronizedFlush() from Fortran? The examples I've seen (all in C) call it something like this:
> 
> ierr = PetscSynchronizedFlush(PETSC_COMM_WORLD, PETSC_STDOUT)

  If you are using the PetscViewerASCII routines then you should use PetscViewerFlush(viewer,ierr) and not
the PetscSynchronizedFlush() 

  Barry

> 
> However if in Fortran I try
> 
> call PetscSynchronizedFlush(PETSC_COMM_WORLD, PETSC_STDOUT, ierr)
> 
> it complains that
> 
> Error: Symbol 'petsc_stdout' at (1) has no IMPLICIT type
> 
> Is there something else I should pass in there instead?
> - Adrian
> 
> -- 
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> University of Auckland, New Zealand
> email: a.croucher at auckland.ac.nz
> tel: +64 (0)9 923 84611
> 




More information about the petsc-dev mailing list