Re: [petsc-users] PetscPrintf

2018-04-16 Thread Rongliang Chen
Thanks Barry. I will update my petsc. By the way, I simply replaced the functions PetscFormatConvert() and PetscVFPrintfDefault() with those in petsc-3.6 and it works for me. Best, Rongliang On 04/17/2018 05:53 AM, Smith, Barry F. wrote: Rongliang, I have prepared a fix for this in t

Re: [petsc-users] PetscPrintf

2018-04-16 Thread Smith, Barry F.
Rongliang, I have prepared a fix for this in the branch barry/bugfix-petscformatconvert which comes from the master branch of PETSc. Unfortunately it requires many changes so cannot be back ported to previous releases. Thanks for reporting the problem, Barry > On Apr 11, 201

Re: [petsc-users] PetscPrintf

2018-04-11 Thread Rongliang Chen
Thanks Barry. I found petsc-3.6 and older versions did not have this restriction. Best, Rongliang On 04/12/2018 07:22 AM, Smith, Barry F. wrote: Yes, PetscPrintf() and related functions have a maximum string length of about 8000 characters. Barry On Apr 11, 2018, at 6:17 PM, Rongli

Re: [petsc-users] PetscPrintf

2018-04-11 Thread Smith, Barry F.
Yes, PetscPrintf() and related functions have a maximum string length of about 8000 characters. Barry > On Apr 11, 2018, at 6:17 PM, Rongliang Chen wrote: > > Dear All, > > > When I tried to print a long string using PetscPrintf() I found that it > truncated the string. Attached is a

[petsc-users] PetscPrintf

2018-04-11 Thread Rongliang Chen
Dear All, When I tried to print a long string using PetscPrintf() I found that it truncated the string. Attached is a simple example for this (run with single processor). I used PetscPrintf() and printf() to print the same string and the printf() seems OK. I am using petsc-3.8.4. Best, Ro

Re: [petsc-users] petscprintf and __float128

2015-09-24 Thread Barry Smith
> On Sep 24, 2015, at 9:24 PM, Gideon Simpson wrote: > > I saw that Barry posted something about this in the dev listserv last > December, but there wasn’t any follow up. Right now, on an OS X based > machine with gcc compilers, if I do a PetscPrintf with a __float128, with %g, > it outputs

Re: [petsc-users] petscprintf and __float128

2015-09-24 Thread Matthew Knepley
On Thu, Sep 24, 2015 at 9:24 PM, Gideon Simpson wrote: > I saw that Barry posted something about this in the dev listserv last > December, but there wasn’t any follow up. Right now, on an OS X based > machine with gcc compilers, if I do a PetscPrintf with a __float128, with > %g, it outputs 0.

[petsc-users] petscprintf and __float128

2015-09-24 Thread Gideon Simpson
I saw that Barry posted something about this in the dev listserv last December, but there wasn’t any follow up. Right now, on an OS X based machine with gcc compilers, if I do a PetscPrintf with a __float128, with %g, it outputs 0. Is there a way to get around this, other than using quadmath_s

[petsc-users] PetscPrintf

2011-12-13 Thread Xiangdong Liang
On Tue, Dec 13, 2011 at 11:24 AM, Matthew Knepley wrote: > On Tue, Dec 13, 2011 at 10:19 AM, Xiangdong Liang > wrote: >> >> On Tue, Dec 13, 2011 at 11:14 AM, Matthew Knepley >> wrote: >> > On Tue, Dec 13, 2011 at 10:13 AM, Xiangdong Liang >> > wrote: >> >> >> >> Hello everyone, >> >> >> >> I a

[petsc-users] PetscPrintf

2011-12-13 Thread Xiangdong Liang
On Tue, Dec 13, 2011 at 11:14 AM, Matthew Knepley wrote: > On Tue, Dec 13, 2011 at 10:13 AM, Xiangdong Liang > wrote: >> >> Hello everyone, >> >> I am using PetscPrintf(PETSC_COMM_WORLD,.) to print out some >> information. When I run the program on multiple processors, some of >> these calls

[petsc-users] PetscPrintf

2011-12-13 Thread Xiangdong Liang
Hello everyone, I am using PetscPrintf(PETSC_COMM_WORLD,.) to print out some information. When I run the program on multiple processors, some of these calls are printed out multiple times, while other calls are printed out once. Should it be printed only once if I use PETSC_COMM_WORLD? Thanks.

[petsc-users] PetscPrintf

2011-12-13 Thread Satish Balay
On Tue, 13 Dec 2011, Xiangdong Liang wrote: > > The print is executed only on rank 0 of the communicator provided. > > I agree. This implies that the message can be printed out at most > once. Do you have any hints why I saw the message printed out multiple > times? Perhaps bug with usage of Pe

[petsc-users] PetscPrintf

2011-12-13 Thread Matthew Knepley
On Tue, Dec 13, 2011 at 10:19 AM, Xiangdong Liang wrote: > On Tue, Dec 13, 2011 at 11:14 AM, Matthew Knepley > wrote: > > On Tue, Dec 13, 2011 at 10:13 AM, Xiangdong Liang > wrote: > >> > >> Hello everyone, > >> > >> I am using PetscPrintf(PETSC_COMM_WORLD,.) to print out some > >> informat

[petsc-users] PetscPrintf

2011-12-13 Thread Matthew Knepley
On Tue, Dec 13, 2011 at 10:13 AM, Xiangdong Liang wrote: > Hello everyone, > > I am using PetscPrintf(PETSC_COMM_WORLD,.) to print out some > information. When I run the program on multiple processors, some of > these calls are printed out multiple times, while other calls are > printed out o