Unverified Commit e3beec8b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

revert permission change and replace 'b/c' with 'because'

parent d0720794
Loading
Loading
Loading
Loading

src/GRANULAR/fix_wall_gran.cpp

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


  int n = 0;
  int n = 0;
  // pack buf[0] this way b/c other fixes unpack it
  // pack buf[0] this way because other fixes unpack it
  buf[n++] = size_history + 1;
  buf[n++] = size_history + 1;
  for (int m = 0; m < size_history; m++)
  for (int m = 0; m < size_history; m++)
    buf[n++] = history_one[i][m];
    buf[n++] = history_one[i][m];
@@ -1559,7 +1559,7 @@ void FixWallGran::unpack_restart(int nlocal, int nth)
  double **extra = atom->extra;
  double **extra = atom->extra;


  // skip to Nth set of extra values
  // skip to Nth set of extra values
  // unpack the Nth first values this way b/c other fixes pack them
  // unpack the Nth first values this way because other fixes pack them
  
  
  int m = 0;
  int m = 0;
  for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);
  for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);
+2 −2
Original line number Original line Diff line number Diff line
@@ -479,7 +479,7 @@ int FixWallGranRegion::pack_restart(int i, double *buf)
    for (m = 0; m < size_history; m++)
    for (m = 0; m < size_history; m++)
      buf[n++] = history_many[i][iwall][m];
      buf[n++] = history_many[i][iwall][m];
  }
  }
  // pack buf[0] this way b/c other fixes unpack it
  // pack buf[0] this way because other fixes unpack it
  buf[0] = n;
  buf[0] = n;
  return n;
  return n;
}
}
@@ -497,7 +497,7 @@ void FixWallGranRegion::unpack_restart(int nlocal, int nth)
  double **extra = atom->extra;
  double **extra = atom->extra;


  // skip to Nth set of extra values
  // skip to Nth set of extra values
  // unpack the Nth first values this way b/c other fixes pack them
  // unpack the Nth first values this way because other fixes pack them
  
  
  int m = 0;
  int m = 0;
  for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);
  for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);

src/MISC/fix_gld.cpp

100755 → 100644
+2 −2
Original line number Original line Diff line number Diff line
@@ -547,7 +547,7 @@ int FixGLD::unpack_exchange(int nlocal, double *buf)
int FixGLD::pack_restart(int i, double *buf)
int FixGLD::pack_restart(int i, double *buf)
{
{
  int m = 0;
  int m = 0;
  // pack buf[0] this way b/c other fixes unpack it
  // pack buf[0] this way because other fixes unpack it
  buf[m++] = 3*prony_terms + 1;
  buf[m++] = 3*prony_terms + 1;
  for (int k = 0; k < 3*prony_terms; k=k+3)
  for (int k = 0; k < 3*prony_terms; k=k+3)
  {
  {
@@ -567,7 +567,7 @@ void FixGLD::unpack_restart(int nlocal, int nth)
  double **extra = atom->extra;
  double **extra = atom->extra;


  // skip to the nth set of extended variables
  // skip to the nth set of extended variables
  // unpack the Nth first values this way b/c other fixes pack them
  // unpack the Nth first values this way because other fixes pack them
  
  
  int m = 0;
  int m = 0;
  for (int i = 0; i< nth; i++) m += static_cast<int> (extra[nlocal][m]);
  for (int i = 0; i< nth; i++) m += static_cast<int> (extra[nlocal][m]);

src/MISC/fix_ttm.cpp

100755 → 100644
+2 −2
Original line number Original line Diff line number Diff line
@@ -656,7 +656,7 @@ void FixTTM::restart(char *buf)


int FixTTM::pack_restart(int i, double *buf)
int FixTTM::pack_restart(int i, double *buf)
{
{
  // pack buf[0] this way b/c other fixes unpack it
  // pack buf[0] this way because other fixes unpack it
  buf[0] = 4;
  buf[0] = 4;
  buf[1] = flangevin[i][0];
  buf[1] = flangevin[i][0];
  buf[2] = flangevin[i][1];
  buf[2] = flangevin[i][1];
@@ -673,7 +673,7 @@ void FixTTM::unpack_restart(int nlocal, int nth)
  double **extra = atom->extra;
  double **extra = atom->extra;


  // skip to Nth set of extra values
  // skip to Nth set of extra values
  // unpack the Nth first values this way b/c other fixes pack them
  // unpack the Nth first values this way because other fixes pack them
  
  
  int m = 0;
  int m = 0;
  for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);
  for (int i = 0; i < nth; i++) m += static_cast<int> (extra[nlocal][m]);

src/MOLECULE/fix_cmap.cpp

100755 → 100644
+3 −3
Original line number Original line Diff line number Diff line
@@ -1041,7 +1041,7 @@ void FixCMAP::read_data_header(char *line)
    sscanf(line,BIGINT_FORMAT,&ncmap);
    sscanf(line,BIGINT_FORMAT,&ncmap);
  } else error->all(FLERR,"Invalid read data header line for fix cmap");
  } else error->all(FLERR,"Invalid read data header line for fix cmap");


  // didn't set in constructor b/c this fix could be defined
  // didn't set in constructor because this fix could be defined
  // before newton command
  // before newton command


  newton_bond = force->newton_bond;
  newton_bond = force->newton_bond;
@@ -1291,7 +1291,7 @@ int FixCMAP::pack_restart(int i, double *buf)
    buf[n++] = ubuf(crossterm_atom4[i][m]).d;
    buf[n++] = ubuf(crossterm_atom4[i][m]).d;
    buf[n++] = ubuf(crossterm_atom5[i][m]).d;
    buf[n++] = ubuf(crossterm_atom5[i][m]).d;
  }
  }
  // pack buf[0] this way b/c other fixes unpack it
  // pack buf[0] this way because other fixes unpack it
  buf[0] = n;
  buf[0] = n;


  return n;
  return n;
@@ -1306,7 +1306,7 @@ void FixCMAP::unpack_restart(int nlocal, int nth)
  double **extra = atom->extra;
  double **extra = atom->extra;


  // skip to Nth set of extra values
  // skip to Nth set of extra values
  // unpack the Nth first values this way b/c other fixes pack them
  // unpack the Nth first values this way because other fixes pack them
  
  
   int n = 0;
   int n = 0;
   for (int i = 0; i < nth; i++) n += static_cast<int> (extra[nlocal][n]);
   for (int i = 0; i < nth; i++) n += static_cast<int> (extra[nlocal][n]);
Loading