Overview
Comment: | Added sensitivity (-s) switch |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e2fe39fe52464d1366aac615148f10f2 |
User & Date: | gawthrop@users.sourceforge.net on 1999-11-16 05:53:21 |
Other Links: | branch diff | manifest | tags |
Context
1999-11-16
| ||
21:51:26 | Initial revision check-in: 4315e39664 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
05:53:21 | Added sensitivity (-s) switch check-in: e2fe39fe52 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1999-11-15
| ||
22:57:20 | Removed a debugging line check-in: 84b1729332 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [27ccd43894] to [d9af3fb974].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997,1998,1999 ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.214 1999/11/14 21:27:11 peterg ## *** empty log message *** ## ## Revision 1.213 1999/09/02 23:24:40 peterg ## Now explicitly generates executable _ode2odes.out file ## Which takes command line arguments ## | > > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997,1998,1999 ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.215 1999/11/15 22:45:31 peterg ## Reorganised integration method using -i switch ## Introduced -r (reset) switch ## ## Revision 1.214 1999/11/14 21:27:11 peterg ## *** empty log message *** ## ## Revision 1.213 1999/09/02 23:24:40 peterg ## Now explicitly generates executable _ode2odes.out file ## Which takes command line arguments ## |
︙ | ︙ | |||
797 798 799 800 801 802 803 804 805 806 807 808 809 810 | integration_method=implicit; mtt_switches="$mtt_switches implicit"; ;; *) echo $1 is an unknown integration method - use euler or implicit; exit;; esac;; -ss ) mtt_switches="$mtt_switches $1"; steadystate_computation=yes ;; -d ) directory=$2; cd $directory; shift ;; -dc ) mtt_switches="$mtt_switches $1"; | > > > | 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 | integration_method=implicit; mtt_switches="$mtt_switches implicit"; ;; *) echo $1 is an unknown integration method - use euler or implicit; exit;; esac;; -s ) mtt_switches="$mtt_switches $1"; sensitivity=sensitivity ;; -ss ) mtt_switches="$mtt_switches $1"; steadystate_computation=yes ;; -d ) directory=$2; cd $directory; shift ;; -dc ) mtt_switches="$mtt_switches $1"; |
︙ | ︙ | |||
903 904 905 906 907 908 909 | echo ' -c c-code generation' echo ' -d <dir> use directory <dir>' echo ' -dc Maximise derivative (not integral) causality' echo ' -dc Maximise derivative (not integral) causality' echo ' -i implicit Use implicit integration' echo ' -i euler Use Euler integration' echo ' -p print environment variables' | | > | 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 | echo ' -c c-code generation' echo ' -d <dir> use directory <dir>' echo ' -dc Maximise derivative (not integral) causality' echo ' -dc Maximise derivative (not integral) causality' echo ' -i implicit Use implicit integration' echo ' -i euler Use Euler integration' echo ' -p print environment variables' echo ' -r reset time stamp on representation' echo ' -s try to generate sensitivity BG (experimental)' echo ' -ss use steady-state info to initialise simulations' echo ' -t tidy mode (default)' echo ' -u untidy mode (leaves files in current dir)' echo ' -v verbose mode' echo ' --version print version and exit' echo ' --versions print version of mtt and components and exit' exit |
︙ | ︙ | |||
1386 1387 1388 1389 1390 1391 1392 | echo " please use mtt -i implicit in future" mtt_switches="$mtt_switches -i implicit"; fi fi fi if [ -n "$reset" ]; then | | | | > > > > > > > > > > > > > > > > > > > | > > > | | 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 | echo " please use mtt -i implicit in future" mtt_switches="$mtt_switches -i implicit"; fi fi fi if [ -n "$reset" ]; then if [ -f "$1_$2.$3" ]; then echo Resetting time stamp on $1_$2.$3 touch $1_$2.$3 else echo $1_$2.$3 does not exist - no action taken fi exit; fi if [ -n "$sensitivity" ]; then sys=`echo $1 | cut -c 2-` sys_abg=$sys"_abg" fi ################################ # This is the main mtt programme ################################ $MAKE -S $verbose -f - $1_$2.$3 << EOF # Cancel implicit rules I don't want %.dvi: %.tex ifeq ("$sensitivity","sensitivity") ifeq ("$level","0") $1_abg.fig: $sys_abg.fig abg2sensitivity_fig $sys else # If level>0, try and get subsystem files $1_abg.fig: mtt -q -u $mtt_switches compcopy $1 || abg2sensitivity_fig $sys|| exit 1 endif else ifneq ("$level","0") $1_abg.fig: mtt -q -u $mtt_switches compcopy $1 endif endif # Create an arg file if it doesn't exist $1_args.m: touch $1_args.m #Create skeleton files (with titles) if not already there #SUMMARY lbl* label file (txt) #SUMMARY lbl label file (txt) #SUMMARY lbl* label file (view) #SUMMARY lbl label file (view) #SUMMARY lbl* label file (tex) #SUMMARY lbl label file (tex) $1_lbl.txt: abg2lbl_fig2txt $1 $sensitivity $1_lbl.tex: $1_lbl.txt lbl_txt2tex $1 #SUMMARY alias name aliases for each subsystem (txt) $1_alias.txt: $1_lbl.txt lbl2alias_txt2txt $1 |
︙ | ︙ | |||
1791 1792 1793 1794 1795 1796 1797 | (sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null || exit 1') || exit 1 rbg2abg_m $info_switch $1 #SUMMARY cbg* causal bond graph (m) #Acausal bond graph to causal bond graph: mfile $1_cbg.m: $1_abg.m | < | 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 | (sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null || exit 1') || exit 1 rbg2abg_m $info_switch $1 #SUMMARY cbg* causal bond graph (m) #Acausal bond graph to causal bond graph: mfile $1_cbg.m: $1_abg.m abg2cbg_m $info_switch $causality_switch $1 $1_type.sh: $1_cbg.m #SUMMARY cbg* causal bond graph (fig) #SUMMARY cbg* causal bond graph (ps) #SUMMARY cbg* causal bond graph (view) |
︙ | ︙ |