LAMMPS crashes when I use the "npt" fix with "dilate groupname" (or
"dilate partial"). I patched this problem and attached the effected
file "fix_nh.cpp". (Later, I'll send the files I use for testing.)
There was a typo with the existing code near fix_nh.cpp near line 251:
These lines:
int n = strlen(arg[iarg+2]) + 1;
id_dilate = new char[n];
strcpy(id_dilate,arg[iarg+2]);
should be
int n = strlen(arg[iarg+1]) + 1;
id_dilate = new char[n];
strcpy(id_dilate,arg[iarg+1]);
fix_nh.cpp (66.6 KB)