Skip to content

Commit 8069bd9

Browse files
Update src/WaterFlow.jl
Co-authored-by: Albert de Montserrat <[email protected]>
1 parent 9324c16 commit 8069bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WaterFlow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function waterflows(Topo::GeoData, flowdir_fn= WhereTheWaterFlows.d8dir_feature;
8484
nin = zeros(Int8, ni)
8585
c = zeros(Int64, ni)
8686

87-
area[:,:,1], slen[:,:,1], dir[:,:,1], nout[:,:,1], nin[:,:,1], sinks, pits, c[:,:,1], bnds = waterflows(dem, cellarea, flowdir_fn;
87+
@views area[:,:,1], slen[:,:,1], dir[:,:,1], nout[:,:,1], nin[:,:,1], sinks, pits, c[:,:,1], bnds = waterflows(dem, cellarea, flowdir_fn;
8888
feedback_fn=feedback_fn, drain_pits=drain_pits, bnd_as_sink=bnd_as_sink)
8989

9090
catchment_large = prune_catchments(c, minsize; val=0)

0 commit comments

Comments
 (0)