need to copy maxspecial and "extra" data to do a proper recreation

This commit is contained in:
Axel Kohlmeyer 2020-04-20 15:27:30 -04:00
parent 0766350838
commit 1c15ba88f3
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 6 additions and 0 deletions

View File

@ -196,6 +196,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;