forked from lijiext/lammps
for atom style template number of bonds does not depend on newton_bond
This commit is contained in:
parent
8f5d11c0c5
commit
2e86cb4176
|
@ -793,7 +793,7 @@ void ReadData::command(int narg, char **arg)
|
|||
special.build();
|
||||
}
|
||||
|
||||
// for atom style template systems, count total bonds,angles,etc
|
||||
// for atom style template just count total bonds, etc. from template(s)
|
||||
|
||||
if (atom->molecular == Atom::TEMPLATE) {
|
||||
Molecule **onemols = atom->avec->onemols;
|
||||
|
@ -821,13 +821,6 @@ void ReadData::command(int narg, char **arg)
|
|||
MPI_Allreduce(&ndihedrals,&atom->ndihedrals,1,MPI_LMP_BIGINT,MPI_SUM,world);
|
||||
MPI_Allreduce(&nimpropers,&atom->nimpropers,1,MPI_LMP_BIGINT,MPI_SUM,world);
|
||||
|
||||
if (!force->newton_bond) {
|
||||
atom->nbonds /= 2;
|
||||
atom->nangles /= 3;
|
||||
atom->ndihedrals /= 4;
|
||||
atom->nimpropers /= 4;
|
||||
}
|
||||
|
||||
if (me == 0) {
|
||||
std::string mesg;
|
||||
|
||||
|
|
Loading…
Reference in New Issue