Overview
Comment:Fixed bug to do with multiple outputs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: aa312240eaa2f93d7a4a0551313b4b35c5e1f6b7a0175735cbaebf4fc2aba760
User & Date: gawthrop@users.sourceforge.net on 2001-04-11 15:34:56
Other Links: branch diff | manifest | tags
Context
2001-04-11
15:41:45
New identification example - friction components only check-in: 3c4ab88a3c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:34:56
Fixed bug to do with multiple outputs check-in: aa312240ea user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:44:26
Fixed cc and c problems to do with pow(x,y) and integers
mtt/lib/reduce/fix_c.r is included in rdae2dae and cse2smx_lang for
-c, -cc and -oct options
check-in: 9612ed3ef0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/make_ssim from [3a0f893d5a] to [dcfc761ddf].

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

  [nx2,ny2] = ${sys}_def;
  ny = ny2/2;
  y_par = [];
  MTT_input = u;
  [MTT_input_last,m] = size(u);







  for i=index
    MTT_input_index = 0;
    p = par;           # Reset parameters
    p(i) = 1;          # Set sensitivity index to 1
    [mtt_data] = ${sys}_ode2odes(x0,p,simpar);
    if (i==index(1))
      y = mtt_data(:,2:1+ny);
    endif
    y_par = [y_par, mtt_data(:,2+ny:1+2*ny)];
  endfor
endfunction


EOF

}

case ${lang} in
    m)
	make_m
	;;
    *)
	echo Language ${lang} not supported - sorry
esac







>
>
>
>
>
>
|
|
|
|
|
|
|
|
|
|
|

>











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

  [nx2,ny2] = ${sys}_def;
  ny = ny2/2;
  y_par = [];
  MTT_input = u;
  [MTT_input_last,m] = size(u);

  if nargin<5			# No index given
    MTT_input_index = 0;
    [mtt_data] = ${sys}_ode2odes(x0,par,simpar);
    y = mtt_data(:,2:2:1+2*ny);
    ypar = [];
  else				# Compute sensitivities as well
    for i=index
      MTT_input_index = 0;
      p = par;           # Reset parameters
      p(i) = 1;          # Set sensitivity index to 1
      [mtt_data] = ${sys}_ode2odes(x0,p,simpar);
      if (i==index(1))
	y = mtt_data(:,2:2:1+2*ny);
      endif
      y_par = [y_par, mtt_data(:,3:2:2+2*ny)];
    endfor
  endif

endfunction
EOF

}

case ${lang} in
    m)
	make_m
	;;
    *)
	echo Language ${lang} not supported - sorry
esac


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