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