/[ascend]/trunk/models/johnpye/fprops/precalc.py
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/precalc.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1877 - (show annotations) (download) (as text)
Thu Sep 18 05:38:37 2008 UTC (10 years, 3 months ago) by jpye
File MIME type: text/x-python
File size: 498 byte(s)
Reverted ammonia cp0 coefficients to calculated values, rather than hacky curvefit values.
1 #!/usr/bin/env python
2 import subprocess, sys, os.path
3
4 try:
5 species = sys.argv[1]
6 except:
7 print "Run './precalc.py speciesname' to run the precalculation routine (if applicable)"
8 exit(1)
9
10 src = '%s.c'%species
11 if not os.path.exists(src):
12 print "No file named '%s' found in current directory" % src
13 exit(1)
14
15 s = 'gcc precalc.c %s.c -DPRECALC -o precalc -lm' % (species)
16
17 print s
18 p = subprocess.Popen(s.split(' '))
19
20 p.wait()
21
22 if not p.returncode:
23 print s
24 p = subprocess.Popen(s.split(' '))
25
26
27

Properties

Name Value
svn:executable *

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22