git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9602 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -449,14 +449,15 @@ LAMMPS::~LAMMPS()
|
||||
|
||||
void LAMMPS::create()
|
||||
{
|
||||
atom = new Atom(this);
|
||||
|
||||
if (cuda) neighbor = new NeighborCuda(this);
|
||||
else neighbor = new Neighbor(this);
|
||||
// Comm class must be created before Atom
|
||||
// so that nthreads is defined when create_avec invokes grow()
|
||||
|
||||
if (cuda) comm = new CommCuda(this);
|
||||
else comm = new Comm(this);
|
||||
|
||||
if (cuda) neighbor = new NeighborCuda(this);
|
||||
else neighbor = new Neighbor(this);
|
||||
|
||||
if (cuda) domain = new DomainCuda(this);
|
||||
#ifdef LMP_USER_OMP
|
||||
else domain = new DomainOMP(this);
|
||||
@ -464,11 +465,8 @@ 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);
|
||||
atom = new Atom(this);
|
||||
atom->create_avec("atomic",0,NULL,suffix);
|
||||
|
||||
group = new Group(this);
|
||||
force = new Force(this); // must be after group, to create temperature
|
||||
|
||||
Reference in New Issue
Block a user