Skip to content

Commit

Permalink
Don't format long vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed May 13, 2024
1 parent 0695d65 commit f166cee
Showing 1 changed file with 7 additions and 97 deletions.
104 changes: 7 additions & 97 deletions core/test/utils_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,103 +182,13 @@ end
jac_prototype = Ribasim.get_jac_prototype(p, u)
@test jac_prototype.m == 53
@test jac_prototype.n == 53
@test jac_prototype.colptr == [
1,
3,
5,
8,
11,
13,
15,
16,
17,
18,
19,
21,
22,
24,
25,
26,
27,
28,
29,
30,
31,
32,
32,
32,
32,
32,
33,
34,
35,
36,
36,
36,
36,
36,
37,
38,
39,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
40,
]
@test jac_prototype.rowval == [
1,
2,
1,
2,
2,
3,
4,
2,
3,
4,
1,
2,
1,
2,
2,
2,
2,
2,
3,
4,
2,
3,
4,
4,
2,
2,
2,
2,
3,
1,
4,
1,
2,
3,
4,
1,
2,
3,
4,
]
#! format: off
@test jac_prototype.colptr == [1, 3, 5, 8, 11, 13, 15, 16, 17, 18, 19, 21, 22, 24, 25, 26,
27, 28, 29, 30, 31, 32, 32, 32, 32, 32, 33, 34, 35, 36, 36, 36, 36, 36, 37, 38, 39, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40]
@test jac_prototype.rowval == [1, 2, 1, 2, 2, 3, 4, 2, 3, 4, 1, 2, 1, 2, 2, 2, 2,
2, 3, 4, 2, 3, 4, 4, 2, 2, 2, 2, 3, 1, 4, 1, 2, 3, 4, 1, 2, 3, 4]
#! format: on
@test jac_prototype.nzval == ones(39)
# States do not depend on non-storage states
@test sum(jac_prototype[(length(p.basin.node_id) + 1):end, :]) == 0
Expand Down

0 comments on commit f166cee

Please sign in to comment.