My fenics version is 2019.**, and I use it for solving CH equation, AC equation and etc.
Now I have a question, Should I create a total xdmf file before the loop starts, then store the results of each time step into this one xdmf file, and then .close() after the program finishes running; or should I create an xdmf file for each time step, and then write the results of the corresponding time step, and then .close() at the end of each time step.
Which one of these two should I choose? If I choose the first one, I can’t use paraview to view the post-processing results while I’m calculating, and if I choose the second one, I don’t know if it makes sense, and I don’t know if the file to store it will be bigger or not.