Skip to content

Commit 121f2c2

Browse files
committed
Auto stash before merge of "lattice_reaction_system_may_2023" and "origin/lattice_reaction_system_may_2023"
1 parent e058f47 commit 121f2c2

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

test/spatial_reaction_systems/lattice_reaction_systems.jl

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ let
1515
tr = @transport_reaction d X
1616
lrs = LatticeReactionSystem(rs, [tr], grid)
1717

18-
1918
@unpack X, p = rs
2019
d = edge_parameters(lrs)[1]
2120
@test issetequal(species(lrs), [X])
@@ -47,12 +46,6 @@ let
4746
tr_2 = @transport_reaction dY Y
4847
lrs = LatticeReactionSystem(rs, [tr_1, tr_2], grid)
4948

50-
@test ModelingToolkit.getname.(species(lrs)) == [:X, :Y]
51-
@test ModelingToolkit.getname.(spatial_species(lrs)) == [:X, :Y]
52-
@test ModelingToolkit.getname.(parameters(lrs)) == [:pX, :pY, :dX, :dY]
53-
@test ModelingToolkit.getname.(vertex_parameters(lrs)) == [:pX, :pY, :dY]
54-
@test ModelingToolkit.getname.(edge_parameters(lrs)) == [:dX]
55-
5649
@unpack X, Y, pX, pY, dX, dY = rs
5750
@test issetequal(species(lrs), [X, Y])
5851
@test issetequal(spatial_species(lrs), [X, Y])
@@ -71,12 +64,6 @@ let
7164
tr_1 = @transport_reaction dX X
7265
lrs = LatticeReactionSystem(rs, [tr_1], grid)
7366

74-
@test ModelingToolkit.getname.(species(lrs)) == [:X, :Y]
75-
@test ModelingToolkit.getname.(spatial_species(lrs)) == [:X]
76-
@test ModelingToolkit.getname.(parameters(lrs)) == [:dX, :p, :pX, :pY]
77-
@test ModelingToolkit.getname.(vertex_parameters(lrs)) == [:dX, :p, :pX, :pY]
78-
@test ModelingToolkit.getname.(edge_parameters(lrs)) == []
79-
8067
@unpack dX, p, X, Y, pX, pY = rs
8168
@test issetequal(species(lrs), [X, Y])
8269
@test issetequal(spatial_species(lrs), [X])
@@ -106,7 +93,6 @@ let
10693
tr_5 = TransportReaction(dW, W)
10794
lrs = LatticeReactionSystem(rs, [tr_1, tr_2, tr_3, tr_4, tr_5], grid)
10895

109-
11096
@unpack pX, pY, pZ, pV, dX, dY, X, Y, Z, V = rs
11197
dZ, dV, dW = edge_parameters(lrs)[2:end]
11298
@test issetequal(species(lrs), [W, X, Y, Z, V])
@@ -158,10 +144,10 @@ let
158144
tr_2 = TransportReaction(dY1*dY2, Y)
159145
# @test isequal(species(tr_1), [X])
160146
# @test isequal(species(tr_1), [X])
161-
@test isequal(spatial_species(tr_2), [Y])
162-
@test isequal(spatial_species(tr_2), [Y])
163-
@test isequal(parameters(tr_1), [dX])
164-
@test isequal(parameters(tr_2), [dY1, dY2])
147+
@test issetequal(spatial_species(tr_2), [Y])
148+
@test issetequal(spatial_species(tr_2), [Y])
149+
@test issetequal(parameters(tr_1), [dX])
150+
@test issetequal(parameters(tr_2), [dY1, dY2])
165151
end
166152

167153
### Tests Spatial Reactions Generation ###

0 commit comments

Comments
 (0)