Write config to output file
This MR adds some code for the FileWriter to store the run config and version in the output file.
This necessitates changing how the config is accessed by modules. Instead of giving them a copy we just share a reference to the original.
Now we can even think about having the default values set in the output config - opinions? This would mean:
// instead of this
auto a = config_.get<double>("mypar", 15.0);
// We would have to do
config_.setDeafult("mypar", 15.0);
auto a = config.get<double>("mypar");
Open Tasks:
-
fix clang issue -
How to handle time_cut_rel/abs
andspatial_cut_rel/abs
?