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

This commit is contained in:
sjplimp 2007-12-07 14:56:45 +00:00
parent 50ed11cfa9
commit 39250b2abf
3 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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();

View File

@ -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;