Skip to content

fix: add missing max_iter constraint for HeatConduction2D and HeatConduction3D#248

Open
MiladHB wants to merge 1 commit intomainfrom
add-max-iter-constraints-heat2d-heat3d
Open

fix: add missing max_iter constraint for HeatConduction2D and HeatConduction3D#248
MiladHB wants to merge 1 commit intomainfrom
add-max-iter-constraints-heat2d-heat3d

Conversation

@MiladHB
Copy link
Copy Markdown
Contributor

@MiladHB MiladHB commented Apr 15, 2026

This PR adds a minimal THEORY constraint for max_iter in both HeatConduction2D and HeatConduction3D.

Currently, max_iter is unconstrained, unlike other configuration parameters such as volume, length, and resolution. This change adds bounded(lower=1).category(THEORY) so invalid values such as zero or negative iteration counts are rejected at the configuration level.

@MiladHB MiladHB requested a review from g-braeunlich April 15, 2026 11:00
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