/[ascend]/trunk/solvers/lsode/SConscript
ViewVC logotype

Annotation of /trunk/solvers/lsode/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1509 - (hide annotations) (download)
Wed Jun 27 13:08:47 2007 UTC (16 years, 10 months ago) by jpye
File size: 573 byte(s)
Fixed external loading of integrators, at least on my system. Needs testing
with/without fortran, sundials, etc.
Changed little thing kn d1mach.c to make default behaviour correct on Linux.
1 jpye 1508 Import('env')
2    
3 jpye 1509 if 'LSODE' in env.get('WITH_SOLVERS'):
4    
5     solver_env = env.Copy()
6 johnpye 427
7 jpye 1509 srcs = ['lsode.f','asc_lsode.c']
8 johnpye 674
9 jpye 1509 linpack_srcs = ['d1mach.c','dgbfa.f','dgbsl.f','dgefa.f','dgesl.f']
10 jpye 1508
11 jpye 1509 for s in linpack_srcs:
12     srcs.append( "linpack/%s" % s )
13 jpye 1508
14 jpye 1509 if env.get('F2C_LIBPATH'):
15     solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])
16 jpye 1508
17 jpye 1509 if solver_env.get('F2C_LIB'):
18     solver_env.AppendUnique(LIBS=[env.get('F2C_LIB')])
19 jpye 1508
20 jpye 1509 solver_env.AppendUnique(LIBS=['ascend'])
21 jpye 1508
22 jpye 1509 liblsode = solver_env.SharedLibrary('lsode',srcs)
23    
24     env['extfns'] += [liblsode]
25    
26     # vim: set syntax=python:

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