git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5457 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include "velocity.h"
|
||||
#include "lmptype.h"
|
||||
#include "atom.h"
|
||||
#include "update.h"
|
||||
#include "domain.h"
|
||||
@ -222,6 +223,8 @@ void Velocity::create(double t_desired, int seed)
|
||||
|
||||
// error check
|
||||
|
||||
if (atom->natoms > MAXINT32)
|
||||
error->all("Too big a problem to use velocity create loop all");
|
||||
if (atom->tag_enable == 0)
|
||||
error->all("Cannot use velocity create loop all unless atoms have IDs");
|
||||
if (atom->tag_consecutive() == 0)
|
||||
|
||||
Reference in New Issue
Block a user