Commit 41904f79 authored by jtclemm's avatar jtclemm
Browse files

Added cautionary comments

parent 6b1191b1
Loading
Loading
Loading
Loading

src/GRANULAR/fix_wall_gran.cpp

100644 → 100755
+3 −1
Original line number Diff line number Diff line
@@ -1541,6 +1541,7 @@ int FixWallGran::pack_restart(int i, double *buf)
  if (!use_history) return 0;

  int n = 0;
  // pack buf[0] this way b/c other fixes unpack it
  buf[n++] = size_history + 1;
  for (int m = 0; m < size_history; m++)
    buf[n++] = history_one[i][m];
@@ -1558,6 +1559,7 @@ void FixWallGran::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]);
+3 −1
Original line number Diff line number Diff line
@@ -479,6 +479,7 @@ int FixWallGranRegion::pack_restart(int i, double *buf)
    for (m = 0; m < size_history; m++)
      buf[n++] = history_many[i][iwall][m];
  }
  // pack buf[0] this way b/c other fixes unpack it
  buf[0] = n;
  return n;
}
@@ -496,6 +497,7 @@ void FixWallGranRegion::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]);

src/MISC/fix_gld.cpp

100644 → 100755
+3 −1
Original line number Diff line number Diff line
@@ -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,6 +567,7 @@ 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]);

src/MISC/fix_ttm.cpp

100644 → 100755
+3 −1
Original line number Diff line number Diff line
@@ -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,6 +673,7 @@ 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]);

src/MOLECULE/fix_cmap.cpp

100644 → 100755
+3 −1
Original line number Diff line number Diff line
@@ -1291,6 +1291,7 @@ int FixCMAP::pack_restart(int i, double *buf)
    buf[n++] = ubuf(crossterm_atom4[i][m]).d;
    buf[n++] = ubuf(crossterm_atom5[i][m]).d;
  }
  // pack buf[0] this way b/c other fixes unpack it
  buf[0] = n;

  return n;
@@ -1305,6 +1306,7 @@ void FixCMAP::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 n = 0;
   for (int i = 0; i < nth; i++) n += static_cast<int> (extra[nlocal][n]);
Loading