Skip to content
Snippets Groups Projects
Commit 70dcd4a2 authored by David DeMarle's avatar David DeMarle
Browse files

make xdmf3 test respect lack of hdf5 files

I vaguely recall that the old xdmf3 writer didn't respect the
cutover size limit and always made hdf5 files. In any case
the updated xdmf3 does and the test needs to respect that fact
that it is OK to have and xdmf file without an acoompanying
hdf5 file.
parent a3bd88db
No related branches found
No related tags found
No related merge requests found
......@@ -69,20 +69,20 @@ def DoFilesExist(xdmfFile, hdf5File, vtkFile, deleteIfSo):
xlenOK = os.path.getsize(xdmfFile) > 0
if hdf5File:
hexists = os.path.exists(hdf5File)
hlenOK = os.path.getsize(hdf5File) > 0
hlenOK = True #os.path.getsize(hdf5File) > 0
if vtkFile:
vexists = os.path.exists(vtkFile)
vlenOK = os.path.getsize(vtkFile) > 0
theyDo = xexists and xlenOK
if hdf5File:
theyDo = theyDo and hexists and hlenOK
#if hdf5File:
# theyDo = theyDo and hexists and hlenOK
if vtkFile:
theyDo = theyDo and vexists and vlenOK
if theyDo and deleteIfSo and CleanUpGood:
os.remove(xdmfFile)
if hdf5File:
if hexists:
os.remove(hdf5File)
if vtkFile:
os.remove(vtkFile)
......
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