Overview
Comment:Added initial support for building Simulink S-functions.
Rates do not update properly yet.
Inertial switches do not work yet.
Implicit integration not supported yet.

build with: mtt -i euler MotorGenerator sfun mexglx.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: df6597840576768a496a352e9b579d0776f39c6851fbfe291a69eafb233a3101
User & Date: geraint@users.sourceforge.net on 2002-05-10 13:24:58
Other Links: branch diff | manifest | tags
Context
2002-05-10
13:47:51
*** empty log message *** check-in: eb604154d7 user: geraint@users.sourceforge.net tags: origin/master, trunk
13:24:58
Added initial support for building Simulink S-functions.
Rates do not update properly yet.
Inertial switches do not work yet.
Implicit integration not supported yet.

build with: mtt -i euler MotorGenerator sfun mexglx. check-in: df65978405 user: geraint@users.sourceforge.net tags: origin/master, trunk

12:41:08
Substitution of pi for its numerical value moved from
useful-functions.hh to fix_c.r
check-in: 025d09bbee user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [b20c609aad] to [549e7ed92f].

13
14
15
16
17
18
19



20
21
22
23
24
25
26
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29







+
+
+







# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.341  2002/05/09 15:40:22  gawthrop
## -dr touches copied files to redo timestamp
##
## Revision 1.340  2002/05/08 22:13:47  geraint
## Removed redundant path from mtt_*.cc targets in mexglx build line.
##
## Revision 1.339  2002/05/08 21:32:26  geraint
## Tidied up $1_ode2odes_*.* targets and renamed dummies as *.stamp.
##
## Revision 1.338  2002/05/08 16:03:32  geraint
1606
1607
1608
1609
1610
1611
1612

1613
1614
1615
1616
1617
1618
1619
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623







+







  rm -f *_*_write.r *_simpar.m *_simpar.p
  rm -f *_cseo.oct *_input.oct *_simpar.oct *_smxax.oct
  rm -f *_csex.oct *_numpar.oct *_smxa.oct *_state.oct 
  rm -f *_ode.oct *_odeo.oct
  rm -f *_cseo.mexglx *_input.mexglx *_simpar.mexglx *_smxax.mexglx
  rm -f *_csex.mexglx *_numpar.mexglx *_smxa.mexglx *_state.mexglx 
  rm -f *_ode.mexglx *_odeo.mexglx
  rm -f *_sfun.mexglx
  rm -f *_cseo.cc *_input.cc *_simpar.cc *_smxax.cc
  rm -f *_csex.cc *_numpar.cc *_smxa.cc *_state.cc 
  rm -f *_ode.cc *_odeo.cc
  rm -f *_logic.m *_logic.cc *_logic.oct
  rm -f *_state.m *_state.cc *_state.oct
  rm -f *_ode2odes.* *.dat2 MTT.core
  rm -f *_modpar.txt *_modpar.r
1646
1647
1648
1649
1650
1651
1652

1653
1654
1655
1656
1657
1658
1659
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664







+







  rm -f $1_*_write.r $1_simpar.m $1_simpar.p
  rm -f $1_cseo.oct $1_input.oct $1_simpar.oct $1_smxax.oct
  rm -f $1_csex.oct $1_numpar.oct $1_smxa.oct $1_state.oct 
  rm -f $1_ode.oct $1_odeo.oct
  rm -f $1_cseo.mexglx $1_input.mexglx $1_simpar.mexglx $1_smxax.mexglx
  rm -f $1_csex.mexglx $1_numpar.mexglx $1_smxa.mexglx $1_state.mexglx 
  rm -f $1_ode.mexglx $1_odeo.mexglx
  rm -f $1_sfun.mexglx
  rm -f $1_cseo.cc $1_input.cc $1_simpar.cc $1_smxax.cc
  rm -f $1_csex.cc $1_numpar.cc $1_smxa.cc $1_state.cc 
  rm -f $1_ode.cc $1_odeo.cc
  rm -f $1_logic.m $1_logic.cc $1_logic.oct 
  rm -f $1_state.m $1_state.cc $1_state.oct
  rm -f $1_ode2odes.* $1.dat2
  rm -f $1_modpar.txt $1_modpar.r

Added mttroot/mtt/lib/rep/sfun_rep.make version [47318c59e0].







1
2
3
4
5
6
+
+
+
+
+
+
# -*-makefile-*-

REP ?= "sfun"

all:
	${MTT_REP}/sfun_rep.sh "$(OPTS)" "$(SYS)" "$(REP)" "$(LANG)"

Added mttroot/mtt/lib/rep/sfun_rep.sh version [cd36f68c23].
































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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#! /bin/sh

set -e

debug=0
if [ $debug -eq 1 ]; then
    set -x
    make_debug='--debug=a'
else
    set +x
    make_debug=''
fi

check_for_errors ()
{
    errno=0
    # check stuff
    case $errno in
	0)
	    ;; # ok
	*)
	    echo "E $errno";
	    exit $errno;
	    ;;
    esac
}

check_for_errors $*

OPTS="$1" SYS="$2" REP="$3" LANG="$4" make $make_debug -f ${MTT_REP}/sfun_rep/Makefile ${2}_${3}.${4}
exit 0


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