Bug in processors command (while providing custom grid file)

Dear LAMMPS developers,
While trying to give custom gridfile using command:

“processors * * * grid custom myfile”

I was encountering error as:

“Illegal processors command”

On further investigation, it turns out that error was at line 358 of “comm.cpp”. The line 358 is:

“} else if (strcmp(arg[iarg],“custom”) == 0) {”

Instead it should be:

“} else if (strcmp(arg[iarg+1],“custom”) == 0) {”

i.e. it should compare “custom” keyword with word after “grid”, hence “iarg+1” inside square brackets. I checked with mailing list and list of recent bug fixes and couldn’t find mention of this. So I am posting it here.

Dear LAMMPS developers,
While trying to give custom gridfile using command:

"processors * * * grid custom myfile"

I was encountering error as:

"Illegal processors command"

On further investigation, it turns out that error was at line 358 of
"comm.cpp". The line 358 is:

"} else if (strcmp(arg[iarg],"custom") == 0) {"

Instead it should be:

"} else if (strcmp(arg[iarg+1],"custom") == 0) {"

i.e. it should compare "custom" keyword with word after "grid", hence
"iarg+1" inside square brackets. I checked with mailing list and list of
recent bug fixes and couldn't find mention of this. So I am posting it here.

yeah, this is probably not a very frequently used command option.

thanks for reporting. i've included the bugfix in LAMMPS-ICMS and it
will be sent to steve in the next batch of accumulated bugfixes, as
soon as he has time for it.

axel.