Commit a2fa6ef4 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #393 from akohlmey/small-bugfixes

Small bugfixes
parents 920641bb ce1a3f25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -616,6 +616,7 @@ void ComputeChunkAtom::setup()
{
  if (nchunkflag == ONCE) setup_chunks();
  if (idsflag == ONCE) compute_ichunk();
  else invoked_ichunk = -1;
}

/* ----------------------------------------------------------------------
+1 −1
Original line number Diff line number Diff line
@@ -1534,7 +1534,7 @@ void Pair::virial_fdotr_compute()

void Pair::write_file(int narg, char **arg)
{
  if (narg < 8) error->all(FLERR,"Illegal pair_write command");
  if (narg != 8 && narg != 10) error->all(FLERR,"Illegal pair_write command");
  if (single_enable == 0)
    error->all(FLERR,"Pair style does not support pair_write");

+1 −1
Original line number Diff line number Diff line
@@ -401,7 +401,7 @@ double RegBlock::find_closest_point(int i, double *x,
      zc = p[2];
    }

    point_on_line_segment(corners[i][3],corners[i][4],x,p);
    point_on_line_segment(corners[i][3],corners[i][0],x,p);
    d2 = (p[0]-x[0])*(p[0]-x[0]) + (p[1]-x[1])*(p[1]-x[1]) +
      (p[2]-x[2])*(p[2]-x[2]);
    if (d2 < d2min) {