mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9290 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
9cd44aec33
commit
78aaed5f22
|
@ -252,6 +252,19 @@ void PairHybrid::settings(int narg, char **arg)
|
|||
if (count == 1) multiple[i] = 0;
|
||||
}
|
||||
|
||||
// set pair flags from sub-style flags
|
||||
|
||||
flags();
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
set top-level pair flags from sub-style flags
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void PairHybrid::flags()
|
||||
{
|
||||
int m;
|
||||
|
||||
// set comm_forward, comm_reverse, comm_reverse_off to max of any sub-style
|
||||
|
||||
for (m = 0; m < nstyles; m++) {
|
||||
|
@ -635,6 +648,10 @@ void PairHybrid::read_restart(FILE *fp)
|
|||
}
|
||||
if (count == 1) multiple[i] = 0;
|
||||
}
|
||||
|
||||
// set pair flags from sub-style flags
|
||||
|
||||
flags();
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
|
|
@ -61,6 +61,7 @@ class PairHybrid : public Pair {
|
|||
int nallstyles;
|
||||
|
||||
void allocate();
|
||||
void flags();
|
||||
virtual void modify_requests();
|
||||
void build_styles();
|
||||
int known_style(char *);
|
||||
|
|
Loading…
Reference in New Issue