I want to save my function in .xyz form, but the problem is that when I work in parallel, for example, using 2 process, then it turns out that in some time steps, only the data in one of the process was stored. My code is something like the following:
XYZFile file("results/data.xyz");
file.write(*f);
does anyone know what is the reason, or is there any safe way to save the data when I work in parallel.
Without a minimal reproducible example, it is very hard to give you any guidance on this, especially since it is a rarely used/mentioned format in Legacy DOLFIN.