DHI/mikeio

Optimize _findTopLayerElements for sigma only

ecomodeller opened this issue · 1 comments

The current implementation works for sigma and sigma-z

def _findTopLayerElements(elementTable):

but it must be possible to construct this list much faster for a pure sigma file, than looping over all elements.

I guess so - if you know the 2d geometry and the number of layers - it should just be a matter of stride