cburstedde / libsc

The "sc" auxiliary library
www.p4est.org/
GNU Lesser General Public License v2.1
35 stars 34 forks source link

Feature hash array #160

Closed cburstedde closed 7 months ago

cburstedde commented 8 months ago

Complete hash array internal state update

Proposed changes

We had begun to hide hash array internal state in 8e3ff6fced3353cd0e9e7d6f767ad2010235069a. This breaks p4est since it accesses some internal data. p4est will be fixed after merging this PR.

In this PR we add sc_hash_array_foreach to avoid accessing obscure internal variables. Me add some minor tweaks to sc_hash and sc_hash_array.

hannesbrandt commented 7 months ago

Looks good to me!