From aee49c0653f1b6239e566cb3c93a13a7446e9af9 Mon Sep 17 00:00:00 2001 From: MiladHB Date: Wed, 15 Apr 2026 12:49:59 +0200 Subject: [PATCH] fix: add missing max_iter constraint for HeatConduction2D and HeatConduction3D --- engibench/problems/heatconduction2d/v0.py | 2 +- engibench/problems/heatconduction3d/v0.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engibench/problems/heatconduction2d/v0.py b/engibench/problems/heatconduction2d/v0.py index c1902042..b7948c47 100644 --- a/engibench/problems/heatconduction2d/v0.py +++ b/engibench/problems/heatconduction2d/v0.py @@ -72,7 +72,7 @@ class Config(Conditions): int, bounded(lower=1).category(THEORY), bounded(lower=10, upper=1000).warning().category(IMPL) ] = 101 """Resolution of the design space for the initialization""" - max_iter: int = 100 + max_iter: Annotated[int, bounded(lower=1).category(THEORY)] = 100 """Maximum number of iterations for the solver in `optimize()`.""" config: Config diff --git a/engibench/problems/heatconduction3d/v0.py b/engibench/problems/heatconduction3d/v0.py index defc26fc..ac8f7379 100644 --- a/engibench/problems/heatconduction3d/v0.py +++ b/engibench/problems/heatconduction3d/v0.py @@ -68,7 +68,7 @@ class Config(Conditions): int, bounded(lower=1).category(THEORY), bounded(lower=10, upper=1000).warning().category(IMPL) ] = 51 """Resolution of the design space""" - max_iter: int = 100 + max_iter: Annotated[int, bounded(lower=1).category(THEORY)] = 100 """Maximum number of iterations for the solver in `optimize()`.""" config: Config