src/lbm.cpp:544 applies a manipulator to outfile before outfile.open() on line 545. Writing to an unopened ofstream sets failbit; this only works because open() calls clear() on success and setiosflags bypasses the sentry. Move the open() above the manipulator.
Low urgency: Output() has no callers today (MPIoutput is commented out at main.cpp:83). Found while adding the CPU/CMake build.
src/lbm.cpp:544 applies a manipulator to
outfilebeforeoutfile.open()on line 545. Writing to an unopened ofstream sets failbit; this only works because open() calls clear() on success and setiosflags bypasses the sentry. Move the open() above the manipulator.Low urgency: Output() has no callers today (MPIoutput is commented out at main.cpp:83). Found while adding the CPU/CMake build.