Skip to content

Commit 8280935

Browse files
don't double define const N
1 parent 5091216 commit 8280935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/modelingtoolkitize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using OrdinaryDiffEq, ModelingToolkit, Test
22
using GalacticOptim, Optim
33

4-
const N = 32
4+
N = 32
55
const xyd_brusselator = range(0,stop=1,length=N)
66
brusselator_f(x, y, t) = (((x-0.3)^2 + (y-0.6)^2) <= 0.1^2) * (t >= 1.1) * 5.
77
limit(a, N) = ModelingToolkit.ifelse(a == N+1, 1, ModelingToolkit.ifelse(a == 0, N, a))
@@ -74,7 +74,7 @@ i₀ = 0.075 # fraction of initial infected people in every age class
7474
regional_all_contact_matrix = [3.45536 0.485314 0.506389 0.123002 ; 0.597721 2.11738 0.911374 0.323385 ; 0.906231 1.35041 1.60756 0.67411 ; 0.237902 0.432631 0.726488 0.979258] # 4x4 contact matrix
7575

7676
## regional population stratified by age
77-
N= [723208 , 874150, 1330993, 1411928] # array of 4 elements, each of which representing the absolute amount of population in the corresponding age class.
77+
N = [723208 , 874150, 1330993, 1411928] # array of 4 elements, each of which representing the absolute amount of population in the corresponding age class.
7878

7979

8080
# Initial conditions

0 commit comments

Comments
 (0)