21 std::function<std::string(std::vector<double>)>
23 : filename(std::move(xdmf_filename)), xdmf_writer(xdmf_writer_fn)
35 INFO(
"[time] Output of XDMF to {:s} took {:g} s.",
42 times.push_back(time_step);
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
Definition of the RunTime class.
Collects and holds all metadata for writing XDMF file.
double elapsed() const
Get the elapsed time in seconds.
void start()
Start the timer.
std::function< std::string(std::vector< double >)> xdmf_writer
std::vector< double > times
XdmfWriter(std::string xdmf_filename, std::function< std::string(std::vector< double >)> xdmf_writer_fn)
Writes xdmf string into file on class destruction.
void addTimeStep(double const &time_step)
Adds data for lazy (xdmf) writing algorithm.
write_xdmf generates a function based on spatial mesh data. The generated function finally generates ...