reverting <format> since gcc < 13 does not support it

This commit is contained in:
Marco De Lucia 2024-12-12 18:05:50 +01:00 committed by Max Lübke
parent 2e3de84a90
commit dd9cc5e59f

View File

@ -39,7 +39,6 @@
#include <memory> #include <memory>
#include <mpi.h> #include <mpi.h>
#include <string> #include <string>
#include <format>
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
@ -294,11 +293,12 @@ static Rcpp::List RunMasterLoop(RInsidePOET &R, const RuntimeParameters &params,
const double &dt = params.timesteps[iter - 1]; const double &dt = params.timesteps[iter - 1];
std::cout << std::endl; std::cout << std::endl;
/* displaying iteration number, with C++ and R iterator */ /* displaying iteration number, with C++ and R iterator */
MSG("Going through iteration " + std::to_string(iter) + "/" + MSG("Going through iteration " + std::to_string(iter) + "/" +
std::to_string(maxiter)); std::to_string(maxiter));
MSG("Current time step is " + std::format("{:.2f}", dt)); MSG("Current time step is " + std::to_string(dt));
/* run transport */ /* run transport */
diffusion.simulate(dt); diffusion.simulate(dt);