/[ascend]/trunk/models/johnpye/fprops/SConstruct
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2264 - (show annotations) (download)
Thu Aug 5 09:25:55 2010 UTC (13 years, 10 months ago) by jpye
File size: 979 byte(s)
A basic fprops_sat_p function working now.
Need to add p_t, T_t data to all materials.
1 # Standalone 'SConstruct' to demonstrate how you can build
2 # this ASCEND external library against an existing copy of
3 # ASCEND installed on your system.
4
5 env = Environment()
6
7 if WhereIs('ascend-config'):
8 env.ParseConfig(['ascend-config','--libs','--cppflags'])
9 else:
10 print "ERROR: no ascend-config in path"
11 env.Append(
12 LIBS=["ascend"]
13 ,LIBPATH=["#/../../.."]
14 ,CPPPATH=["#/../../.."]
15 )
16
17 env.Append(
18 CFLAGS=['-g']
19 )
20
21 if WhereIs('gsl-config'):
22 env.ParseConfig(['gsl-config','--libs','--cflags'])
23
24 srcs = ['mbwr.c','asc_mbwr.c']
25
26 env.SharedLibrary('mbwr_ascend',srcs)
27
28 env['fluids'] = ['ammonia','water','nitrogen','hydrogen','carbondioxide','methane']
29
30 coresrcs = ['ideal.c', 'helmholtz.c', 'sat.c', 'derivs.c', 'nonsolver.c', 'solve_ph.c']
31
32 srcs = coresrcs + ["%s.c" % f for f in env['fluids']]
33
34 env['shobjs'] = [env.SharedObject(s) for s in srcs]
35
36 env.SharedLibrary('helmholtz_ascend',env['shobjs'] + ['asc_helmholtz.c'])
37
38 env.SConscript('python/SConscript',['env'])
39

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