[petsc-users] TSMonitorSolutionVTK

Sepideh Kavousi skavou1 at lsu.edu
Thu Feb 13 15:05:34 CST 2020


Dear Petsc users,
I am trying to write VTK output file every few steps. When I was using the petsc 3.7 I used the following lines:
if (user->ts_write % 500 ==0) {
ierr= PetscSNPrintf(user->filename,sizeof(user->filename),"one-%03d.vts",user->ts_write);CHKERRQ(ierr);
ierr= TSMonitorSolutionVTK(user->ts,user->ts_write,t,user->sol_old,&user->filename);CHKERRQ(ierr);}
user->ts_write+=1;
}
and it worked fine, but when I use the same line in Petsc  3.9 and 3.10, using these lines it still outputs the files but when I open them with Visit and try to visualize the individual field component, it does not show them.

I was wondering does anything change in "TSMonitorSolutionVTK"  between the petsc 3.7 and the newer versions?

Best,
Sepideh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200213/14d113ac/attachment-0001.html>


More information about the petsc-users mailing list