Skip to content

Commit ed2b3c5

Browse files
committed
another fix
1 parent c6c28b2 commit ed2b3c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WaterFlow.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export waterflows
1111
Computes the spacing with central differences
1212
"""
1313
function spacing(lon,lat)
14-
dlon = zero(size(lon.val)[1:2])
15-
dlat = zero(size(lat.val)[1:2])
14+
dlon = zeros(size(lon.val)[1:2])
15+
dlat = zeros(size(lat.val)[1:2])
1616
@views dlon[2:end-1,:] = (lon.val[3:end,:,1] - lon.val[1:end-2,:,1])/2
1717
dlon[1,:] = dlon[2,:]
1818
dlon[end,:] = dlon[end-1,:]

0 commit comments

Comments
 (0)