Skip to content

Commit e95853d

Browse files
committed
Minors
1 parent 68c3f7b commit e95853d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/paper_example04.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ nb_cities = 20 # draw a number of random cities in space
2222
for i in 1:nb_cities-1
2323
newdraw = false
2424
while newdraw == false
25-
j = round(Int, 1 + rand() * (g[:J] - 1))
25+
j = round(Int, 1 + rand() * (g0[:J] - 1))
2626
if param[:Lj][j] <= 1e-3
2727
newdraw = true
2828
param[:Lj][j] = 1
@@ -34,7 +34,7 @@ param[:hj] = param[:Hj] ./ param[:Lj]
3434
param[:hj][param[:Lj] .== 1e-3] .= 1
3535

3636
# Draw geography
37-
z = zeros(g[:J]) # altitude of each node
37+
z = zeros(g0[:J]) # altitude of each node
3838
geographies = Dict()
3939
geographies[:blank] = (z = z, obstacles = nothing)
4040

0 commit comments

Comments
 (0)