Use varargs version of Error:all() and Error::one() where applicable
This commit is contained in:
@ -274,9 +274,9 @@ void Bond::write_file(int narg, char **arg)
|
||||
if (utils::file_is_readable(table_file)) {
|
||||
std::string units = utils::get_potential_units(table_file,"table");
|
||||
if (!units.empty() && (units != update->unit_style)) {
|
||||
error->one(FLERR,fmt::format("Trying to append to a table file "
|
||||
error->one(FLERR,"Trying to append to a table file "
|
||||
"with UNITS: {} while units are {}",
|
||||
units, update->unit_style));
|
||||
units, update->unit_style);
|
||||
}
|
||||
std::string date = utils::get_potential_date(table_file,"table");
|
||||
utils::logmesg(lmp,"Appending to table file {} with "
|
||||
@ -293,8 +293,8 @@ void Bond::write_file(int narg, char **arg)
|
||||
datebuf, update->unit_style);
|
||||
}
|
||||
if (fp == nullptr)
|
||||
error->one(FLERR,fmt::format("Cannot open bond_write file {}: {}",
|
||||
arg[4], utils::getsyserror()));
|
||||
error->one(FLERR,"Cannot open bond_write file {}: {}",
|
||||
arg[4], utils::getsyserror());
|
||||
}
|
||||
|
||||
// initialize potentials before evaluating bond potential
|
||||
|
||||
Reference in New Issue
Block a user