[petsc-users] PetscPrintf
Rongliang Chen
rongliang.chan at gmail.com
Mon Apr 16 23:12:13 CDT 2018
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 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, 2018, at 6:17 PM, Rongliang Chen <rongliang.chan at gmail.com> wrote:
>>
>> 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,
>>
>> Rongliang
>>
>> <ex111.c>
More information about the petsc-users
mailing list