/[ascend]/trunk/pygtk/ascend.in
ViewVC logotype

Contents of /trunk/pygtk/ascend.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669 - (show annotations) (download)
Wed Jun 21 07:00:45 2006 UTC (17 years, 11 months ago) by johnpye
File size: 1304 byte(s)
Merged changes from DAE branch (revisions 702 to 819) back into trunk.
This adds the Integration API to the ASCEND solver (in base/generic).
Also provides pre-alpha support for 'IDA' from the SUNDIALS suite, a DAE solver.
Many other minor code clean-ups, including adoption of new 'ASC_NEW' and friends (to replace 'ascmalloc')
Added some very sketchy stuff providing 'DIFF(...)' syntax, although it is anticipated that this will be removed.
1 #!/bin/sh
2
3 if [ "x$ASCENDLIBRARY" != "x" ]; then
4 echo "USING ASCENDLIBRARY=$ASCENDLIBRARY"
5 else
6 ASCENDLIBRARY=@DEFAULT_ASCENDLIBRARY@
7 fi
8
9 args=$@
10
11 if [ "$OSTYPE" = "cygwin" ]; then
12 echo "CYGWIN..."
13 elif [ "$OSTYPE" = "msys" ]; then
14 #echo "MSYS..."
15 PYTHON=/c/Python24/python
16 fi
17
18 if [ $PYTHON ]; then
19 python=$PYTHON
20 else
21 python=python
22 fi
23
24
25 if [ $ASC_GDB ]; then
26 echo "RUNNING THROUGH DEBUGGER"
27 bin="gdb --symbols=../@ASC_SHLIBPREFIX@ascend@ASC_SHLIBSUFFIX@ --args $python"
28 else
29 bin=$python
30 fi
31
32 # if 'ascend' isn't in the path, assume ASC_DEV mode...
33 whichascend=`which ascend &2>/dev/null`
34 if [ $whichascend ]; then
35 echo $whichascend " ?"
36 else
37 ASC_DEV=1
38 fi
39
40 if [ "x$ASC_TEST" != "x" ]; then
41 # set the 'ASC_TEST' env var to run the suite of
42 # unit tests instead of running ASCEND GUI.
43 echo "LAUNCHING ASCEND TEST SUITE..."
44 export LD_LIBRARY_PATH=..
45 cmd="$bin test.py"
46 else
47 if [ "x$ASC_DEV" != "x" ]; then
48 # set the 'ASC_DEV' environment variable
49 # if you don't want to run ASCEND from the installed location
50 echo "NOTE! RUNNING ASC_DEV (LOCAL) MODE..."
51 export LD_LIBRARY_PATH=..
52 cmd="$bin gtkbrowser.py --pygtk-assets=glade/ --library=../models $args"
53 echo "Launching... $cmd"
54 else
55 cmd="$bin @INSTALL_ASCDATA@/gtkbrowser.py $args"
56 fi
57 fi
58
59 $cmd

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