Skip to content

[Snappy] Proximity spacing additional validator#1949

Merged
piotrkluba merged 8 commits into
release-candidate/25.8from
piotr/extend-proximity-validator
Apr 8, 2026
Merged

[Snappy] Proximity spacing additional validator#1949
piotrkluba merged 8 commits into
release-candidate/25.8from
piotr/extend-proximity-validator

Conversation

@piotrkluba
Copy link
Copy Markdown
Contributor

@piotrkluba piotrkluba commented Apr 1, 2026

Note

Medium Risk
Tightens validation by turning an auto-correcting warning into hard ValueErrors, which can break existing configs that previously passed and were silently clamped. Changes are localized to snappy meshing parameter validation with low runtime risk but potential user-facing validation failures.

Overview
Enforces stricter proximity_spacing validation for Snappy refinements. SnappyEntityRefinement now raises a ValueError when proximity_spacing > min_spacing instead of logging a warning and mutating the value.

Adds default-aware validation for BodyRefinement. When min_spacing is omitted, SurfaceMeshingParams now rejects BodyRefinement.proximity_spacing values that exceed defaults.min_spacing, and new tests cover both failing and passing cases for these scenarios.

Written by Cursor Bugbot for commit a4a4adf. This will update automatically on new commits. Configure here.

Comment thread flow360/component/simulation/meshing_param/snappy/snappy_params.py Outdated
Comment thread flow360/component/simulation/meshing_param/snappy/snappy_params.py Outdated
Comment thread flow360/component/simulation/meshing_param/snappy/snappy_params.py Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread tests/simulation/params/meshing_validation/test_refinements_validation.py Outdated
@piotrkluba piotrkluba merged commit c5d8457 into release-candidate/25.8 Apr 8, 2026
20 checks passed
@piotrkluba piotrkluba deleted the piotr/extend-proximity-validator branch April 8, 2026 06:43
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