erosiv / soillib

Python3 / C++23 Geomorphology Simulation Library and Toolbox
GNU Lesser General Public License v3.0
52 stars 2 forks source link

Pool fix #14

Closed weigert closed 1 year ago

weigert commented 1 year ago

This PR merges the basic_wind fix as well as a restructuring of the buf, pool and slice util classes so that buf is owning, pool is fixed-size single element retrieval and slice is a 2D buf view. The ownership of buf removes the necessity of the segmented pool, and maps can be simply memory owning. The reason for doing it the other way in the first place was to cover an edge case, which I haven't gotten around to implementing. Since this is more clean for all other cases, I will cross that bridge when I get there.