Added cautionary comments
This commit is contained in:
2
src/fix_property_atom.cpp
Normal file → Executable file
2
src/fix_property_atom.cpp
Normal file → Executable file
@ -579,6 +579,7 @@ int FixPropertyAtom::unpack_exchange(int nlocal, double *buf)
|
||||
|
||||
int FixPropertyAtom::pack_restart(int i, double *buf)
|
||||
{
|
||||
// pack buf[0] this way b/c other fixes unpack it
|
||||
buf[0] = nvalue+1;
|
||||
|
||||
int m = 1;
|
||||
@ -602,6 +603,7 @@ void FixPropertyAtom::unpack_restart(int nlocal, int nth)
|
||||
double **extra = atom->extra;
|
||||
|
||||
// skip to Nth set of extra values
|
||||
// unpack the Nth first values this way b/c other fixes pack them
|
||||
|
||||
int m = 0;
|
||||
for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);
|
||||
|
||||
Reference in New Issue
Block a user