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

Annotation of /trunk/solvers/ida/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2559 - (hide annotations) (download)
Fri Feb 3 19:05:59 2012 UTC (12 years, 3 months ago) by jpye
File size: 1098 byte(s)
Merge from Ksenija's branch rev 3919 to trunk. This includes changes from Dante Stroe and Leon Kwek, including:
Adds support for LINK syntax/semants (but test cases stil need to be written). (Dante Stroe)
Adds support for integration of models containing boundaries. More testing required. (Leon Kwek)
Test suite solver_lrslv added with very basic test of LRSlv. (Leon Kwek)
Fixed error in merge that had messed up SOLVER, SOLVE, OPTION statements.
Support added in LRSlv for taking boundary states from the 'perturb' var, rather than evaluating directly (Leon)
Integrated fix-and-assign statement support added (fixes bug 450) (Ksenija)
Bouncing ball test model included (Leon).

1 jpye 1508 Import('env')
2 jpye 1507
3 jpye 1512 if env.get('WITH_IDA'):
4 jpye 1507
5 jpye 1787 solver_env = env.Clone()
6 jpye 1507
7 jpye 1509 if env.get('WITH_MMIO'):
8     solver_env.Append(CPPPATH=["#/mmio"])
9 jpye 1507
10 jpye 1509 if env.get('SUNDIALS_CPPPATH'):
11     solver_env.Append(CPPPATH=[env.get('SUNDIALS_CPPPATH')])
12 jpye 1507
13 jpye 1509 if env.get('SUNDIALS_CPPPATH_EXTRA'):
14     solver_env.AppendUnique(
15     CPPPATH=env.get('SUNDIALS_CPPPATH_EXTRA')
16     )
17    
18     solver_env.Append(
19     CPPDEFINES=[
20     ('SUNDIALS_VERSION_MAJOR',"$SUNDIALS_VERSION_MAJOR")
21     ,('SUNDIALS_VERSION_MINOR',"$SUNDIALS_VERSION_MINOR")
22     ,'ASC_WITH_IDA'
23     ]
24 jpye 1507 )
25    
26 jpye 1509 solver_env.Append(
27 jpye 1511 LIBPATH=[env.get('SUNDIALS_LIBPATH'),"#"]
28 jpye 1597 ,LIBS=[env.get('SUNDIALS_LIBS'),"ascend"]
29 jpye 1509 )
30 jpye 1507
31 jpye 2559 srcs = ['ida.c', 'idacalc.c', 'idalinear.c', 'idaio.c', 'idaprec.c', 'idaanalyse.c', 'idaboundary.c']
32 jpye 1597 lib = solver_env.SharedLibrary("ida",srcs
33     ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
34     ,SHLIBPREFIX = env['EXTLIB_PREFIX']
35     )
36 jpye 1507
37 jpye 1597 env.Depends(lib,env['libascend'])
38 jpye 1510
39 jpye 1597 env['extfns'] += lib
40 mahesh 2130
41     print "WITH_IDA=",env.get('WITH_IDA')
42    
43 jpye 1509 if env.get('CAN_INSTALL'):
44     dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
45 jpye 1597 env.InstallShared(dir,lib)
46 jpye 1507
47     # vim: set syntax=python:

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