diff --git a/oasis/common/io.py b/oasis/common/io.py index 53c4101..dd50a65 100644 --- a/oasis/common/io.py +++ b/oasis/common/io.py @@ -288,4 +288,5 @@ def merge_xml_files(files): base_tree.write(new_file[0], xml_declaration=True) # Delete xdmf file - [remove(f) for f in old_files] + if MPI.rank(MPI.comm_world) == 0: + [remove(f) for f in old_files]