diff --git a/src/compute_chunk_atom.cpp b/src/compute_chunk_atom.cpp index 415ab42dc5..ac35629d08 100644 --- a/src/compute_chunk_atom.cpp +++ b/src/compute_chunk_atom.cpp @@ -616,6 +616,7 @@ void ComputeChunkAtom::setup() { if (nchunkflag == ONCE) setup_chunks(); if (idsflag == ONCE) compute_ichunk(); + else invoked_ichunk = -1; } /* ---------------------------------------------------------------------- diff --git a/src/pair.cpp b/src/pair.cpp index 5d73a592e8..685280cfce 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -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"); diff --git a/src/region_block.cpp b/src/region_block.cpp index f1787d2ca2..769edb1489 100644 --- a/src/region_block.cpp +++ b/src/region_block.cpp @@ -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) {