From 70c3eba68c0ece265a271c69363b83a96e83342a Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 19 Jun 2009 11:38:34 +0200 Subject: [PATCH] Added eplf_input --- bin/eplf_input.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 bin/eplf_input.py diff --git a/bin/eplf_input.py b/bin/eplf_input.py new file mode 100755 index 0000000..f509785 --- /dev/null +++ b/bin/eplf_input.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +import sys,os,time +from resultsFile import * + +# Check command line + +if len(sys.argv) != 2: + print "usage: "+sys.argv[0]+" file.out" + sys.exit(2) + +firstArg = sys.argv[1] + +file = open("eplf_grid.data","w") +print >>file, "&eplf_grid" +print >>file, " Npoints=80,80,80" +print >>file, "/" +file.close() + +file = getFile(firstArg) +print firstArg, 'recognized as', str(file).split('.')[-1].split()[0] + + +from qcio import qcio +write_qcioFile(file,"QCIO_File") +