Added cautionary comments
This commit is contained in:
4
src/USER-MISC/fix_gle.cpp
Normal file → Executable file
4
src/USER-MISC/fix_gle.cpp
Normal file → Executable file
@ -822,6 +822,7 @@ int FixGLE::unpack_exchange(int nlocal, double *buf)
|
||||
int FixGLE::pack_restart(int i, double *buf)
|
||||
{
|
||||
int m = 0;
|
||||
// pack buf[0] this way b/c other fixes unpack it
|
||||
buf[m++] = 3*ns + 1;
|
||||
for (int k = 0; k < 3*ns; k=k+3)
|
||||
{
|
||||
@ -841,7 +842,8 @@ void FixGLE::unpack_restart(int nlocal, int nth)
|
||||
double **extra = atom->extra;
|
||||
|
||||
// skip to the nth set of extended variables
|
||||
|
||||
// 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]);
|
||||
m++;
|
||||
|
||||
Reference in New Issue
Block a user