Use varargs version of Error:all() and Error::one() where applicable
This commit is contained in:
@ -129,8 +129,8 @@ FixAveCorrelate::FixAveCorrelate(LAMMPS * lmp, int narg, char **arg):
|
||||
if (me == 0) {
|
||||
fp = fopen(arg[iarg+1],"w");
|
||||
if (fp == nullptr)
|
||||
error->one(FLERR,fmt::format("Cannot open fix ave/correlate file {}:"" {}",
|
||||
arg[iarg+1], utils::getsyserror()));
|
||||
error->one(FLERR,"Cannot open fix ave/correlate file {}:"" {}",
|
||||
arg[iarg+1], utils::getsyserror());
|
||||
}
|
||||
iarg += 2;
|
||||
} else if (strcmp(arg[iarg],"overwrite") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user