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::readInputFile(std::string str) { plumed_assert(initialized); log.printf("FILE: %s\n",str.c_str()); IFile ifile; ifile.link(*this); ifile.open(str); ifile.allowNoEOL(); std::vector<std::string> words; while(Tools::getParsedLine(ifile,words) && words[0]!="ENDPLUMED") readInputWords(words); log.printf("END FILE: %s\n",str.c_str()); log.flush(); pilots=actionSet.select<ActionPilot*>(); }