Added cautionary comments
This commit is contained in:
4
src/MISC/fix_gld.cpp
Normal file → Executable file
4
src/MISC/fix_gld.cpp
Normal file → Executable file
@ -547,6 +547,7 @@ int FixGLD::unpack_exchange(int nlocal, double *buf)
|
||||
int FixGLD::pack_restart(int i, double *buf)
|
||||
{
|
||||
int m = 0;
|
||||
// pack buf[0] this way b/c other fixes unpack it
|
||||
buf[m++] = 3*prony_terms + 1;
|
||||
for (int k = 0; k < 3*prony_terms; k=k+3)
|
||||
{
|
||||
@ -566,7 +567,8 @@ void FixGLD::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++;
|
||||
|
||||
4
src/MISC/fix_ttm.cpp
Normal file → Executable file
4
src/MISC/fix_ttm.cpp
Normal file → Executable file
@ -656,6 +656,7 @@ void FixTTM::restart(char *buf)
|
||||
|
||||
int FixTTM::pack_restart(int i, double *buf)
|
||||
{
|
||||
// pack buf[0] this way b/c other fixes unpack it
|
||||
buf[0] = 4;
|
||||
buf[1] = flangevin[i][0];
|
||||
buf[2] = flangevin[i][1];
|
||||
@ -672,7 +673,8 @@ void FixTTM::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]);
|
||||
m++;
|
||||
|
||||
Reference in New Issue
Block a user