more local buffers removed and file error status added.

This commit is contained in:
Axel Kohlmeyer
2020-06-04 19:46:35 -04:00
parent 62ee8d41f3
commit 54a8b4e08b
15 changed files with 152 additions and 146 deletions

View File

@ -38,8 +38,8 @@ PotentialFileReader::PotentialFileReader(LAMMPS *lmp,
fp = force->open_potential(filename.c_str());
if (fp == NULL)
error->one(FLERR,fmt::format("Cannot open {} potential file {}",
potential_name, filename));
error->one(FLERR,fmt::format("Cannot open {} potential file {}: {}",
potential_name, filename, utils::getsyserror()));
}
PotentialFileReader::~PotentialFileReader() {