diff --git a/src/WaterFlow.jl b/src/WaterFlow.jl index 2cd0a379..ae95be2a 100644 --- a/src/WaterFlow.jl +++ b/src/WaterFlow.jl @@ -84,7 +84,7 @@ function waterflows(Topo::GeoData, flowdir_fn= WhereTheWaterFlows.d8dir_feature; nin = zeros(Int8, ni) c = zeros(Int64, ni) - area[:,:,1], slen[:,:,1], dir[:,:,1], nout[:,:,1], nin[:,:,1], sinks, pits, c[:,:,1], bnds = waterflows(dem, cellarea, flowdir_fn; + @views area[:,:,1], slen[:,:,1], dir[:,:,1], nout[:,:,1], nin[:,:,1], sinks, pits, c[:,:,1], bnds = waterflows(dem, cellarea, flowdir_fn; feedback_fn=feedback_fn, drain_pits=drain_pits, bnd_as_sink=bnd_as_sink) catchment_large = prune_catchments(c, minsize; val=0)