forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5848 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
1ea4501637
commit
4442884a52
|
@ -1217,12 +1217,14 @@ void Neighbor::build_one(int i)
|
|||
memory->create(bins,maxbin,"bins");
|
||||
}
|
||||
|
||||
// this condition can cause LAMMPS to crash
|
||||
// when occasional list built, LAMMPS can crash if atoms have moved too far
|
||||
// why is this?, 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, so warn
|
||||
// solution is for input script to check more often for rebuild
|
||||
// only check_distance if running a simulation, not between simulations
|
||||
|
||||
int flag = 0;
|
||||
if (dist_check) flag = check_distance();
|
||||
if (dist_check && update->whichflag) flag = check_distance();
|
||||
if (flag && me == 0)
|
||||
error->warning("Building an occasional neighobr list when "
|
||||
"atoms may have moved too far");
|
||||
|
|
|
@ -432,7 +432,7 @@ void Velocity::set(int narg, char **arg)
|
|||
if (zstyle == CONSTANT && vz != 0.0)
|
||||
error->all("Cannot set non-zero z velocity for 2d simulation");
|
||||
if (zstyle == EQUAL || zstyle == ATOM)
|
||||
error->all("Cannot set varaible z velocity for 2d simulation");
|
||||
error->all("Cannot set variable z velocity for 2d simulation");
|
||||
}
|
||||
|
||||
// allocate vfield array if necessary
|
||||
|
|
Loading…
Reference in New Issue