Differences From Artifact [2efe87b571]:
- Executable file
mttroot/mtt/bin/trans/make_ode2odes
— part of check-in
[773822c9b4]
at
2003-04-17 20:57:29
on branch origin/master
— Added -sort option to allow direct generation of ode2odes.m using sese.m
instead of ode/csex."mtt -sort rc odeso view" works without Reduce installed!!! (user: geraint@users.sourceforge.net, size: 36050) [annotate] [blame] [check-ins using] [more...]
To Artifact [f5ac5ee2db]:
- Executable file
mttroot/mtt/bin/trans/make_ode2odes
— part of check-in
[b473da7248]
at
2003-06-25 12:46:06
on branch origin/master
— Input only changed one per print interval
No effect if stepfactor=1
Fixes bug when _input.m is compiled using -stdin option
and stepfactor>1 (user: gawthrop@users.sourceforge.net, size: 36302) [annotate] [blame] [check-ins using] [more...]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.83 2002/08/07 14:27:14 geraint ## Changes to make "-i dassl" work again. ## ## Revision 1.82 2002/07/24 14:00:12 geraint ## Corrected arguments passed to mtt_write when dumping data (sigint). ## ## Revision 1.81 2002/07/11 13:00:23 geraint | > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.84 2003/04/17 20:57:29 geraint ## Added -sort option to allow direct generation of ode2odes.m using sese.m ## instead of ode/csex. ## ## "mtt -sort rc odeso view" works without Reduce installed!!! ## ## Revision 1.83 2002/08/07 14:27:14 geraint ## Changes to make "-i dassl" work again. ## ## Revision 1.82 2002/07/24 14:00:12 geraint ## Corrected arguments passed to mtt_write when dumping data (sigint). ## ## Revision 1.81 2002/07/11 13:00:23 geraint |
︙ | ︙ | |||
398 399 400 401 402 403 404 | ## [u] = zero_input($Nu); # Zero the input for MTTi=1:$Ny y(MTTi) = 0; endfor; mttj = 0; for it = 1:ilast #Integration loop | > > > > | > | | < > < | | 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | ## [u] = zero_input($Nu); # Zero the input for MTTi=1:$Ny y(MTTi) = 0; endfor; mttj = 0; for it = 1:ilast #Integration loop EOF cat <<EOF >> $filename if mttj==0 [u] = ${sys}_input(x,y,t,par); # Input EOF if [ "$method" = "sorted_euler" ]; then cat <<EOF >> $filename [dx,y] = ${sys}_sese(x,u,t,par); # Output EOF else cat <<EOF >> $filename [y] = ${sys}_$odeo(x,u,t,par); # Output EOF fi cat <<EOF >> $filename mtt_write(t,x,y,$Nx,$Ny,simpar.first); # Write it out endif EOF if [ "$method" = "rk4" ]; then cat << EOF >> $filename [k1] = ddt * ${sys}_${ode}(x,u,t,par); [k2] = ddt * ${sys}_${ode}(x+k1/2,u,t+ddt/2,par); |
︙ | ︙ |