From 143cf7b7d009ba13c707e4f76a79f95078037009 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 3 Apr 2014 14:50:52 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11683 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/neighbor.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/neighbor.cpp b/src/neighbor.cpp index a155312937..98bf70549c 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -1480,16 +1480,26 @@ void Neighbor::build_one(int i) error->one(FLERR,"Too many local+ghost atoms for neighbor list"); // when occasional list built, LAMMPS can crash if atoms have moved too far - // why is this?, give warning if this is the case + // why is this? maybe b/c this list is derived from some now out-of-date list? + // give warning if this is the case // no easy workaround b/c all neighbor lists really need to be rebuilt // solution is for input script to check more often for rebuild // only check_distance if running a simulation, not between simulations + // comment out for now + // is sometimes giving warning when there is no issue + // e.g. when a variable uses a fix with an occasional neigh list + // at the beginning of a timestep (e.g. fix move) where + // all neigh lists are about to be re-built anyway + /* int flag = 0; if (dist_check && update->whichflag) flag = check_distance(); - if (flag && me == 0) + if (flag && me == 0) { + printf("BUILD ONE ERROR: %ld\n",update->ntimestep); error->warning(FLERR,"Building an occasional neighbor list when " "atoms may have moved too far"); + } + */ (this->*pair_build[i])(lists[i]); }