git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12348 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2014-08-25 16:01:17 +00:00
parent 508ea4a575
commit 4ea728dc80
18 changed files with 73 additions and 52 deletions

View File

@ -1875,6 +1875,10 @@ void PPPM::particle_map()
int nlocal = atom->nlocal;
int flag = 0;
if (!isfinite(boxlo[0]) || !isfinite(boxlo[1]) || !isfinite(boxlo[2]))
error->one(FLERR,"Non-numeric box dimensions. Simulation unstable.");
for (int i = 0; i < nlocal; i++) {
// (nx,ny,nz) = global coords of grid pt to "lower left" of charge