@@ -54,12 +54,12 @@ phi = rho_w*g*bed + flotation_fraction * g * rho_i * (surface - bed)
54
54
55
55
# To track the amount of melted ice, we'll use three cellareas as inputs,
56
56
# which in turns leads to three outputs in `area`:
57
- # - water discharge including extra melt
57
+ # - water discharge due to source and extra melt
58
58
# - water discharge due to extra melt only
59
59
# - melt rate in m/s at each cell
60
60
cellarea = (fill! (similar (surface), 0.1 / day* dx* dx), # summer conditions: 10cm melt per day over the whole glacier
61
- fill! (similar (surface), 0.0 ),
62
- fill! (similar (surface), 0.0 ))
61
+ fill! (similar (surface), 0.0 ), # no source here
62
+ fill! (similar (surface), 0.0 )) # no source here
63
63
64
64
const phi_ = phi # make const for use in below function
65
65
"""
@@ -99,12 +99,12 @@ area, slen, dir, nout, nin, pits, c, bnds = WWF.waterflows(phi, drain_pits=true
99
99
feedback_fn= melting)
100
100
101
101
# Plot it
102
- plotyes && WWF. plotit (x, y, phi)
103
- plotyes && WWF. plotarea (x, y, area[1 ], pits)
104
- plotyes && WWF. plotarea (x, y, area[2 ], pits)
102
+ plotyes && WWF. plt . plotit (x, y, phi)
103
+ plotyes && WWF. plt . plotarea (x, y, area[1 ], pits)
104
+ plotyes && WWF. plt . plotarea (x, y, area[2 ], pits)
105
105
@show extrema (area[3 ])
106
106
107
- plotyes && WWF. heatmap (x, y, c)
107
+ plotyes && WWF. plt . heatmap (x, y, c)
108
108
109
109
phi_filled = WWF. fill_dem (phi, pits, dir) # , small=1e-6)
110
- plotyes && WWF. heatmap (x, y, phi_filled .- phi)
110
+ plotyes && WWF. plt . heatmap (x, y, phi_filled .- phi)
0 commit comments