add missing lines for atom_vec comm bugfix

This commit is contained in:
Axel Kohlmeyer
2020-06-30 19:20:34 -04:00
parent 503a1f2246
commit 971ca4fe44

View File

@ -223,6 +223,7 @@ void AtomVecHybrid::process_args(int narg, char **arg)
// set bonus_flag if any substyle has bonus data
// set nstyles_bonus & styles_bonus
// sum two sizes over contributions from each substyle with bonus data.
nstyles_bonus = 0;
for (int k = 0; k < nstyles; k++)
@ -232,6 +233,8 @@ void AtomVecHybrid::process_args(int narg, char **arg)
bonus_flag = 1;
styles_bonus = new AtomVec*[nstyles_bonus];
nstyles_bonus = 0;
size_forward_bonus = 0;
size_border_bonus = 0;
for (int k = 0; k < nstyles; k++) {
if (styles[k]->bonus_flag) {
styles_bonus[nstyles_bonus++] = styles[k];