Hi all, trying out Code-Saturne 4.0.4 I ran into the following problem when doing one of the tutorials.
After setting up the case, for a single CPU, clicking on the run button opens the output Window but CS is not launched. Only after clicking many times it worked.
I had to dig into the code and found out it works well when I change BatchRunningView.py:
from:
if self.case['salome'] or key == 'localhost':
dlg = ListingDialogView(self.parent, self.case, run_title, cmd)
dlg.show()
else:
cs_exec_environment.run_command(cmd)
to:
if self.case['salome'] or key == 'localhost':
dlg = ListingDialogView(self.parent, self.case, run_title, cmd)
dlg.show()
cs_exec_environment.run_command(cmd)
else:
cs_exec_environment.run_command(cmd)
Nobody else ran into this problem ??
running on Ubuntu
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: running on Ubuntu
Hello,
There is an "intermittent" issue, which is hard to reproduce, and seems to occur more often on some machines than others. You modification could lead to running the code twice, so we need to do something better.
We are working on a fix, but it is slow, as we can only test alternatives on some systems, without good reproducibility, and the issue might be due to a bug in Qt4 or Python-Qt4.
The "sure" solution is to run the SCRIPTS/runcase file directly from a terminal once it has been saved from the GUI.
Best regards,
Yvan
There is an "intermittent" issue, which is hard to reproduce, and seems to occur more often on some machines than others. You modification could lead to running the code twice, so we need to do something better.
We are working on a fix, but it is slow, as we can only test alternatives on some systems, without good reproducibility, and the issue might be due to a bug in Qt4 or Python-Qt4.
The "sure" solution is to run the SCRIPTS/runcase file directly from a terminal once it has been saved from the GUI.
Best regards,
Yvan
Re: running on Ubuntu
OK, indeed there seems to be some randomness involved. I'll do the run from the command line for the time being !!