Tweak histograms and output

This commit is contained in:
J.-S. Caux
2020-09-17 06:39:25 +02:00
parent 15e9fdb5d4
commit 9ba99f945a
4 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -780,7 +780,10 @@ namespace ABACUS {
if (info[i].Nfull > 0.0) {
int TT_hr = int(info[i].TT/3600);
int TT_min = int((info[i].TT - 3600.0*TT_hr)/60);
outfile << std::endl << std::setw(20) << base_label[i] << std::setw(25) << std::fixed << std::setprecision(20) << info[i].sumrule_obtained;
outfile << std::endl << std::setw(20) << base_label[i] << std::setw(25);
if (info[i].sumrule_obtained < 1.0) outfile << std::fixed;
else outfile << std::scientific;
outfile << std::setprecision(16) << info[i].sumrule_obtained;
if (info[i].Nfull < 1.0e+10) outfile << std::setw(25) << std::fixed << std::setprecision(0) << info[i].Nfull;
else outfile << std::setw(25) << std::scientific << std::setprecision(16) << info[i].Nfull;
outfile << std::setw(10) << info[i].Ninadm << std::setw(10) << info[i].Ndata << std::setw(10) << info[i].Ndata_conv << std::setw(10) << info[i].Ndata_conv0 << std::setw(10) << TT_hr << " h " << TT_min << " m " << std::fixed << std::showpoint << std::setprecision(3) << info[i].TT - 3600.0*TT_hr - 60.0*TT_min << " s";