Skip to content

Conversation

@JanStreffing
Copy link
Contributor

No description provided.

The old logic (cav_nod_lev != 1) only caught level-2 cavities.
After subtracting 1 from cavity_nlvls.out values, nodes with deeper
cavity levels (e.g., 17 in file -> 16 after -1) were incorrectly
marked as non-cavity.

Changed to (cav_nod_lev > 0) which correctly identifies all cavity
nodes: value 0 means surface level (no cavity), value > 0 means
cavity present.

Tested with CORE3 mesh: correctly identifies 4,627 cavity nodes
instead of the previous 210,941 (almost all nodes).
Resolved conflicts by keeping logger from main branch.
The cavity mask fix (cav_nod_lev != 0) is equivalent to the
previous fix (cav_nod_lev > 0) for non-negative integers.
@JanStreffing
Copy link
Contributor Author

Already fixed by @FinnHeu

@JanStreffing JanStreffing deleted the feat/ascii_to_netcdf_with_cavity branch December 16, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants