@@ -5,42 +5,51 @@ examples_path = joinpath(dirname(@__FILE__), "..", "examples")
5
5
6
6
# run cvode example
7
7
println (" == start cvode Roberts example (simplified)" )
8
+ let
8
9
include (joinpath (examples_path, " cvode_Roberts_simplified.jl" ))
9
-
10
10
println (" result at t=$(t[end ]) :" )
11
11
println (res[end ,:], " \n " )
12
+ end
12
13
13
14
println (" == start cvode Roberts example" )
15
+ let
14
16
include (joinpath (examples_path, " cvode_Roberts_dns.jl" ))
17
+ end
15
18
16
19
# run ida examples
17
20
println (" == start ida_Roberts example (simplified)" )
21
+ let
18
22
include (joinpath (examples_path, " ida_Roberts_simplified.jl" ))
23
+ end
19
24
20
25
println (" == start ida_Roberts example" )
26
+ let
21
27
include (joinpath (examples_path, " ida_Roberts_dns.jl" ))
22
-
23
28
println (" result at t=$(t[end ]) :" )
24
29
println (yout[end ,:], " \n " )
30
+ end
25
31
26
32
println (" == start ida_Heat2D example" )
33
+ let
27
34
include (joinpath (examples_path, " ida_Heat2D.jl" ))
28
-
29
35
println (" result at t=$(t[end ]) :" )
30
36
println (yout[end ,:], " \n " )
37
+ end
31
38
32
39
# run kinsol example
33
40
println (" == start kinsol example (simplified)" )
41
+ let
34
42
include (joinpath (examples_path, " kinsol_mkin_simplified.jl" ))
35
-
36
43
println (" solution:" )
37
44
println (res)
38
45
residual = ones (2 )
39
46
sysfn (res, residual)
40
47
println (" residual:" )
41
48
println (residual, " \n " )
49
+ end
42
50
43
51
println (" == start kinsol example" )
52
+ let
44
53
include (joinpath (examples_path, " kinsol_mkinTest.jl" ))
45
-
46
54
@test abs (minimum (residual)) < 1e-5
55
+ end
0 commit comments