Add convenience method next_values

This commit is contained in:
Richard Berger
2020-06-04 16:27:27 -04:00
parent 57821c7bea
commit 8689b31bca
4 changed files with 18 additions and 1 deletions

View File

@ -83,6 +83,15 @@ void PotentialFileReader::next_dvector(int n, double * list) {
}
}
ValueTokenizer PotentialFileReader::next_values(int nparams, const std::string & seperators) {
try {
return reader->next_values(nparams, seperators);
} catch (FileReaderException & e) {
error->one(FLERR, e.what());
}
return ValueTokenizer("");
}
double PotentialFileReader::next_double() {
try {
char * line = reader->next_line(1);