Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0ec8f92f authored by Martin Genet's avatar Martin Genet
Browse files

Any zfill will now work for output vtu

parent fde81723
No related branches found
No related tags found
No related merge requests found
......@@ -23,12 +23,12 @@ def write_VTU_file(
filebasename,
function,
time,
zfill=6):
zfill=3):
file_pvd = dolfin.File(filebasename+"__.pvd")
file_pvd << (function, float(time))
os.remove(
filebasename+"__.pvd")
shutil.move(
filebasename+"__"+"".zfill(zfill)+".vtu",
filebasename+"__"+"".zfill(6)+".vtu",
filebasename+"_"+str(time).zfill(zfill)+".vtu")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment