Skip to content

Commit 9dd7c62

Browse files
authored
Update Domain.cpp
1 parent 9e6f987 commit 9dd7c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Domain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ void Domain::cartInfo() {
100100
int neighCoords_[3];
101101
for (int i = 0; i < 3; ++i){
102102
*Log+10<<TAG <<"Prev / This / Next ["<<i<<"]" ;
103-
MPI_Cart_coords(cartComm_, neighRankPrev_[i], 3, neighCoords_+i);
103+
MPI_Cart_coords(cartComm_, neighRankPrev_[i], 3, neighCoords_);
104104
*Log<<"("<< neighCoords_ [0] <<" "<< neighCoords_ [1] <<" "<< neighCoords_ [2] <<") ";
105105
*Log<<"("<< cartCoords_ [0] <<" "<< cartCoords_ [1] <<" "<< cartCoords_ [2] <<") ";
106-
MPI_Cart_coords(cartComm_, neighRankNext_[i], 3, neighCoords_+i);
106+
MPI_Cart_coords(cartComm_, neighRankNext_[i], 3, neighCoords_);
107107
*Log<<"("<< neighCoords_ [0] <<" "<< neighCoords_ [1] <<" "<< neighCoords_ [2] <<") ";
108108
Log->fl();
109109
}

0 commit comments

Comments
 (0)