sw4
sw4 copied to clipboard
BUG: sw4 fails to flush output on FATAL ERROR (hiding error message)
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.)
https://github.com/geodynamics/sw4/blob/67ab458ccdb97763a04025b4bf840d7814d6d27f/src/parseInputFile.C#L5163-L5165
Probably the code should be examined for other such instances.