git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1225 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -207,6 +207,15 @@ Atom::~Atom()
|
|||||||
delete [] primes;
|
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
|
create an AtomVec style
|
||||||
called from input script, restart file, replicate
|
called from input script, restart file, replicate
|
||||||
|
|||||||
@ -97,6 +97,7 @@ class Atom : protected Pointers {
|
|||||||
Atom(class LAMMPS *);
|
Atom(class LAMMPS *);
|
||||||
~Atom();
|
~Atom();
|
||||||
|
|
||||||
|
void settings(class Atom *);
|
||||||
void create_avec(const char *, int, char **);
|
void create_avec(const char *, int, char **);
|
||||||
class AtomVec *new_avec(const char *, int, char **);
|
class AtomVec *new_avec(const char *, int, char **);
|
||||||
void init();
|
void init();
|
||||||
|
|||||||
@ -113,6 +113,7 @@ void Replicate::command(int narg, char **arg)
|
|||||||
|
|
||||||
Atom *old = atom;
|
Atom *old = atom;
|
||||||
atom = new Atom(lmp);
|
atom = new Atom(lmp);
|
||||||
|
atom->settings(old);
|
||||||
|
|
||||||
int nstyles = 0;
|
int nstyles = 0;
|
||||||
char **keywords = NULL;
|
char **keywords = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user