Overview
Comment:Changed default args to include nx+nz
Fixed bug with vector outputs.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 55e8a89afe5b68595fb2346e968cb632270271fdab04de828baa4392a238fd9d
User & Date: gawthrop@users.sourceforge.net on 1996-08-16 13:17:57.000
Other Links: branch diff | manifest | tags
Context
1996-08-16
14:26:07
Fixed multi-output bug.
Made sure that u0 is ok.
check-in: 0791ae253c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:17:57
Changed default args to include nx+nz
Fixed bug with vector outputs.
check-in: 55e8a89afe user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:10:53
Fixed bug Ny changed to Nx in redidual loop. check-in: 73ee98f275 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
11
12
13
14
15
16
17



18
19
20
21
22
23
24
25
26

27
28
29
30
31
32
33
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







+
+
+








-
+







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

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1996/08/15 16:24:55  peter
## Initial revision
##
###############################################################


echo Creating $1_daesol.m
rm -f dae2daesol_m.log

if [ "$2" = "" ]; 
then
  PARAMS='T=[0:0.1:10];x0=zeros(10,1),dx0=zeros(10,1)'
  PARAMS='T=[0:0.1:10];x0=zeros(nx+nz,1);dx0=zeros(nx+nz,1);'
  echo Using default parameter $PARAMS
else
  PARAMS=$2;
fi

PARAMS="$PARAMS ;"

57
58
59
60
61
62
63
64

65
66
67
68
69
70
71
72
73
74
75
60
61
62
63
64
65
66

67
68
69
70
71
72
73
74
75
76
77
78







-
+











  end;

x = dassl('$1_dae', x0, dx0,  T);

i=0;
for tt=T'
  i=i+1;
  y(i) = $1_daeo(x(i,:),tt);
  y(i,:) = $1_daeo(x(i,:),tt)';
end;

write_matrix([T,y], '$1_daesol');

EOF







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