|
opm-simulators
|
A functor that merges multiple files of a parallel run to one file. More...
#include <ParallelFileMerger.hpp>
Public Member Functions | |
| ParallelFileMerger (const fs::path &output_dir, const std::string &deckname, bool show_fallout=false) | |
| Constructor. | |
| void | operator() (const fs::path &file) |
A functor that merges multiple files of a parallel run to one file.
Without care multiple processes might log messages in a parallel run. Non-root processes will do that to seperate files <basename>.<rank>.<extension. This functor will append those file to usual ones and delete the other files.
| Opm::detail::ParallelFileMerger::ParallelFileMerger | ( | const fs::path & | output_dir, |
| const std::string & | deckname, | ||
| bool | show_fallout = false ) |
Constructor.
| output_dir | The output directory to use for reading/Writing. |
| deckname | The name of the deck. |
| show_fallout | True to show fall-out |