1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: code cleaning

This commit is contained in:
Antonin Portelli 2018-08-13 20:17:24 +01:00
parent 07a0ef3f95
commit 603d59f389
3 changed files with 3 additions and 5 deletions

View File

@ -60,7 +60,7 @@ Application::Application(void)
LOG(Message) << "MPI partition : " << mpi << std::endl;
LOG(Message) << "Local lattice : " << loc << std::endl;
LOG(Message) << std::endl;
LOG(Message) << "** Default parameters (and associated C macro)" << std::endl;
LOG(Message) << "** Default parameters (and associated C macros)" << std::endl;
LOG(Message) << "ASCII output precision : " << MACOUT(DEFAULT_ASCII_PREC) << std::endl;
LOG(Message) << "Fermion implementation : " << MACOUTS(FIMPL) << std::endl;
LOG(Message) << "z-Fermion implementation: " << MACOUTS(ZFIMPL) << std::endl;

View File

@ -182,6 +182,7 @@ void Hadrons::printTimeProfile(const std::map<std::string, GridTime> &timing,
std::map<Count, std::string, std::greater<Count>> rtiming;
const double dtotal = static_cast<double>(total.count());
auto cf = std::cout.flags();
auto p = std::cout.precision();
unsigned int width = 0;
for (auto &t: timing)
@ -198,4 +199,5 @@ void Hadrons::printTimeProfile(const std::map<std::string, GridTime> &timing,
<< std::endl;
}
std::cout.flags(cf);
std::cout.precision(p);
}

View File

@ -637,10 +637,6 @@ VirtualMachine::Program VirtualMachine::schedule(const GeneticPar &par)
#define SEP "----------------"
#define SMALL_SEP "................"
#define MEM_MSG(size) sizeString(size)
#define PRINT_TIME(name, t, total) \
std::right << std::setw(30) << name << ": " << t.count() << " us (" \
<< std::fixed << std::setprecision(1) \
<< static_cast<double>((t).count())/total*100 << "%)"
void VirtualMachine::executeProgram(const Program &p)
{