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 &grid = *env.getGrid();
|
||||||
auto &gridRb = *env.getRbGrid();
|
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(),
|
env.addFermionMatrix(getName(),
|
||||||
new WilsonFermionR(U, grid, gridRb, par_.mass));
|
new WilsonFermionR(U, grid, gridRb, par_.mass));
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,8 @@ std::vector<std::string> CMeson::getOutput(void)
|
|||||||
// execution ///////////////////////////////////////////////////////////////////
|
// execution ///////////////////////////////////////////////////////////////////
|
||||||
void CMeson::execute(Environment &env)
|
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;
|
<< std::endl;
|
||||||
|
|
||||||
XmlWriter writer(par_.output);
|
XmlWriter writer(par_.output);
|
||||||
|
@ -73,5 +73,7 @@ void GLoad::execute(Environment &env)
|
|||||||
std::string fileName = par_.file + "."
|
std::string fileName = par_.file + "."
|
||||||
+ std::to_string(env.getTrajectory());
|
+ std::to_string(env.getTrajectory());
|
||||||
|
|
||||||
|
LOG(Message) << "loading NERSC configuration from file '" << fileName
|
||||||
|
<< "'" << std::endl;
|
||||||
NerscIO::readConfiguration(*gauge_, header, fileName);
|
NerscIO::readConfiguration(*gauge_, header, fileName);
|
||||||
}
|
}
|
||||||
|
@ -61,5 +61,6 @@ void GRandom::allocate(Environment &env)
|
|||||||
// execution ///////////////////////////////////////////////////////////////////
|
// execution ///////////////////////////////////////////////////////////////////
|
||||||
void GRandom::execute(Environment &env)
|
void GRandom::execute(Environment &env)
|
||||||
{
|
{
|
||||||
|
LOG(Message) << "generating random gauge configuration" << std::endl;
|
||||||
SU3::HotConfiguration(*env.get4dRng(), *gauge_);
|
SU3::HotConfiguration(*env.get4dRng(), *gauge_);
|
||||||
}
|
}
|
||||||
|
@ -61,5 +61,6 @@ void GUnit::allocate(Environment &env)
|
|||||||
// execution ///////////////////////////////////////////////////////////////////
|
// execution ///////////////////////////////////////////////////////////////////
|
||||||
void GUnit::execute(Environment &env)
|
void GUnit::execute(Environment &env)
|
||||||
{
|
{
|
||||||
|
LOG(Message) << "creating unit gauge configuration" << std::endl;
|
||||||
SU3::ColdConfiguration(*env.get4dRng(), *gauge_);
|
SU3::ColdConfiguration(*env.get4dRng(), *gauge_);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user