[petsc-users] PetscPrintf

Smith, Barry F. bsmith at mcs.anl.gov
Wed Apr 11 18:22:26 CDT 2018


  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 <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