Use fmt::printf instead of iostreams

pull/3/head
Hleb Valoshka 2019-06-19 14:11:40 +03:00
parent 7a3cfbc320
commit 0e2ee08c42
1 changed files with 3 additions and 6 deletions

View File

@ -16,7 +16,7 @@
#include <cassert>
#include <vector>
#include <fstream>
#include <iomanip>
#include <fmt/printf.h>
using namespace Eigen;
using namespace std;
@ -3160,11 +3160,8 @@ Orbit* GetCustomOrbit(const string& name)
jpleph = JPLEphemeris::load(in);
if (jpleph != nullptr)
{
clog << "Loaded DE" << jpleph->getDENumber() <<
" ephemeris. Valid from JD" <<
setprecision(8) <<
jpleph->getStartDate() << " to JD" <<
jpleph->getEndDate() << '\n';
fmt::fprintf(clog, "Loaded DE%u ephemeris. Valid from JD %.8lf to JD %.8lf\n",
jpleph->getDENumber(), jpleph->getStartDate(), jpleph->getEndDate());
}
}