Move the preallocation to the outer loop otherwise the results from the previous iteration are obliterated on the next one
Move the preallocation to the outer loop otherwise the results from the previous iteration are obliterated on the next one

pwcazenave/fvcom-toolbox,pwcazenave/fvcom-toolbox