[petsc-users] correction to previous email

Zhang, Hong hongzhang at anl.gov
Mon Apr 5 16:21:50 CDT 2021


I just tried to run ex20opt_ic.c (a two-variable ODE) which should be very similar to your problem. The file size is 64 bytes on my laptop. Can you prepare a minimal working example for us to reproduce the issue?

Since the size of your ODE is so small, it would be much better to store the checkpoints in memory instead of to the disk. This can be done with -ts_trajectory_type memory.

Thanks,
Hong (Mr.)

> On Apr 5, 2021, at 1:30 PM, Zane Charles Jakobs <Zane.Jakobs at colorado.edu> wrote:
> 
> Hi PETSc devs,
> 
> In an email I sent a few minutes ago, I claimed that the TS was writing files of size about 1MB per timestep. That is incorrect; it is actually writing files with a few kB (about 10 kB) per timestep. My questions in the previous email (why are these so big, and can I change that somehow?) still apply though, since this is still much larger than these files "should" be based on the size of the state (128 bits) and the time variable (64 bits).
> 
> My apologies for the error, and thank you for any help you can provide.
> 
> -Zane Jakobs



More information about the petsc-users mailing list