forked from lijiext/lammps
Added warning about box dimesnions
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6942 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
e51d04c730
commit
9f02b4057b
|
@ -401,6 +401,9 @@ void FixQEqReax::pre_force(int vflag)
|
|||
if (update->ntimestep % nevery) return;
|
||||
if( comm->me == 0 ) t_start = MPI_Wtime();
|
||||
|
||||
if (domain->xprd < swb || domain->yprd < swb || domain->zprd < swb)
|
||||
error->warning("FixQEqReax cutoff greater than periodic dimension");
|
||||
|
||||
n = atom->nlocal;
|
||||
N = atom->nlocal + atom->nghost;
|
||||
// grow arrays if necessary
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "fix.h"
|
||||
#include "fix_reax_c.h"
|
||||
#include "memory.h"
|
||||
#include "domain.h"
|
||||
#include "error.h"
|
||||
|
||||
#include "reaxc_types.h"
|
||||
|
@ -378,6 +379,9 @@ void PairReaxC::compute(int eflag, int vflag)
|
|||
double evdwl,ecoul;
|
||||
double t_start, t_end;
|
||||
|
||||
if (domain->xprd < cutmax || domain->yprd < cutmax || domain->zprd < cutmax)
|
||||
error->warning("PairReaxC cutoff greater than periodic dimension");
|
||||
|
||||
// communicate num_bonds once every reneighboring
|
||||
// 2 num arrays stored by fix, grab ptr to them
|
||||
|
||||
|
|
Loading…
Reference in New Issue