Skip to content

Commit

Permalink
FEM: Update solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Mar 21, 2024
1 parent 96f3a7e commit b19ac27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Fem/femsolver/calculix/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b19ac27

Please sign in to comment.