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

This commit is contained in:
sjplimp
2013-03-07 15:50:09 +00:00
parent e21af691be
commit 0316286abb
3 changed files with 11 additions and 3 deletions

View File

@ -464,6 +464,12 @@ void LAMMPS::create()
else domain = new Domain(this);
#endif
// use grow to initialize atom-based arrays to length 1
// so that x[0][0] can be referenced even if proc has no atoms
// must be done after nthreads is defined by Comm class
atom->avec->grow(1);
group = new Group(this);
force = new Force(this); // must be after group, to create temperature