diff --git a/src/lp_data/HighsModelUtils.cpp b/src/lp_data/HighsModelUtils.cpp index ea2944a21c..4444bdc18d 100644 --- a/src/lp_data/HighsModelUtils.cpp +++ b/src/lp_data/HighsModelUtils.cpp @@ -243,6 +243,7 @@ void writePrimalSolution(FILE* file, const HighsLogOptions& log_options, ss << "\n"; highsFprintfString(file, log_options, ss.str()); } + fflush(file); } void writeModelSolution(FILE* file, const HighsLogOptions& log_options,