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

Contents of /trunk/solvers/lsode/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2036 - (show annotations) (download)
Mon May 18 15:03:16 2009 UTC (13 years, 4 months ago) by ballan
File size: 1007 byte(s)
issues resolved:
295
390
301
cmslv.c: unused var cleanup.
lsode/SConscript: fortran flags bugs-- may not work with 0.9x scons.
works with 1.2+. when adding -w, or any special flags, be sure to add
them and not replace the original flag.
system/var.c: 64bit clarity.
system/discrete.c: 64bit clarity.
system/analyze*: g_reuse declared in wrong place. 64bit clarity
system/diffvars: missing prototype function, 64bit clarity.
compiler/numlist.*: changed from int to glint.
compiler/simlist.c: missing includes needed for 64bit clarity.
compiler/instance_io.c: missing includes needed for 64bit clarity.
compiler/initialize.[ch]: const clarifications.
compiler/packages.c: const clarifications.
compiler/module.c: const clarifications.
compiler/statio.c: unused var cleanup.
compiler/procframe; const clarification. memory deallocation bugs.
compiler/notequery.c: repaired multiple casting and 64bit issues.
compiler/importhandler.c: const and free issues fixed.
compiler/type_desc.c: ridiculous if constructs clarified.
compiler/createinst.c: casting stupidity repaired.
linear/ranki2.c: missing includes needed for 64bitness.
solver/solver.c: const issues clarified.
utilities/ascConfig.h: added GLint typedefs for dealing with gllist
64bit portability.
utilities/ascPanic.c: removed extraneous const.
general/ospath.c: safer,quieter handling for string pointer difference.
integrator/integrator.c: const issues clarified.
packages/sensitivity.c: missing includes needed fo 64bit sanity.
tcltk/interface/Integrators.c: 64 bitness.
tcltk/interface/SimsProc.c: const errors.
tcltk/interface/Driver.c: fixed env var handling wrt ascend-config (295)
models/test/z*a4c: fixed meters -> m conversion; someone never ran the
test suite after teasing the default units to ambiguous abbreviations.
SConstruct: added sizeof checks; output might be better put in a ascend
system-wide header.


1 Import('env')
2
3 if 'LSODE' in env.get('WITH_SOLVERS'):
4
5 solver_env = env.Clone()
6
7 srcs = ['lsode.f','asc_lsode.c']
8
9 linpack_srcs = ['d1mach.c','dgbfa.f','dgbsl.f','dgefa.f','dgesl.f']
10
11 for s in linpack_srcs:
12 srcs.append( "linpack/%s" % s )
13
14 if env.get('F2C_LIBPATH'):
15 solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])
16
17 if solver_env.get('F2C_LIB'):
18 solver_env.AppendUnique(LIBS=[env.get('F2C_LIB')])
19
20 solver_env.AppendUnique(
21 LIBS=['ascend']
22 ,LIBPATH=['#']
23 ,SHLINKFLAGS=['-fPIC']
24 )
25
26 fflags = env['SHFORTRANFLAGS']
27 fflags.append('-w')
28 # print "SHFORTRAN flags for lsode;"
29 # for k in fflags:
30 # print k
31
32 lib = solver_env.SharedLibrary('lsode',srcs + env['blasobjs']
33 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
34 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
35 ,SHFORTRANFLAGS = fflags
36 )
37
38 env.Depends(lib,env['libascend'])
39
40 env['extfns'] += [lib]
41
42 if env.get('CAN_INSTALL'):
43 dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
44 env.InstallShared(dir,lib)
45
46 # vim: set syntax=python:

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