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

BUG: sw4 fails to flush output on FATAL ERROR (hiding error message) #101

Open
michaelkarlcoleman opened this issue Aug 13, 2021 · 0 comments

Comments

@michaelkarlcoleman
Copy link

The cout stream needs to be flushed before calling MPI_Abort, otherwise the error message is not printed, at least in our case.

(Invoking with unbuffer sw4 is a workaround, but not a good one.)

sw4/src/parseInputFile.C

Lines 5163 to 5165 in 67ab458

if (m_myRank == 0)
cout << sourceposerr.str();
MPI_Abort(MPI_COMM_WORLD, 1);

Probably the code should be examined for other such instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant