Skip to content

Commit

Permalink
Fix private variables in Comm::exchange
Browse files Browse the repository at this point in the history
value should be private, not shared.
Missed in Mantevo#2.
  • Loading branch information
Pennycook authored and Jason Sewall committed Feb 19, 2019
1 parent a1df9b6 commit 2357ab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions target/comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void Comm::exchange(Atom &atom)
}

int m, n, nsend, nrecv, nrecv1, nrecv2, nlocal;
MMD_float lo, hi, value;
MMD_float lo, hi;
MMD_float *x;

MPI_Request request;
Expand Down Expand Up @@ -630,7 +630,7 @@ void Comm::exchange(Atom &atom)
#pragma omp parallel for reduction(+:nrecv)
for(int i = 0; i < nrecv_atoms; ++i)
{
value = buf_recv[i * 7 + idim];
MMD_float value = buf_recv[i * 7 + idim];
if(value >= lo && value < hi)
{
nrecv++;
Expand All @@ -652,7 +652,7 @@ void Comm::exchange(Atom &atom)
#pragma omp parallel for
for(int i = 0; i < nrecv_atoms; ++i)
{
value = buf_recv[i * 7 + idim];
MMD_float value = buf_recv[i * 7 + idim];
if(value >= lo && value < hi)
{
int k;
Expand Down

0 comments on commit 2357ab8

Please sign in to comment.