bond/react: bug in 'max_rxn' option

fix one-line bug in 'max_rxn' option of bond/react
This commit is contained in:
jrgissing
2019-08-22 22:36:48 -06:00
parent 7d0ac95121
commit ed02c25cfc

View File

@ -1209,7 +1209,7 @@ void FixBondReact::superimpose_algorithm()
rxn_by_proc[j] = -1; // corresponds to ghostly
int itemp = 0;
for (int j = 0; j < nprocs; j++)
for (int k = 0; k < local_rxn_count[j]; k++)
for (int k = 0; k < local_rxncounts[j]; k++)
rxn_by_proc[itemp++] = j;
std::random_shuffle(&rxn_by_proc[0],&rxn_by_proc[delta_rxn]);
for (int j = 0; j < nprocs; j++)