Comment: | Fixed [ 549658 ] awk should be gawk. Replaced calls to awk with call to gawk. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
79687d9c64a267545db7d7757605eacc |
User & Date: | geraint@users.sourceforge.net on 2002-04-28 18:58:07 |
Other Links: | branch diff | manifest | tags |
2002-04-30
| ||
23:27:00 |
Replaced octave_map with columnvector in simpar.cc. Not quite as descriptive but standardises the interfaces somewhat and reduces the dependency on liboctinterp (and thus libreadline, libkpathsea, libncurses, etc). check-in: 629d24e5d5 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-04-28
| ||
18:58:07 |
Fixed [ 549658 ] awk should be gawk. Replaced calls to awk with call to gawk. check-in: 79687d9c64 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
18:41:27 |
Fixed [ 549658 ] awk should be gawk. Replaced calls to awk with call to gawk. check-in: ad35120331 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Modified mttroot/mtt/bin/trans/rbg2abg_m from [dfb39a93d4] to [4cb8efbc5f].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + + + | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: rbg2abg_m # ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.18 2001/03/30 15:13:58 gawthrop ## Rationalised simulation modes to each return mtt_data ## ## Revision 1.17 2000/12/05 12:04:03 peterg ## Changed function name to name() ## ## Revision 1.16 2000/12/05 09:04:08 peterg ## Fixed function () compatibility problem. ## ## Revision 1.15 2000/11/03 14:53:33 peterg |
︙ | |||
159 160 161 162 163 164 165 | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | - + - + - + | ## Sets the units for the abg file test_units() { grep '^[\s]*[#|%]UNITS' < ${lbl_file} >/dev/null if [ $? = "0" ]; then grep '^[\s]*[#|%]UNITS' < ${lbl_file} |\ |
︙ |
Modified mttroot/mtt/bin/trans/rbg_fig2m from [cca83822e8] to [0298389683].
︙ | |||
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) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.9 2002/01/11 03:44:19 geraint ## Breaks compounds objects into individual components. Eliminates "incorrect object code error" in cbg.ps when component is not causally complete. ## ## Revision 1.8 2001/10/15 14:25:44 gawthrop ## Now handles white space at the end of component names ## Converts ports lables [1:5] into [1,2,3,4,5] ## ## Revision 1.7 2001/07/24 22:42:59 geraint ## Fixes problem when lbl.txt does not end with newline. ## |
︙ | |||
72 73 74 75 76 77 78 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | - + - + | # Deletes trailing white space in component names # and break compound objects sed 's/[ ]*\\001/\\001/' < $1_abg.fig |\ grep -v "^6 [0-9 ]*" | grep -v "^-6$" >$1_abg.mtt1 # Replace [1:5] with [1,2,3,4,5] |
Modified mttroot/mtt/bin/trans/rep_txt2sh from [03dd3f0d6b] to [fe70dda0ea].
︙ | |||
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) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.5 2000/11/27 10:13:25 peterg ## Now passes though options as second argument ## ## Revision 1.4 1998/04/14 18:17:15 peterg ## More messages about Makefile ## ## Revision 1.3 1998/04/14 18:01:04 peterg ## Now executes a Makefile (if it exists) ## # Revision 1.2 1997/12/06 14:27:53 peterg |
︙ | |||
46 47 48 49 50 51 52 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | - + | # Check for old (2 arg) version and update if necessary mtt_count=`strip_comments < $1_rep.txt | grep -c 'mtt '` if [ "$mtt_count" = "0" ]; then echo 'Hmm .. seems to be an old format. creating new file' echo "Old version saved as $1_rep.txt.SAVE" mv $1_rep.txt $1_rep.txt.SAVE strip_comments < $1_rep.txt.SAVE |\ |
Modified mttroot/mtt/bin/trans/rep_txt2tex from [d29f0048ba] to [4ac80571a4].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.1 2000/12/27 15:57:31 peterg ## Initial revision ## ## Revision 1.15 2000/04/06 10:57:12 peterg ## Removed debug line ## ## Revision 1.14 2000/04/06 10:51:14 peterg ## replaces $PWD by `pwd` for sh compatibility ## ## Revision 1.13 1999/10/19 23:47:27 peterg |
︙ | |||
65 66 67 68 69 70 71 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | - + | documenttype=$2; if [ "$documenttype" = "book" ]; then # do book version # Inform user echo "Creating $1_rep.tex (directory version)" strip_comments < $1_rep.txt|\ |
︙ | |||
102 103 104 105 106 107 108 | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | - + | fi # Inform user echo "Creating $1_rep.tex" # Create the LaTeX file strip_comments <$1_rep.txt |\ |
︙ |
Modified mttroot/mtt/bin/trans/reps_txt2tk from [3e47e7c9bc] to [05813b0e5a].
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | + + + - + | # Copyright (c) P.J.Gawthrop, 1998 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.5 2000/12/28 12:39:34 peterg ## Put under RCS ## ## Revision 1.4 2000/04/05 07:37:27 peterg ## *** empty log message *** ## ## Revision 1.3 1999/08/18 06:15:48 peterg ## Stripped down to just representations menu - see mtt_make_menu ## ## Revision 1.2 1999/03/09 00:03:19 peterg ## Revisions for xmtt ## ## Revision 1.1 1998/10/20 08:13:14 peterg ## Initial revision ## ############################################################### sep='|'; # Separates the languages from the rest. # Create reps menu |
︙ |
Modified mttroot/mtt/bin/trans/simpar_txt2h from [a1e5b7a064] to [fe5f9ab6b8].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.1 1998/05/13 08:56:28 peterg ## Initial revision ## ############################################################### system=$1 # Inform user |
︙ | |||
34 35 36 37 38 39 40 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + | echo "from $1_simpar.txt" >> $1_simpar.h echo '*/' >> $1_simpar.h echo >> $1_simpar.h # Now do the parameters sed 's/ //g' $1_simpar.txt |\ |
Modified mttroot/mtt/bin/trans/sort_sympar from [883628776a] to [7f751591a5].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | + + + - + | # Copyright (c) P.J.Gawthrop, 1998. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.1 1998/03/07 15:15:53 peterg ## Initial revision ## ############################################################### # Step 1: sort by variable name # Step 2: put all varables with same name on same line sort -k 1,1 | \ |
︙ |
Modified mttroot/mtt/bin/trans/strip_comments from [8b2e61fa07] to [429b584b4b].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + + + - - + + | # Copyright (c) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.2 1998/11/18 11:30:19 peterg ## Now strips blank lines as well ## ############################################################### sed 's/%/#/' |\ |
Modified mttroot/mtt/bin/trans/strip_notvars.sh from [e9c68eb700] to [45d48c9630].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 | - + | #! /bin/sh type=$1 name=$2 file=$3 notvar="[%|#]NOT[V|P]AR" grep ${notvar} ${type}_lbl.txt |\ |
Modified mttroot/mtt/bin/trans/strip_pars.sh from [981c8a73a2] to [7d64e8b718].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 | - + | #! /bin/sh infile=$1 name=$2 var="[%|#][V|P]AR" grep ${var} ${infile} |\ |
Modified mttroot/mtt/bin/trans/struc2gnuplot_txt2wish from [9db213a0b1] to [3601be40d3].
︙ | |||
87 88 89 90 91 92 93 | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | - + | return [reverse_sort \$list] } } EOF ## create states and outputs lists |
︙ | |||
126 127 128 129 130 131 132 | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | - + | pack .quit -expand false -fill x -side right pack .print -expand false -fill x -side right ## map names to column numbers EOF |
︙ |
Modified mttroot/mtt/bin/trans/struc2input_txt2txt from [280b194479] to [016a2f4250].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (c) P.J.Gawthrop 1997 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.15 2000/12/28 12:44:31 peterg ## *** empty log message *** ## ## Revision 1.14 2000/10/16 08:28:56 peterg ## Tidied up: ## SS broken due to incorrect ss.r file ## Switches?? ## ## Revision 1.13 2000/03/03 11:33:19 peterg ## *** empty log message *** |
︙ | |||
85 86 87 88 89 90 91 | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | - + - + - + | if [ -n "$steadystate_computation" ]; then # Compute inputs from ss.r file # Inform user echo Creating $1_input.txt - compute from steady-state information cat $1_ss.r $1_struc.txt | sed 's/\$//' |\ |
Modified mttroot/mtt/bin/trans/struc2sspar_txt2r from [48a2db67a9] to [81e9931607].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - + - + | echo "% Steady-state parameter file ($1_sspar.r)" > $1_sspar.r echo "% Generated by MTT at `date`" >> $1_sspar.r cat $MTTPATH/trans/rcs_header.m >> $1_sspar.r echo >> $1_sspar.r echo "% Steady-state states" >> $1_sspar.r |
︙ |
Modified mttroot/mtt/bin/trans/struc2state_txt2txt from [fd9c2c8fdf] to [5418171295].
︙ | |||
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 28 | + + + + | # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.10 2000/10/16 08:20:23 peterg # %% New version with direct naming. # %% Note ss version is broken - ss.r file in wrong format # %% # %% Revision 1.9 2000/10/10 21:03:06 peterg # %% *** empty log message *** # %% # %% Revision 1.8 1998/08/10 13:57:33 peterg # %% Removed debugging lines # %% # %% Revision 1.7 1998/08/10 13:55:11 peterg |
︙ | |||
69 70 71 72 73 74 75 | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - + - + | if [ -n "$steadystate_computation" ]; then # Compute state from ss.r file # Inform user echo Creating $1_state.txt - compute from steady-state information cat $1_ss.r $1_struc.txt | sed 's/\$//' |\ |
Modified mttroot/mtt/bin/trans/struc2switch_txt from [178de24ab3] to [05163357ae].
︙ | |||
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 28 29 | + + + + + | # Copyright (c) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.6 2001/08/02 03:01:08 geraint ## Stopped initialisation of mttopen from over-writing logic.txt contents. ## - comment removed from "sort" input (which put it last) because ## initialisation is inserted in place of the comment by switch_txt2m. ## ## Revision 1.5 2000/10/17 09:20:00 peterg ## *** empty log message *** ## ## Revision 1.4 1998/07/26 10:28:30 peterg ## Added a header line to avoid empty file and to trigger ## switch_txt2m to write initial stuff. ## |
︙ | |||
39 40 41 42 43 44 45 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + - + | echo Creating $1_switch.txt rm -f $1_switch.txt echo "# These are the switches deduced from ISW and CSW components"\ > $1_switch.txt # This is the main transformation using awk |
Modified mttroot/mtt/bin/trans/struc_txt2m from [8e5a3e29dd] to [6d59673a1d].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 2001/10/15 14:20:27 gawthrop ## Now handles the cases where ny or nx or nu are zero ## ## Revision 1.2 2001/03/19 02:28:52 geraint ## Branch merge: merging-ode2odes-exe back to MAIN. ## ## Revision 1.1.2.1 2001/03/06 03:52:15 geraint ## Put back struc_txt2m - required by mtt2sys. ## ############################################################### |
︙ | |||
42 43 44 45 46 47 48 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | - + | output_name = ""; state_name = ""; EOF # This is the main transformation using awk |
︙ |
Modified mttroot/mtt/bin/trans/struc_txt2tex from [6003f8f14a] to [d8af09e179].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.4 2000/12/28 12:46:59 peterg ## Put under RCS ## # Revision 1.3 1997/12/06 19:10:41 peterg # Reverted to tabular --- from supertabular # # Revision 1.2 1997/04/15 11:17:58 peterg # Uses supertabular for long tables. # # Revision 1.1 1997/04/15 09:49:04 peterg |
︙ | |||
33 34 35 36 37 38 39 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + | rm -f mtt_error #Write some file headers echo "%% Structure file ($1_struc.txt)" > $1_struc.tex echo "%% Generated by MTT at `date`" >> $1_struc.tex # This is the main transformation using awk |
︙ |
Modified mttroot/mtt/bin/trans/switch_txt2m from [ac9707fae1] to [1b58ea9614].
︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + | ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.15 2000/12/04 08:23:25 peterg ## Put logic in-line - avoids the if statements ## ## Revision 1.14 2000/11/09 10:29:21 peterg ## open --> mtt_open ## ## Revision 1.13 2000/11/09 10:19:12 peterg ## Explicitly write out the open switches .... ## ## Revision 1.12 2000/11/09 09:52:07 peterg |
︙ | |||
58 59 60 61 62 63 64 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | - + | Nx=`mtt_getsize $1 x` # States #Write some file headers #lang_header $1 switch m 'mttx' '[mttx]' > $1_switch.m #echo Creating $1_switch.m # Set states to zero |
︙ | |||
91 92 93 94 95 96 97 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | - + | ## User defined logic (from $1_logic.m) #EOF #cat $1_logic.txt >> $1_switchopen.m # Set states to zero |
︙ | |||
117 118 119 120 121 122 123 | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | - + | }' Nx=$Nx < $1_switch.txt #>> $1_switchopen.m #echo Creating $1_switcha.m # Implicit integration version #Write some file headers # lang_header $1 switcha m 'mttAA,mttx' '[mttAA]' > $1_switcha.m |
︙ |
Modified mttroot/mtt/bin/trans/sympar2global_txt2lang from [bc073c2291] to [3d88bdddde].
︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + | ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.6 1998/11/18 11:55:51 peterg ## Now uses sympar2global_txt2m for the m bit ## ## Revision 1.5 1998/07/26 11:00:18 peterg ## Put in exits-- this all needs a good clean ## ## Revision 1.4 1998/07/26 10:50:30 peterg ## Corrected bug. ## ## Revision 1.3 1998/07/26 10:48:18 peterg |
︙ | |||
62 63 64 65 66 67 68 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | - + - + | if [ "$language" = "m" ]; then sympar2global_txt2m $1 exit fi if [ "$language" = "c" ]; then strip_comments <$1_sympars.txt |\ |
Modified mttroot/mtt/bin/trans/sympar2global_txt2m from [cef2e8e876] to [e8df2e195f].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.6 1998/11/18 15:07:37 peterg ## Space after all globals ## ## Revision 1.5 1998/11/18 11:34:24 peterg ## Cleaned up to: ## work properly for no globals ## no need to repeat las global ## ## Revision 1.4 1998/07/26 10:44:08 peterg ## Now strips comment lines first |
︙ | |||
33 34 35 36 37 38 39 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + | # Initial revision # ############################################################### #Write out the variables in matlab global format strip_comments <$1_sympars.txt |\ |
︙ |
Modified mttroot/mtt/bin/trans/sympar2numpar_txt2txt from [1cce4350bc] to [6787c03295].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (c) P.J.Gawthrop 1996 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.13 2000/10/16 08:09:25 peterg ## Tidied up. ## ## Revision 1.12 1999/03/02 22:01:21 peterg ## *** empty log message *** ## ## Revision 1.11 1998/06/15 15:14:46 peterg ## Don't print if blank line ## ## Revision 1.10 1998/03/07 15:27:20 peterg |
︙ | |||
63 64 65 66 67 68 69 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | - + - + | echo "# Numerical parameter file ($1_numpar.txt)" >> $1_numpar.txt echo "# Generated by MTT at `date`" >> $1_numpar.txt cat $MTTPATH/trans/rcs_header.txt >> $1_numpar.txt #Write out the variables echo "# Parameters" >> $1_numpar.txt strip_comments <$1_sympar.txt |\ |
Modified mttroot/mtt/bin/trans/sympar2par_txt2m from [62092b15cb] to [c3e5676656].
︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - + - + - + | # Symbolic parameters parameter conversion # Used in lang_header # Copyright (C) 2000 by Peter J. Gawthrop case $2 in zero) strip_comments <$1_sympar.txt |\ |
︙ |
Modified mttroot/mtt/bin/trans/sympar2params_txt2c from [ed3554c783] to [b4d5f24a4d].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.2 1997/03/20 15:17:45 peterg ## All variables are in lower case. ## # Revision 1.1 1997/03/20 10:25:55 peterg # Initial revision # ############################################################### |
︙ | |||
42 43 44 45 46 47 48 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | - + | echo "#include \"$1_sympar.c\"" >> $1_params.c echo "$1_params()" >> $1_params.c echo '{' >> $1_params.c #Write out the variables in c format. |
Modified mttroot/mtt/bin/trans/sympar2params_txt2m from [7416ea5275] to [cb4bac324f].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 1997/04/17 11:18:34 peterg ## Write out the RCS header first! ## # Revision 1.2 1997/04/16 11:40:31 peterg # Added global variables. # # Revision 1.1 1997/04/16 11:31:41 peterg # Initial revision # ############################################################### |
︙ | |||
42 43 44 45 46 47 48 | 45 46 47 48 49 50 51 52 53 54 55 56 57 | - + | #Write out the global variables sympar2global_txt2m $1 >> $1_params.m #Write out the variables in c format. |
Modified mttroot/mtt/bin/trans/sympar_txt2c from [8ba82ee2c5] to [8c103e49d4].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 1997/05/15 07:19:56 peterg ## Put back "tolower" ## # Revision 1.2 1997/05/15 07:10:56 peterg # removed "tolower" function # # Revision 1.1 1997/05/15 07:10:09 peterg # Initial revision # # Revision 1.3 1997/03/19 16:39:12 peterg |
︙ | |||
40 41 42 43 44 45 46 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - + | echo "Symbolic parameter file ($1_sympar.c)" >> $1_sympar.c echo "Generated by MTT at `date`" >> $1_sympar.c echo '*/' >> $1_sympar.c echo >> $1_sympar.c #Write out the variables in c format. |
Modified mttroot/mtt/bin/trans/sympar_txt2declare from [cca8092d6c] to [1d77607037].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.1 2000/10/11 09:08:20 peterg ## Initial revision ## ############################################################### sys=$1 language=$2 case $language in |
︙ | |||
32 33 34 35 36 37 38 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | - + | # Start cat<<EOF $first EOF #Write out the variables strip_comments < $sys"_sympar.txt" |\ |
︙ |
Modified mttroot/mtt/bin/trans/sympar_txt2h from [7fc0d6f66f] to [d691280130].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.6 1997/05/15 07:21:44 peterg ## Put back "tolower" ## # Revision 1.5 1997/05/15 07:11:45 peterg # Removed "tolower" function # # Revision 1.4 1997/05/01 13:51:37 peterg # Replaced float by double. # # Revision 1.3 1997/05/01 13:42:43 peterg |
︙ | |||
44 45 46 47 48 49 50 | 47 48 49 50 51 52 53 54 55 56 57 58 59 | - + | echo "Symbolic parameter file ($1_sympar.h)" >> $1_sympar.h echo "Generated by MTT at `date`" >> $1_sympar.h echo '*/' >> $1_sympar.h echo >> $1_sympar.h #Write out the variables in c format. |
Modified mttroot/mtt/bin/trans/sympar_txt2m from [edc3797ff8] to [c51bec0783].
︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 | - + | # Copyright (C) 2000 by Peter J. Gawthrop echo Creating $1_sympar.m lang_header -noglobals $1 sympar m "" sympar > $1_sympar.m |
Modified mttroot/mtt/bin/trans/sympar_txt2r from [f66bff96e0] to [48a0e2e4e2].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.6 1998/02/17 17:03:54 peterg ## Fixed bug in writing out matrix declaration ## ## Revision 1.5 1998/02/16 12:14:21 peterg ## Corrected writing out of MTTVAR matrix - now does this id non-zero ## number of variables - not vv! ## ## Revision 1.4 1997/05/09 14:20:49 peterg ## Dont declare MTTVAR array when there are no variables. ## |
︙ | |||
47 48 49 50 51 52 53 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + | if [ "$lines" != "0" ]; then echo "MATRIX MTTVAR($lines,1);" >> $1_sympar.r fi echo "MTTNVAR := $lines;" >> $1_sympar.r echo >> $1_sympar.r #Write out the variables in reduce format. |
Modified mttroot/mtt/bin/trans/sympar_txt2tex from [9ce2cbef3d] to [937e1d805d].
︙ | |||
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) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.1 2000/12/27 16:04:46 peterg ## Initial revision ## ## Revision 1.2 1998/01/19 14:17:26 peterg ## Modified struc_txt2tex to make this. ## ## Revision 1.1 1998/01/19 14:16:39 peterg ## Initial revision ## # Revision 1.3 1997/12/06 19:10:41 peterg |
︙ | |||
39 40 41 42 43 44 45 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - + | rm -f mtt_error #Write some file headers echo "%% Parameter file ($1_sympar.txt)" > $1_sympar.tex echo "%% Generated by MTT at `date`" >> $1_sympar.tex # This is the main transformation using awk |
︙ |
Modified mttroot/mtt/bin/trans/tex2doc from [1616bd5235] to [378ed3e3b7].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | + + + - + | # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 2000/12/28 12:48:53 peterg ## Put under RCS ## # Revision 1.2 1996/08/30 10:19:11 peter # New path for awk script. # ## Revision 1.1 1996/08/18 20:00:20 peter ## Initial revision ## ############################################################### # Inform user echo "Creating $1_$2.doc" # This is the main transformation using awk |
Modified mttroot/mtt/cc/def_m2h.sh from [48a6557660] to [78c95b87eb].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | + + + | #! /bin/sh # $Id$ # $Log$ # Revision 1.1 2000/12/28 09:46:05 peterg # put under RCS # # Revision 1.3 2000/12/05 12:13:52 peterg # Changed function name to name() # # Revision 1.2 2000/12/04 12:04:46 peterg # Changed $() to `` for sh compatibility -- geraint # # Revision 1.1 2000/12/04 12:02:23 peterg |
︙ | |||
18 19 20 21 22 23 24 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - + - + | IN=${SYS}_def.m SYM=${SYS}_sympar.txt OUT=${SYS}_def.h get_array_size () { vec=$1 |
︙ |
Modified mttroot/mtt/cc/mtt_m2cc.sh from [235055c333] to [e7f8c97b43].
︙ | |||
52 53 54 55 56 57 58 | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | - - + + - + | esac) }; find_code () { file_in=${1:-${IN}} portion=${2:-"body"} |
︙ |
Modified mttroot/mtt/cc/sympar_txt2h.sh from [f4dafd0a84] to [f951f86658].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | + + + | #! /bin/sh # $Id$ # $Log$ # Revision 1.4 2001/08/24 21:41:04 geraint # Fixed problem with declaration when there are no numerical parameters. # # Revision 1.3 2001/03/19 02:28:53 geraint # Branch merge: merging-ode2odes-exe back to MAIN. # # Revision 1.2.2.1 2001/03/16 03:56:54 geraint # Convert variable names to lower case. # # Revision 1.2 2001/02/05 13:03:19 geraint |
︙ | |||
49 50 51 52 53 54 55 | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + | TMP_VAR_NAMES="mtt_tmp mtt_o $*" IN=${SYS}_sympar.txt OUT=${SYS}_sympar.h declare_sys_param () { |
︙ |
Modified mttroot/mtt/debian/control from [67402cd5ca] to [9e6dc56b5b].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | - | Source: mtt Section: math Priority: optional Maintainer: Geraint <geraint@users.sf.net> Build-Depends: debhelper (>> 3.0.0) Standards-Version: 3.5.2 Package: mtt Architecture: all Depends: gawk, octave, xfig Recommends: blas-dev, fftw-dev, c-compiler, g++, gnuplot, info-browser, lapack-dev, latex2html, libkpathsea-dev, libncurses5-dev, libreadline4-dev, pdf-viewer, postscript-viewer, octave-headers, octave-info, octave-sp, p2c, transfig, xterm, www-browser, wish Suggests: scigraphica |
︙ |
Modified mttroot/mtt/lib/examples/Simulation/BigHeatedRod/Run from [e9ed9bb08f] to [5d09d2ea7c].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | + + + | #! /bin/sh # Shell script for running the large HeatedRod systems to compare # four integration methods. # Usage example: Run 100 0.25 runf the 100 segment example at interval 0.25 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 1998/08/17 09:42:26 peterg ## Third argument gives the desired methods. ## ## Revision 1.2 1998/08/15 14:07:11 peterg ## Don't do ImplicitL ## ## Revision 1.1 1998/08/15 13:58:27 peterg ## Initial revision ## ############################################################### |
︙ | |||
79 80 81 82 83 84 85 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | - + - + - + | mtt -q HR$n sm m octave -q <<EOF >HR$1.tmp1 HR$1_numpar; A=HR$1_sm; Max_Eig=max(eig(-A)) STEPFACTOR=ceil( Max_Eig*$DT/2 ) EOF |
Modified mttroot/mtt/lib/reduce/reserved_words.make from [098f123485] to [58b98880d4].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | #! /bin/sh reduce_reserved_word_manual_page=${1:-"/usr/local/reduce/doc/manual/appenda.tex"} output="reserved_words.txt" cat $reduce_reserved_word_manual_page |\ tr "\n" " " |\ sed 's/\\\_/_/g' |\ sed 's/\\tt\ \([A-Za-z0-9_]*\)/\"\1\"/g' |\ tr " " "\n" |\ sed 's/\{//g' |\ sed 's/\}//g' |\ |