[FEM] Elmer: fixes for multi-threading

- load the results depending on the used cores, not always the multi-thread results
- avoid unnecessary console output - this info is already output in tasks.py
- handle number of cores as int to save in total 2 conversions
This commit is contained in:
Uwe
2022-08-13 16:27:56 +02:00
parent d1ffbc0ae9
commit b6cb5ffe4a
3 changed files with 21 additions and 19 deletions

View File

@@ -116,10 +116,6 @@ def get_cores(name):
"""
if name in _SOLVER_PARAM:
cores = _SOLVER_PARAM[name].get_cores()
FreeCAD.Console.PrintMessage(
"Number of CPU cores to be used for the solver run: {}\n"
.format(cores)
)
return cores
else:
FreeCAD.Console.PrintError(
@@ -244,7 +240,7 @@ class _SolverDlg(object):
return the_found_binary
def get_cores(self):
cores = str(self.param_group.GetInt("UseNumberOfCores"))
cores = self.param_group.GetInt("UseNumberOfCores")
return cores
def get_write_comments(self):