Added cautionary comments

This commit is contained in:
jtclemm
2020-08-08 09:15:56 -06:00
parent 6b1191b1c0
commit 41904f7946
20 changed files with 47 additions and 9 deletions

2
src/fix_spring_self.cpp Normal file → Executable file
View File

@ -264,6 +264,7 @@ int FixSpringSelf::unpack_exchange(int nlocal, double *buf)
int FixSpringSelf::pack_restart(int i, double *buf)
{
// pack buf[0] this way b/c other fixes unpack it
buf[0] = 4;
buf[1] = xoriginal[i][0];
buf[2] = xoriginal[i][1];
@ -280,6 +281,7 @@ void FixSpringSelf::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]);