improve error message

This commit is contained in:
Axel Kohlmeyer
2022-12-07 15:02:59 -05:00
parent 739537930d
commit 4a92316cf2

View File

@ -4529,7 +4529,7 @@ void Variable::peratom2global(int flag, char *word, double *vector, int nstride,
error->one(FLERR,"Variable uses atom property that isn't allocated"); error->one(FLERR,"Variable uses atom property that isn't allocated");
mine = atom->q[index]; mine = atom->q[index];
} }
else error->one(FLERR,"Invalid atom vector in variable formula"); else error->one(FLERR,"Invalid atom vector {} in variable formula", word);
} else mine = vector[index*nstride]; } else mine = vector[index*nstride];