From b19ac278f3a2e3306f22bdc2b1207cfbad7e1066 Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:30:01 +0100 Subject: [PATCH] FEM: Update solver.py --- src/Mod/Fem/femsolver/calculix/solver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Fem/femsolver/calculix/solver.py b/src/Mod/Fem/femsolver/calculix/solver.py index 3ccc833dcc51..b22099ab2805 100644 --- a/src/Mod/Fem/femsolver/calculix/solver.py +++ b/src/Mod/Fem/femsolver/calculix/solver.py @@ -212,6 +212,10 @@ def add_attributes(obj, ccx_prefs): niter = ccx_prefs.GetInt("AnalysisMaxIterations", 200) obj.IterationsMaximum = niter + if hasattr(obj, "IterationsThermoMechMaximum"): + obj.IterationsMaximum = obj.IterationsThermoMechMaximum + obj.removeProperty("IterationsThermoMechMaximum") + if not hasattr(obj, "BucklingFactors"): obj.addProperty( "App::PropertyIntegerConstraint",