11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright (c) P.J.Gawthrop, 1996.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5 1996/08/18 12:01:26 peter
## Unified format of time responses.
##
## Revision 1.4 1996/08/16 13:04:46 peter
## Fixed problem with more than one output (y vector).
##
## Revision 1.3 1996/08/16 06:36:03 peter
|
>
>
>
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright (c) P.J.Gawthrop, 1996.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.6 1996/08/24 14:11:04 peter
## Global parameter passing.
##
## Revision 1.5 1996/08/18 12:01:26 peter
## Unified format of time responses.
##
## Revision 1.4 1996/08/16 13:04:46 peter
## Fixed problem with more than one output (y vector).
##
## Revision 1.3 1996/08/16 06:36:03 peter
|
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
y(i,:) = $1_odeo(x(i,:),tt)';
end;
write_matrix([T,y], '$1_odeso');
end;
EOF
err_length=$(wc -c <mtt_error)
# Test for errors and print if any
if [ $err_length != "0" ]
then
echo MTT has failed with the following errors '...'
cat mtt_error
exit 1
else
exit 0
fi
|
<
|
<
<
<
<
|
<
<
<
<
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
y(i,:) = $1_odeo(x(i,:),tt)';
end;
write_matrix([T,y], '$1_odeso');
end;
EOF
# Now invoke the standard error handling.
mtt_error mtt_error.txt
|