Thanks for the answer. For some reason I cannot open XDMF files on paraview even though the simulation looks fine? It’s annoying because I’d like to use write_checkpoint to then restart simulations. I 'll look into it, but for now I write everything to .pvd files. In any case the solution was just to change the writing line
fFo << (function, t)
to
fFo << (project(function, V), t)
where V is the vector space I’m using.
Thanks again!
If I use the normal reader it seems to load the file and it finds the fielsd I’m outputting to it, but doesn’t show anything. If I use the T or S readers, Paraview just crashes and closes. If I output the same information to a pvd file, then I can open it with Paraview and it renders everything just fine.