11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.294 2001/03/19 02:28:52 geraint
## Branch merge: merging-ode2odes-exe back to MAIN.
##
## Revision 1.293.2.8 2001/03/19 01:35:31 geraint
## Reverted forced update check to main branch form, ready for merge.
##
## Revision 1.293.2.7 2001/03/17 09:51:06 geraint
|
>
>
>
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.295 2001/03/23 11:21:29 gawthrop
## Show -pdf oprion in help list
##
## Revision 1.294 2001/03/19 02:28:52 geraint
## Branch merge: merging-ode2odes-exe back to MAIN.
##
## Revision 1.293.2.8 2001/03/19 01:35:31 geraint
## Reverted forced update check to main branch form, ready for merge.
##
## Revision 1.293.2.7 2001/03/17 09:51:06 geraint
|
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
|
if [ -n "$sensitivity" ]; then
sys=`echo $1 | cut -c 2-`
sys_abg=$sys"_abg"
fi
## Check octave version
if [ `octave --version | awk -F\. '{print $2}'` ]; then
define_octave_dev="-DOCTAVE_DEV"
else
define_octave_dev=""
fi
################################
# This is the main mtt programme
################################
##echo Target is $target, Subsystem is $Subsystem, options are $mtt_switches
|
|
>
|
<
|
<
>
|
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
|
if [ -n "$sensitivity" ]; then
sys=`echo $1 | cut -c 2-`
sys_abg=$sys"_abg"
fi
## Check octave version
case `$MATRIX --version | awk -F\. '{print $2}'` in
0) define_octave_dev="";; # stable
1) define_octave_dev="-DOCTAVE_DEV";; # development
*) define_octave_dev="-DOCTAVE_DEV";;
esac
################################
# This is the main mtt programme
################################
##echo Target is $target, Subsystem is $Subsystem, options are $mtt_switches
|
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
|
#SUMMARY simpar simulation information (m)
$1_simpar.m: $1_simpar.txt $1_def.r $1_sympar.txt
mtt_txt2m $1 simpar
#SUMMARY numpar numerical parameter declaration -- default (txt)
$1_numpar.txt : FORCE
mtt -q $1 sympar txt
mtt -q $1 def r
ifeq ($target,$1_numpar.txt)
mtt_update $1 numpar update
else
mtt_update $1 numpar
endif
#SUMMARY state numerical state declaration -- default (txt)
$1_state.txt : FORCE
mtt -q $1 struc txt
mtt -q $1 sympar txt
mtt -q $1 def r
ifeq ($target,$1_state.txt)
mtt_update $1 state update
else
mtt_update $1 state
endif
#SUMMARY input numerical state declaration -- default (txt)
$1_input.txt : FORCE
mtt -q $1 struc txt
mtt -q $1 sympar txt
ifeq ($target,$1_input.txt)
mtt_update $1 input update
else
mtt_update $1 input
endif
#SUMMARY logic Dynamic switch logic (txt)
$1_logic.txt : FORCE
mtt -q $1 def r
mtt -q $1 struc txt
mtt -q $1 sympar txt
ifeq ($target,$1_logic.txt)
mtt_update $1 logic update
else
mtt_update $1 logic
endif
# Dummy target
|
|
<
<
|
<
<
<
|
<
<
|
<
<
<
|
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
|
#SUMMARY simpar simulation information (m)
$1_simpar.m: $1_simpar.txt $1_def.r $1_sympar.txt
mtt_txt2m $1 simpar
#SUMMARY numpar numerical parameter declaration -- default (txt)
$1_numpar.txt : $1_sympar.txt $1_def.r
ifeq ($target,$1_numpar.txt)
mtt_update $1 numpar update
else
mtt_update $1 numpar
endif
#SUMMARY state numerical state declaration -- default (txt)
$1_state.txt : $1_struc.txt $1_sympar.txt $1_def.r
ifeq ($target,$1_state.txt)
mtt_update $1 state update
else
mtt_update $1 state
endif
#SUMMARY input numerical state declaration -- default (txt)
$1_input.txt : $1_struc.txt $1_sympar.txt
ifeq ($target,$1_input.txt)
mtt_update $1 input update
else
mtt_update $1 input
endif
#SUMMARY logic Dynamic switch logic (txt)
$1_logic.txt : $1_def.r $1_struc.txt $1_sympar.txt
ifeq ($target,$1_logic.txt)
mtt_update $1 logic update
else
mtt_update $1 logic
endif
# Dummy target
|