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

Hadrons: Modules: better log messages

This commit is contained in:
Antonin Portelli 2016-05-03 18:17:58 -07:00
parent ba878724ce
commit 798d8f7340
5 changed files with 8 additions and 1 deletions

View File

@ -66,6 +66,8 @@ void AWilson::execute(Environment &env)
auto &grid = *env.getGrid();
auto &gridRb = *env.getRbGrid();
LOG(Message) << "setting up Wilson fermion matrix with m= " << par_.mass
<< " using gauge field '" << par_.gauge << "'" << std::endl;
env.addFermionMatrix(getName(),
new WilsonFermionR(U, grid, gridRb, par_.mass));
}

View File

@ -63,7 +63,8 @@ std::vector<std::string> CMeson::getOutput(void)
// execution ///////////////////////////////////////////////////////////////////
void CMeson::execute(Environment &env)
{
LOG(Message) << "computing meson contraction '" << getName() << "'"
LOG(Message) << "computing meson contraction '" << getName() << "' using"
<< " quarks '" << par_.q1 << " and '" << par_.q2 << "'"
<< std::endl;
XmlWriter writer(par_.output);

View File

@ -73,5 +73,7 @@ void GLoad::execute(Environment &env)
std::string fileName = par_.file + "."
+ std::to_string(env.getTrajectory());
LOG(Message) << "loading NERSC configuration from file '" << fileName
<< "'" << std::endl;
NerscIO::readConfiguration(*gauge_, header, fileName);
}

View File

@ -61,5 +61,6 @@ void GRandom::allocate(Environment &env)
// execution ///////////////////////////////////////////////////////////////////
void GRandom::execute(Environment &env)
{
LOG(Message) << "generating random gauge configuration" << std::endl;
SU3::HotConfiguration(*env.get4dRng(), *gauge_);
}

View File

@ -61,5 +61,6 @@ void GUnit::allocate(Environment &env)
// execution ///////////////////////////////////////////////////////////////////
void GUnit::execute(Environment &env)
{
LOG(Message) << "creating unit gauge configuration" << std::endl;
SU3::ColdConfiguration(*env.get4dRng(), *gauge_);
}