Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Win egs_system function #508

Merged
merged 1 commit into from
Mar 7, 2019
Merged

Fix Win egs_system function #508

merged 1 commit into from
Mar 7, 2019

Conversation

mainegra
Copy link
Contributor

@mainegra mainegra commented Jan 25, 2019

Bug: Parallel runs on Windows were failing to combine *.egsdat files. Reported by Alex Bielajew.

Cause: check for exit status from the system function and subroutine was failing on Windows.
As a consequence, a dummy egs_system funtion always returned a successful command execution status.

One can now submit parallel jobs on Windows to all available cores on a given PC and get the combined results.

@ftessier
Copy link
Member

ftessier commented Jan 29, 2019

Just removed the formatting commits (will put that on the small-stuff branch for the whole HEN_HOUSE/gui/ directory), and simplified the commit text. @mainegra let me know if you are ok with this.

Toggle between MergedChannels and SeparateChannels testing modes in
egs_configure. Parallel runs on Windows were failing to combine *.egsdat
files at the end of the simulation, because the system command exit
status check was failing, hence a dummy egs_system function always
returned success.

One can check for successful compilation only or also for successful
execution by checking the test code output against a reference value.
Depending what mode is needed the QProcess communication channels for
standard output and error can be merged or separated.

Modify the system test echo argument: use 'echo off' to test the system
command on Windows, instead of 'echo hallo' which interfered with the
test output, making the test fail when it actually succeeded.
@ftessier ftessier merged commit 683226d into develop Mar 7, 2019
@ftessier ftessier deleted the fix-win-egs_system branch March 7, 2019 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants