update to current master
This commit is contained in:
@ -197,6 +197,12 @@ void Replicate::command(int narg, char **arg)
|
||||
atom->dihedral_per_atom = old->dihedral_per_atom;
|
||||
atom->improper_per_atom = old->improper_per_atom;
|
||||
|
||||
atom->extra_bond_per_atom = old->extra_bond_per_atom;
|
||||
atom->extra_angle_per_atom = old->extra_angle_per_atom;
|
||||
atom->extra_dihedral_per_atom = old->extra_dihedral_per_atom;
|
||||
atom->extra_improper_per_atom = old->extra_improper_per_atom;
|
||||
atom->maxspecial = old->maxspecial;
|
||||
|
||||
// store old simulation box
|
||||
|
||||
int triclinic = domain->triclinic;
|
||||
@ -224,6 +230,12 @@ void Replicate::command(int narg, char **arg)
|
||||
else n = static_cast<int> (LB_FACTOR * atom->natoms / nprocs);
|
||||
|
||||
atom->allocate_type_arrays();
|
||||
|
||||
// allocate atom arrays to size N, rounded up by AtomVec->DELTA
|
||||
|
||||
bigint nbig = n;
|
||||
nbig = atom->avec->roundup(nbig);
|
||||
n = static_cast<int> (nbig);
|
||||
atom->avec->grow(n);
|
||||
n = atom->nmax;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user