forked from lijiext/lammps
commit
a2fa6ef452
|
@ -616,6 +616,7 @@ void ComputeChunkAtom::setup()
|
|||
{
|
||||
if (nchunkflag == ONCE) setup_chunks();
|
||||
if (idsflag == ONCE) compute_ichunk();
|
||||
else invoked_ichunk = -1;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue