1 |
REQUIRE "ivpsystem.a4l"; |
REQUIRE "ivpsystem.a4l"; |
2 |
REQUIRE "atoms.a4l"; |
REQUIRE "atoms.a4l"; |
3 |
(* |
(* |
4 |
Sample problem 'HIRES' from the parallel-IVP-algorithm group of CWI: |
Sample problem 'HIRES' from the Test Set for IVP Solvers |
5 |
|
|
6 |
'High Irradiance RESponse', from plant physiology, describing how light is |
'High Irradiance RESponse', from plant physiology, describing how light is |
7 |
involved in morphogenesis. |
involved in morphogenesis. |
8 |
|
|
54 |
t.ode_type := -1; |
t.ode_type := -1; |
55 |
END ode_init; |
END ode_init; |
56 |
METHOD self_test; |
METHOD self_test; |
57 |
ASSERT abs(y[1] - 0.7371312573325668e-3) < 1e-8; |
ASSERT abs(y[1] - 0.7371312573325668e-3) < 1e-15; |
58 |
ASSERT abs(y[2] - 0.1442485726316185e-3) < 1e-8; |
ASSERT abs(y[2] - 0.1442485726316185e-3) < 1e-15; |
59 |
ASSERT abs(y[3] - 0.5888729740967575e-4) < 1e-8; |
ASSERT abs(y[3] - 0.5888729740967575e-4) < 1e-15; |
60 |
ASSERT abs(y[4] - 0.1175651343283149e-2) < 1e-8; |
ASSERT abs(y[4] - 0.1175651343283149e-2) < 1e-15; |
61 |
ASSERT abs(y[5] - 0.2386356198831331e-2) < 1e-8; |
ASSERT abs(y[5] - 0.2386356198831331e-2) < 1e-13; |
62 |
ASSERT abs(y[6] - 0.6238968252742796e-2) < 1e-8; |
ASSERT abs(y[6] - 0.6238968252742796e-2) < 1e-13; |
63 |
ASSERT abs(y[7] - 0.2849998395185769e-2) < 1e-8; |
ASSERT abs(y[7] - 0.2849998395185769e-2) < 1e-14; |
64 |
ASSERT abs(y[8] - 0.2850001604814231e-2) < 1e-8; |
ASSERT abs(y[8] - 0.2850001604814231e-2) < 1e-14; |
65 |
END self_test; |
END self_test; |
66 |
METHOD specify; |
METHOD specify; |
67 |
(* nothing needs to be fixed *) |
(* nothing needs to be fixed *) |