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

Write citations when reading single lines

parent 15e673b6
No related branches found
No related tags found
No related merge requests found
......@@ -543,7 +543,13 @@ void PlumedMain::readInputLine(const std::string & str){
plumed_assert(initialized);
if(str.empty()) return;
std::vector<std::string> words=Tools::getWords(str);
citations.clear();
readInputWords(words);
if(!citations.empty()){
log<<"Relevant bibliography:\n";
log<<citations;
log<<"Please read and cite where appropriate!\n";
}
}
void PlumedMain::readInputWords(const std::vector<std::string> & words){
......
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