Commit 06d1bbac authored by Graham, Aaron's avatar Graham, Aaron
Browse files

Add dummy MPACT.exe that produces output files

parent 9f683b51
Loading
Loading
Loading
Loading

MPACT.exe

0 → 100755
+30 −0
Original line number Diff line number Diff line
#!/bin/python

import os
import sys
import h5py

print "Congrats, you ran fake MPACT!"
print ""

if len(sys.argv) < 2:
  print "Must provide the .xml file name!"
  sys.exit(1)
else:
  filename = sys.argv[1]

f = open(os.path.splitext(filename)[0] + '.sum', 'w')
f.write("Created test summary file")
f.close()

f = open(os.path.splitext(filename)[0] + '.out', 'w')
f.write("Created test output file")
f.close()

f = open(os.path.splitext(filename)[0] + '.log', 'w')
f.write("Created test log file")
f.close()

f = h5py.File(os.path.splitext(filename)[0] + '.h5', 'w')
dset = f.create_dataset("/test", data=42)
f.close()