9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Copyright (c) P.J.Gawthrop 1999
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5 2002/05/07 10:13:48 gawthrop
## Files marked by update as out of sync
##
## 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
|
>
>
>
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Copyright (c) P.J.Gawthrop 1999
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.6 2005/04/26 22:52:26 geraint
## The Octave load/save -ascii option is deprecated in favour of -text
##
## Revision 1.5 2002/05/07 10:13:48 gawthrop
## Files marked by update as out of sync
##
## 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
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
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
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 -text $1_odes.dat2 mtt_data
EOF
mtt_error mtt_error.txt
|
|
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
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
mtt_data = $1_ode2odes(x_0,par,simpar);
if iscomplex(mtt_data)
mtt_error("octave_ode2odes: Simulated data is complex - something is wrong!");
mtt_data = real(mtt_data);
endif;
save -text $1_odes.dat2 mtt_data
EOF
mtt_error mtt_error.txt
|