update of COUPLE/simple examples

This commit is contained in:
Steven J Plimpton
2018-01-16 10:48:38 -07:00
parent e798cdf31f
commit 21ff4407ab
7 changed files with 48 additions and 36 deletions

View File

@ -715,12 +715,13 @@ void FixNeighHistory::set_arrays(int i)
int FixNeighHistory::pack_reverse_comm_size(int n, int first)
{
int i,last;
int dnump1 = dnum + 1;
int m = 0;
last = first + n;
for (i = first; i < last; i++)
m += 1 + (dnum+1)*npartner[i];
m += 1 + dnump1*npartner[i];
return m;
}