Skip to content
Snippets Groups Projects
Commit 78187e79 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Small cleanup

Moved __DATE__ and __TIME__ to config/Config.cpp
parent 4a20a9cc
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,14 @@ std::string getVersionLong();
/// E.g. "c5badb091cd30"
std::string getVersionGit();
/// Return the day PLUMED was compiled.
/// E.g. "Apr 16 2018"
std::string getCompilationDate();
/// Return the time at which PLUMED was compiled.
/// E.g. "13:27:58"
std::string getCompilationTime();
bool hasMatheval();
bool hasDlopen();
......
......@@ -167,6 +167,15 @@ bool hasXdrfile() {
#endif
}
std::string getCompilationDate() {
return __DATE__;
}
std::string getCompilationTime() {
return __TIME__;
}
}
}
......@@ -485,7 +485,8 @@ void PlumedMain::init() {
atoms.init();
if(!log.isOpen()) log.link(stdout);
log<<"PLUMED is starting\n";
log<<"Version: "<<config::getVersionLong()<<" (git: "<<config::getVersionGit()<<") compiled on " __DATE__ " at " __TIME__ "\n";
log<<"Version: "<<config::getVersionLong()<<" (git: "<<config::getVersionGit()<<") "
<<"compiled on " <<config::getCompilationDate() << " at " << config::getCompilationTime() << "\n";
log<<"Please cite this paper when using PLUMED ";
log<<cite("Tribello, Bonomi, Branduardi, Camilloni, and Bussi, Comput. Phys. Commun. 185, 604 (2014)");
log<<"\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment