Kratos icon indicating copy to clipboard operation
Kratos copied to clipboard

[Core] Add Process for Flushing Streams

Open matekelemen opened this issue 1 year ago • 2 comments

Nearly every MainKratos.py I've ever seen begins by defining an AnalysisStage that flushes stdout regularly. In this PR, I'm adding a process that does the same thing to make the main python scripts cleaner.

matekelemen avatar Mar 06 '24 13:03 matekelemen

I would make this part of the analysis stage, see what I did in the CoSim Analysis Stage. I quite like the solution, it is simple yet worked well for me

fine by me, it's a matter of whether the @KratosMultiphysics/technical-committee is ok with touching AnalysisStage.

matekelemen avatar Mar 06 '24 21:03 matekelemen

I'd follow @philbucher 's suggestion as it keeps the "automatic" handling of the flush, which I find is more convenient for the user.

rubenzorrilla avatar Mar 07 '24 07:03 rubenzorrilla