We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061733d commit a3d7b04Copy full SHA for a3d7b04
test/3d_examples.jl
@@ -17,7 +17,16 @@ using Test
17
inputparams = mergeInputParams(inputparams_geometry, inputparams)
18
19
output = run_battery(inputparams);
20
-
+ Cc = map(x -> x[:Control][:Current][1], output.states)
21
+ Phi = map(x -> x[:Control][:Phi][1], output.states)
22
+ @test length(output.states) == 77
23
+ @test Cc[1] ≈ 0.00058 atol = 1e-2
24
+ for i in 3:length(Cc)
25
+ @test Cc[i] ≈ 0.008165 atol = 1e-2
26
+ end
27
+ @test Phi[1] ≈ 4.175 atol = 1e-2
28
+ @test Phi[end] ≈ 2.76 atol = 1e-2
29
+ @test Phi[30] ≈ 3.67 atol = 1e-2
30
true
31
32
end
0 commit comments