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:
parent
ba878724ce
commit
798d8f7340
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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_);
|
||||
}
|
||||
|
@ -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_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user