Re: [petsc-users] printing from some processors to a file

2013-11-27 Thread Randall Mackie
Hi Barry, Thanks for fixing this. The workaround you suggested yesterday works perfectly well for me at this point, and I'll look at this fix in the next release. Randy M. On Tue, Nov 26, 2013 at 8:29 PM, Barry Smith bsm...@mcs.anl.gov wrote: I have fixed this in the next branch of PETSc

[petsc-users] printing from some processors to a file

2013-11-26 Thread Randall Mackie
I am trying to print a character string to a file from one or more processors in a communicator. I thought that I could do this using PetscViewerASCIISynchronizedPrintf, but it prints to the screen instead of to the file opened as a viewer. The attached simple program illustrates the issue. If I

Re: [petsc-users] printing from some processors to a file

2013-11-26 Thread Barry Smith
Randy, Thanks for reporting this with a full test case. It is our bug. The implementation keeps the file pointer in a global variable on process 0 that is set in the first call to the PetscViewerASCIISynchronizedPrintf() or in PetscSynchronizedFPrintf() . The reason for the ugly

Re: [petsc-users] printing from some processors to a file

2013-11-26 Thread Barry Smith
I have fixed this in the next branch of PETSc https://bitbucket.org/petsc/petsc/wiki/Home Because it changes APIs I cannot merge it into the current release (though it doesn’t change APIs for your code). Thanks for reporting the problem, Barry On Nov 26, 2013, at 3:45 PM,