Overview
Comment:This is the first CVS version (4.9).
Commented out code now deleted
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 1c927da37a220928297e9916d4c41b8b47e512791eb1b25c9df4d0192c369c56
User & Date: gawthrop@users.sourceforge.net on 2000-12-27 14:50:40
Other Links: branch diff | manifest | tags
Context
2000-12-27
14:57:43
Now takes the base path as an argument check-in: 67c4a3a8e1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:50:40
This is the first CVS version (4.9).
Commented out code now deleted
check-in: 1c927da37a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:14:48
initial checkin check-in: 84e55afbfb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [d8350c1a6b] to [cdeb1b312a].

11
12
13
14
15
16
17



18
19
20
21
22
23
24
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.290  2000/12/05 09:59:37  peterg
## Generates $1_cr.h - allows inclusion of c functions for crs
##
## Revision 1.289  2000/12/05 09:01:52  peterg
## Changed == to =
##
## Revision 1.288  2000/12/01 17:59:01  peterg
## Added .PRECIOUS: %.cc to hang on to cc files - thanks Geraint
##
## Revision 1.287  2000/12/01 16:04:24  peterg
968
969
970
971
972
973
974
975

976
977
978
979
980
981
982
971
972
973
974
975
976
977

978
979
980
981
982
983
984
985







-
+







###############################################################


#Check $MTTPATH has been set
mtt_check_var "$MTTPATH" "MTTPATH"

#Version
version='4.8'
version='4.9'

# MTT recursion level is zero unless explicitly set
level=0

#Computation mode is octave by default
computation=octave

1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1901
1902
1903
1904
1905
1906
1907
















































1908
1909
1910
1911
1912
1913
1914







-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-







	txt2tex $1 cr r

#SUMMARY sympar	symbolic parameters (txt)
#SUMMARY sympar*	symbolic parameters (view)
$1_sympar.txt: $1_type.sh $1_abg.m $1_aliased.txt
	mtt_make_sympar $1


# Lbl to sympar conversion
# ifeq ($switches,0)
# $1_sympar.txt: $1_sub.sh $1_abg.m 
# 	abg2sympar_m2txt $1
 
# 	if [ "$level" = "0" ]; then \
# 	  mv $1_sympar.txt MTT_sympar.txt; \
# 	else \
# 	  cat $1_sympar.txt >> MTT_sympar.txt; \
# 	fi
 
# 	sh $1_sub.sh "rm -f " '_sympar.txt' # Delete sympar files
# 	sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' sympar txt' # and recreate them
 
# 	if [ "$level" = "0" ]; then \
# 	  sort_sympar <MTT_sympar.txt> $1_sympar.txt; \
# 	fi
# endif
# ifeq ($switches,1)
# $1_sympar.txt: $1_sub.sh $1_abg.m
# 	abg2sympar_m2txt $1
 
# 	if [ "$level" = "0" ]; then \
# 	  mv $1_sympar.txt MTT_sympar.txt; \
# 	else \
# 	  cat $1_sympar.txt >> MTT_sympar.txt; \
# 	fi
 
# 	sh $1_sub.sh "rm -f " '_sympar.txt' # Delete sympar files
# 	sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' sympar txt' # and recreate them
 
# 	if [ "$level" = "0" ]; then \
# 	  sort_sympar <MTT_sympar.txt  > $1_sympar.txt1; \
# 	  struc2switch_txt $1; \
# 	  echo "Appending switch declarations"; \
# 	  cat $1_sympar.txt1 $1_switch.txt> $1_sympar.txt; \
# 	fi

# endif


# ## Old version -- just looks on top level
# ## $1_sympar.r: $1_lbl.txt $1_params.r
# ## 	lbl2sympar_txt2r $1
# ## 	echo "IN \"$1_params.r\";" >> $1_sympar.r
# ## 	echo 'END;' >> $1_sympar.r

#SUMMARY sympar	symbolic parameters (r)
$1_sympar.r: $1_sympar.txt
	sympar_txt2r $1
$1_sympar.m: $1_sympar.txt
	sympar_txt2m $1
$1_sympar.h: $1_sympar.txt
	sympar_txt2h.sh $1
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2054
2055
2056
2057
2058
2059
2060



































2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080

















2081
2082
2083
2084
2085
2086
2087







-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-




















-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-







	mtt_txt2m $1 numpar

#SUMMARY numpar	numerical parameter declaration (c) 
#SUMMARY numpar	numerical parameter declaration (view) 
$1_numpar.c:  $1_numpar.txt $1_sympar.c
	txt2c $1 numpar

#SUMMARY input	numerical input declaration  -- default (txt)
#'ifeq ($steadystate_computation,yes)
#$1_input.txt: 
#	mtt -q $mtt_switches $1 ss r
#	mtt -q $mtt_switches $1 struc txt
#	mtt -q $mtt_switches $1 switch txt
#	struc2input_txt2txt -ss $1
#$1_state.txt:
#	mtt -q $mtt_switches $1 ss r
#	mtt -q $mtt_switches $1 struc txt
#	struc2state_txt2txt -ss $1
#else
#$1_input.txt: 
#	mtt -q $mtt_switches $1 struc txt
#	mtt -q $mtt_switches $1 switch txt
#	struc2input_txt2txt $1
#$1_state.txt: 
#	mtt -q $mtt_switches $1 struc txt
#	struc2state_txt2txt $1
#endif


#ifeq ($switches,0)
#$1_input.txt: 
#	mtt $mtt_switches $1 struc txt; 
#	mtt $mtt_switches $1 ss r; 
#	struc2input_txt2txt $1
#endif
#ifeq ($switches,1)
#$1_input.txt: 
#	mtt $mtt_switches -q -u $1 struc txt; 
#	mtt $mtt_switches $1 ss r; 
#	mtt $mtt_switches -q -u $1 switch txt; 	
#	struc2input_txt2txt -s $1
#endif


#SUMMARY input	numerical input declaration (m) 
$1_input.m:  $1_input.txt $1_sympars.txt
	mtt_txt2m $1 input

#SUMMARY input	numerical input declaration (m) 
$1_logic.m:  $1_logic.txt $1_switch.txt
	mtt_txt2m $1 logic

#SUMMARY state	state declaration  -- default (txt)
#$1_state.txt: 
#	mtt $mtt_switches $1 struc txt; 
#	mtt $mtt_switches $1 ss r; 
#	struc2state_txt2txt $1

#SUMMARY state	state declaration (m) 
$1_state.m:  $1_state.txt $1_sympars.txt
	mtt_txt2m $1 state

#SUMMARY state	state declaration (c) 
#$1_state.c:  $1_state.txt $1_sympar.txt
#	txt2c $1 state

#SUMMARY input	numerical input declaration (c) 
#ifeq ($switches,0)
#$1_input.c:  $1_input.txt $1_sympar.c
#	input_txt2c $1
#endif
#
#ifeq ($switches,1)
#$1_switch.c: $1_struc.txt
#	struc2switch_txt2c $1
#$1_input.c:  $1_input.txt $1_sympar.c $1_switch.c
#	input_txt2c -s $1
#endif

#SUMMARY desc Verbal description of system (tex)
$1_desc.tex:
	makedesc $1


#SUMMARY params	symbolic parameter setting (r)
 $1_params.r: 
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2317
2318
2319
2320
2321
2322
2323






2324
2325
2326


2327
2328
2329
2330
2331
2332
2333







-
-
-
-
-
-



-
-







	touch $1_odeo.r

$1_ode.m: $1_def.r $1_ode.r
	mtt_r2m $optimise -parameters $1 ode m; #  matlab_tidy $1_ode.m
$1_odeo.m: $1_def.r $1_odeo.r
	mtt_r2m $1 odeo m

#$1_ode.oct: $1_def.r $1_ode.p $1_sympars.txt
#	mtt_p2oct $1 ode

#$1_odeo.oct: $1_def.r $1_odeo.p $1_sympars.txt
#	mtt_p2oct $1 odeo

$1_odea.m: $1_ode.m
	touch $1_odea.m

#$1_ode.c: $1_def.r $1_ode.r $1_sympar.r $1_sympar.c
#	ode_r2c $1 
$1_ode.tex: $1_ode.r  $1_sympar.r $1_simp.r
	ode_r2tex $1; latex_tidy $1_ode.tex


$1_lde.r: $1_dae.r
	dae2lde_r $1; tidy $1_lde.r

2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
2886
2887
2888
2889
2890
2891
2892




















2893
2894
2895
2896
2897
2898
2899







-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-







#Create PostScript version of fig files
ifeq ($REPTYPE,bg)
$1_$2.$ps : $1_$2.fig
	echo Creating $1_$2.$ps
	multi_command2 "fig2dev -L$eps" $1 $2.fig $2.$ps | sh
endif

#ifeq ($REPTYPE,data)
#ifeq ($PLOTTYPE,multiple)
#ifneq ($_ARGS,)
#$1_$2.fig: $1_$2.gdat
#	gdat2fig $1_$2 '$ARGS'
#	echo Creating $1_$2$__ARGS.$ps
#	cp $1_$2.$ps $1_$2$__ARGS.$ps
#else
#$1_$2.fig: $1_$2.gdat
#	gdat2fig $1_$2
#endif
#else
#$1_$2.$ps: $1_$2.gdat
#	gdat2ps $1_$2  '$ARGS'
#endif
#$1_$2.$ps: $1_$2.fig
#	echo Creating $1_$2.$ps
#	fig2dev -L$eps $1_$2.fig> $1_$2.$ps
#
#endif

ifeq ($REPTYPE,tex)
#Generic conversion of LaTeX doc to dvi or pdf
$1_$2.$ps: $1_$2.doc
	doc2$ps $1_$2 "$documenttype"
endif

3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
2944
2945
2946
2947
2948
2949
2950





2951
2952
2953
2954
2955
2956
2957







-
-
-
-
-







	gdat2view $1_$2 '$ARGS'&

#View a tex file
$1_$2.tview: $1_$2.dvi
	echo Creating view of $1_$2
	$DVIVIEW $1_$2.dvi&

#Generate pdf
#$1_$2.pdf: $1_$2.ps
#	echo Creating $1_$2.pdf
#	ps2pdf $1_$2.ps $1_$2.pdf

#Report generation
$1_rep.make: $1_rep.txt
	rep_txt2make $1 "$mtt_switches"

$1_reps_made:
	rep_txt2sh $1 "$mtt_switches";  touch $1_reps_made


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]