git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9727 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -68,7 +68,8 @@ DumpDCD::DumpDCD(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg)
|
||||
// allocate global array for atom coords
|
||||
|
||||
bigint n = group->count(igroup);
|
||||
if (n > MAXSMALLINT/sizeof(float)) error->all(FLERR,"Too many atoms for dump dcd");
|
||||
if (n > MAXSMALLINT/sizeof(float))
|
||||
error->all(FLERR,"Too many atoms for dump dcd");
|
||||
natoms = static_cast<int> (n);
|
||||
|
||||
memory->create(coords,3*natoms,"dump:coords");
|
||||
|
||||
Reference in New Issue
Block a user