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

This commit is contained in:
sjplimp
2015-04-03 15:51:23 +00:00
parent 33fd65949f
commit 3a0aa84dc4
3 changed files with 13 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include "domain.h"
#include "comm.h"
#include "special.h"
#include "accelerator_kokkos.h"
#include "memory.h"
#include "error.h"
@ -112,9 +113,13 @@ void Replicate::command(int narg, char **arg)
// old = original atom class
// atom = new replicated atom class
// also set atomKK for Kokkos version of Atom class
Atom *old = atom;
atom = new Atom(lmp);
if (lmp->kokkos) atom = new AtomKokkos(lmp);
else atom = new Atom(lmp);
atomKK = (AtomKokkos*) atom;
atom->settings(old);
atom->create_avec(old->atom_style,old->avec->nargcopy,old->avec->argcopy,0);