I am solving a time dependant pde and I save the solution at each time step.
u_file = XDMFFile("velocity.xdmf")
while t < T:
t += dt
# solve for u
u_file << u
This while loop takes a long time to finish. I want to check if 'u' is making sense so far. Hence, so way to preview 'velocity.xdmf' would be very useful but it cannot be read by paraview until the program terminates.