mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1225 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
50ed11cfa9
commit
39250b2abf
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue