Commit 39250b2a authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1225 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 50ed11cf
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -207,6 +207,15 @@ Atom::~Atom()
  delete [] primes;
}

/* ----------------------------------------------------------------------
   copy modify settings from old Atom class to current Atom class
------------------------------------------------------------------------- */

void Atom::settings(Atom *old)
{
  map_style = old->map_style;
}

/* ----------------------------------------------------------------------
   create an AtomVec style
   called from input script, restart file, replicate
+1 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ class Atom : protected Pointers {
  Atom(class LAMMPS *);
  ~Atom();

  void settings(class Atom *);
  void create_avec(const char *, int, char **);
  class AtomVec *new_avec(const char *, int, char **);
  void init();
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ void Replicate::command(int narg, char **arg)

  Atom *old = atom;
  atom = new Atom(lmp);
  atom->settings(old);

  int nstyles = 0;
  char **keywords = NULL;