dolfinx icon indicating copy to clipboard operation
dolfinx copied to clipboard

Write XML on XDMFFile.close, add flush

Open michalhabera opened this issue 5 years ago • 1 comments

michalhabera avatar May 26 '20 06:05 michalhabera

This PR avoids touching filesystem with pugi XML file on every write_foo call (beneficial in timeloops). It does so only on explicit .close() or .flush().

Barriers are needed only is some places in tests that unrealistically read right after writing. Processes must wait for rank0 to flush the XML file to disk. Barriers could be removed after #1032 is solved.

michalhabera avatar Oct 23 '20 09:10 michalhabera

Closing since we plan to deprecate XDMF anyway.

garth-wells avatar Sep 09 '22 17:09 garth-wells