improve ghost keyword comments in fix_property_atom.cpp

This commit is contained in:
Shern Tee
2024-01-16 23:04:59 +10:00
parent e36a764db2
commit 89fd9ec531

View File

@ -51,7 +51,7 @@ FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) :
nvalue = 0;
values_peratom = 0;
// get "ghost" first for settings
// check for ghost keyword to use as add_custom() arg
border = 0;
while (iarg < narg) {
@ -182,7 +182,7 @@ FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) :
// optional args
while (iarg < narg) {
if (strcmp(arg[iarg], "ghost") == 0) {
if (strcmp(arg[iarg], "ghost") == 0) { // skip here, since handled earlier
iarg += 2;
} else if (strcmp(arg[iarg], "writedata") == 0) {
if (iarg + 2 > narg) error->all(FLERR, "Illegal fix property/atom command");