[petsc-users] Doubt about TSMonitorSolutionVTK

Barry Smith bsmith at petsc.dev
Mon Jun 24 20:37:18 CDT 2024


   See, for example, the bottom of src/ts/tutorials/ex26.c  that uses -ts_monitor_solution_vtk 'foo-%03d.vts'


> On Jun 24, 2024, at 8:47 PM, MIGUEL MOLINOS PEREZ <mmolinos at us.es> wrote:
> 
> This Message Is From an External Sender 
> This message came from outside your organization.
> Dear all, 
> 
> I want to monitor the results at each iteration of TS using vtk format. To do so, I add the following lines to my Monitor function:
> 
> 
> char 
> vts_File_Name[MAXC];
> 
> PetscCall(PetscSNPrintf(vts_File_Name,
> sizeof(vts_File_Name),
> 
> "./xi-MgHx-hcp-cube-x5-x5-x5-TS-BE-%i.vtu",
> step));
> 
> PetscCall(TSMonitorSolutionVTK(ts,
> step,
> time,
> X,
> (void*)vts_File_Name));
> 
> 
> My script compiles and executes without any sort of warning/error messages. However, no output files are produced at the end of the simulation. I’ve also tried the option “-ts_monitor_solution_vtk <filename-%03D.vts>”, but I got no results as well. 
> 
> I can’t find any similar example on the petsc website and I don’t see what I am doing wrong. Could somebody point me to the right direction?
> 
> Thanks,
> Miguel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240624/031cd6db/attachment-0001.html>


More information about the petsc-users mailing list