Skip to content

Commit

Permalink
FEM: fix loading frequency in solver control command
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Dec 11, 2015
1 parent be9920a commit 0f7a13a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Mod/Fem/_TaskPanelFemSolverCalculix.py
Expand Up @@ -144,14 +144,10 @@ def calculixFinished(self, exitCode):
self.form.l_time.setText('Time: {0:4.1f}: '.format(time.time() - self.Start))
fea = FemTools()
fea.reset_all()
frd_result_file = os.path.splitext(self.inp_file_name)[0] + '.frd'
if os.path.isfile(frd_result_file):
QApplication.setOverrideCursor(Qt.WaitCursor)
ccxFrdReader.importFrd(frd_result_file, FemGui.getActiveAnalysis())
QApplication.restoreOverrideCursor()
self.femConsoleMessage("Loading results done!", "#00AA00")
else:
self.femConsoleMessage("Loading results failed! Results file doesn\'t exist", "#FF0000")
fea.inp_file_name = self.inp_file_name
QApplication.setOverrideCursor(Qt.WaitCursor)
fea.load_results()
QApplication.restoreOverrideCursor()
self.form.l_time.setText('Time: {0:4.1f}: '.format(time.time() - self.Start))

def getStandardButtons(self):
Expand Down

0 comments on commit 0f7a13a

Please sign in to comment.