Overview
Comment:Files marked by update as out of sync
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 615e55d26ddd506184ab17e8da2a761b36a3f66621e093ae5c48510ebe5c261c
User & Date: gawthrop@users.sourceforge.net on 2002-05-07 10:13:48
Other Links: branch diff | manifest | tags
Context
2002-05-07
12:04:49
Upgraded to return Nx3 matrix of indices check-in: e0b1b92895 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:13:48
Files marked by update as out of sync check-in: 615e55d26d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-05-02
20:12:45
Added -Wl,--rpath to MTT_CXXLIBS. Sets the runtime linker path so that the
sys-admin does not have to ldconfig the octave directory for -cc to work.
check-in: fdf020c850 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mttrc.csh from [689359fe62] to [585da1cd36].

1
2

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19











20
21
22
23
24
25
26
1

2
3
4
5
6
7
8
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

-
+

















+
+
+
+
+
+
+
+
+
+
+







#!/bin/csh
## Automatically generated from bashrc on Wed May  9 09:02:08 BST 2001 - DO NOT EDIT
## Automatically generated from bashrc on Wed Apr 24 10:24:58 BST 2002 - DO NOT EDIT
#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: mttrc - sets up paths etc for mtt
# Usage: mttrc 

# Copyright (c) P.J.Gawthrop 1996,1977.


###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.25  2002/04/02 09:16:39  geraint
## Tidied up library search paths, now assumes that system libraries are set up correctly.
## For Debian, this means installing the following: blas-dev, fftw-dev, lapack-dev, libncurses5-dev, libkpathsea-dev, libreadline-dev
## It may also be necessary to run /sbin/ldconfig on the relevant directories (especially Octave's).
##
## Revision 1.24  2001/10/15 14:28:35  gawthrop
## Now has . at start of components library path $MTT_COMPONENTS
##
## Revision 1.23  2001/07/24 22:32:49  gawthrop
## Use gv, not ghostview
##
## Revision 1.22  2001/04/12 03:08:00  geraint
## Improved sh->csh conversion, reduces environment namespace pollution.
##
## Revision 1.21  2001/04/10 13:56:13  gawthrop
## Uses standard mkoctfile
##
## Revision 1.20  2001/04/10 13:08:19  gawthrop
110
111
112
113
114
115
116
117

118
119
120
121
122
123
124
121
122
123
124
125
126
127

128
129
130
131
132
133
134
135







-
+







  
  # Setup the paths
  setenv MTTPATH $MTT_BASE/bin
  setenv MTT_LIB $MTT_BASE/lib
  setenv MTT_DOC $MTT_BASE/doc
  setenv MTT_CC $MTT_BASE/cc
  
  setenv MTT_COMPONENTS $MTT_LIB/comp
  setenv MTT_COMPONENTS .:$MTT_LIB/comp
  setenv MTT_CRS $MTT_LIB/cr
  setenv MTT_EXAMPLES $MTT_LIB/examples
  setenv MTT_REP $MTT_LIB/rep
  
  setenv PATH $PATH\:$MTTPATH\:$MTTPATH/trans\:$MTT_CC
  
  #Setup octave
142
143
144
145
146
147
148
149

150
151
152
153
154
155
156
153
154
155
156
157
158
159

160
161
162
163
164
165
166
167







-
+







  	-startgridmode 2 \
  	-pheight 21 \
  	-pwidth 30 \
  	-library_dir $MTT_LIB/xfig/\
  	"
  
  # Setup ps viewer
  setenv PSVIEW 'ghostview'
  setenv PSVIEW 'gv'
  
  # Setup pdf viewer
  setenv PDFVIEW 'acroread'
  
  # Setup html viewer
  setenv HTMLVIEW 'netscape'
  
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
206
207
208

209
210
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
206
207
208

209
210
211







-


-
-
-
-
-
-



-
+



-
-
+
+
-
-
-
+
-











-
+


    setenv MKOCTFILE mkoctfile

  # ode2odes.exe stuff

    # local system

set PLAT="i686-pc-linux-gnu"
#    PREFIX="/usr/local"
set PREFIX="/usr"
set GCCVERS="2.95.2"
set SRCOCTAVE="/cvs/octave"

#    PLAT="mips-sgi-irix6.5"
#    PREFIX="/usr/people/bevangp/GNU"
#    GCCVERS="2.95.2"
#    SRCOCTAVE="${PREFIX}/../build/octave-2.1.33"

    # include paths

set IOCTAVE="-I${PREFIX}/include/octave"
set IOCTAVE="-I${PREFIX}/include/octave/ -I${PREFIX}/include/octave/octave"

    # library paths

#    LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp"
set LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp"
set OCTAVEVERS=`octave --version | awk '{ print $4 }'`
set LOCTAVE="-L${PREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp"
set LKPATHSEA="-L${SRCOCTAVE}/kpathsea -lkpathsea"
set LREADLINE=" -L${SRCOCTAVE}/readline -lreadline"
set LSYSTEM="-ldl -lm -lncurses"
set LSYSTEM="-ldl -lm -lncurses -lkpathsea -lreadline -lblas -llapack -lfftw -lg2c"
set LF2C="-L${PREFIX}/lib/gcc-lib/${PLAT}/${GCCVERS} -lg2c"

    # compiler options

set DEBUG="-g"
set OPTIM="-O3"
set FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates"

    # exported variables

    setenv MTT_CXX "g++"
    setenv MTT_CXXFLAGS "${DEBUG} ${OPTIM} ${FLAGS}"
    setenv MTT_CXXLIBS "${LOCTAVE} ${LKPATHSEA} ${LREADLINE} ${LF2C} ${LSYSTEM}"
    setenv MTT_CXXLIBS "${LOCTAVE} ${LSYSTEM}"
    setenv MTT_CXXINCS "-I. ${IOCTAVE}"
    setenv MTT_LDFLAGS " "

Modified mttroot/mtt/bin/trans/cse2smx_lang from [840ce4dc3c] to [cb75626e58].

1
2
3
4
5
6
7

8
9
10
11
12
13
14
1
2
3
4
5
6

7
8
9
10
11
12
13
14






-
+







#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: cse2smx_r
# Bourne shell script: cse2smx_lang
# Constrained-state equation to state matrices with x vector
# Used for implicit integration
# Copyright (C) 2000 by Peter J. Gawthrop
## Modified from eailier version


# Args

Modified mttroot/mtt/bin/trans/octave_ode2odes from [6a41dad2b5] to [c8132b66e7].

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
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
44
45







+
+
+

















-
+









# Copyright (c) P.J.Gawthrop 1999

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.4  2001/03/30 15:13:58  gawthrop
## Rationalised simulation modes to each return mtt_data
##
## Revision 1.3  2000/05/19 17:47:56  peterg
## Agument to state
##
## Revision 1.2  2000/05/11 13:43:14  peterg
## No change
##
## Revision 1.1  1999/03/15 23:27:16  peterg
## Initial revision
##
###############################################################


echo Creating $1_odes.dat2
$MATRIX  <<EOF >octave_ode2odes.log 2>mtt_error.txt
  ## Set up the simulation parameters
  par = $1_numpar; 
  x_0  =  $1_state(par);
  simpar = $1_simpar;
  simpar = $1_simpar
  mtt_data = $1_ode2odes(x_0,par,simpar); 
  if is_complex(mtt_data)
    mtt_error("octave_ode2odes: Simulated data is complex - something is wrong!");
    mtt_data = real(mtt_data);
  endif;
  save -ascii $1_odes.dat2 mtt_data
EOF

mtt_error mtt_error.txt

Modified mttroot/mtt/bin/xmtt from [3cdf36096b] to [026c569d97].

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
44
45
46
47
48
49
50
51



52
53
54
55
















56
57

58
59
60
61

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
44
45
46


47
48
49
50
51
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
88
89

90
91
92
93

94







+
+
+














+
+
+
+
+
+
+
+



+
-
-
+
+
+
+

+
-
-
-
-
-
+
+
+
+
+
+
+






-
-
-
+
+
+




+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
+



-
+
# Copyright (c) P.J.Gawthrop, 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5  2000/09/14 07:50:08  peterg
## *** empty log message ***
##
## Revision 1.4  1999/10/19 00:34:10  peterg
## *** empty log message ***
##
## Revision 1.3  1999/08/18 06:17:55  peterg
## Modular form
##
## Revision 1.2  1999/03/09 00:03:55  peterg
## Major revisions for release 3.5
##
## Revision 1.1  1998/10/20 08:15:17  peterg
## Initial revision
##
###############################################################

#Basic paths
dotfile="$HOME/.mtt"
xdotfile="${dotfile}/xmtt"

repfile="${xdotfile}/reps"
exfile="${xdotfile}/examples"
menufile=".xmtt_menu"

#Look for a command line argument
while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in
	--help|-h ) echo "usage:"
	--help )    echo xmtt
	            echo xmtt -update
                    echo "  xmtt"
	            echo "  xmtt --update"
	            echo "  xmtt --example example_name"
	            echo "  xmtt --help"
		    exit;;

	-update )    echo Creating representation list for mtt;
		     mtt2reps_txt> $MTTPATH/REPS;
		     echo Creating examples list for mtt;
		     mtt -q help examples> $MTTPATH/EXAMPLES;;
        -example )    examples='examples';; 
	--update|-u )    echo Creating representation list for mtt;
		         mtt2reps_txt> ${repfile};
		         echo Creating examples list for mtt;
		         mtt -q help examples> ${exfile};
                         exit;;

        --example|-e )   shift; example=$1;; 
	*)
		echo "$1 is an invalid argument - ignoring" ;;
  esac
  shift
done

if [ -n "$examples" ]; then
    mtt -q  copy $1; 
    cd $1; 
if [ -n "${example}" ]; then
    mtt -q  copy ${example}; 
    cd ${example}; 
    xmtt
    exit
fi

## Make sure files exist
if [ -e "${xdotfile}" ]; then
    echo ${xdotfile} exists >/dev/null
else 
    echo Creating ${xdotfile}
    mkdir --parents ${xdotfile}
fi

if [ -e "${repfile}" ]; then
    echo ${repfile} exists >/dev/null
else 
    echo Creating ${repfile} and ${exfile}
    xmtt --update
    echo done.
fi

## Create the menu
mtt_make_menu > .xmtt_menu
mtt_make_menu > ${menufile}

## Use tk shell (wish)
name=`basename $PWD`
wish .xmtt_menu  -name $name
wish ${menufile} -name $name


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