[FEM] Elmer: fix python error when solver failed

we must then stop the execution of the script
This commit is contained in:
Uwe
2022-07-25 02:54:12 +02:00
parent 0828e85b56
commit ae33ad545f

View File

@@ -188,6 +188,10 @@ class Results(run.Results):
if self.solver.ElmerResult is None:
self._createResults()
postPath = self._getResultFile()
if postPath is None:
self.pushStatus("\nNo result file was created.\n")
self.fail()
return
self.solver.ElmerResult.read(postPath)
self.solver.ElmerResult.scale(1000)
self.solver.ElmerResult.getLastPostObject().touch()