Skip to content
Snippets Groups Projects
Commit 4bea3e5d authored by Rene Halver's avatar Rene Halver
Browse files

put debug messages in the correct environment

parent 944d11dd
No related branches found
No related tags found
1 merge request!24Fixes 042023
Pipeline #134532 passed
...@@ -459,9 +459,11 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() { ...@@ -459,9 +459,11 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() {
MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset); MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset);
#ifdef ALL_DEBUG_ENABLED
MPI_Barrier(this->globalComm); MPI_Barrier(this->globalComm);
if (this->localRank == 0) if (this->localRank == 0)
std::cout << "HISTOGRAM: neighbor_find y-communication" << std::endl; std::cout << "HISTOGRAM: neighbor_find y-communication" << std::endl;
#endif
// wait for communication // wait for communication
MPI_Wait(&sreq, &sstat); MPI_Wait(&sreq, &sstat);
MPI_Wait(&rreq, &rstat); MPI_Wait(&rreq, &rstat);
...@@ -505,9 +507,11 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() { ...@@ -505,9 +507,11 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() {
MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset); MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset);
#ifdef ALL_DEBUG_ENABLED
MPI_Barrier(this->globalComm); MPI_Barrier(this->globalComm);
if (this->localRank == 0) if (this->localRank == 0)
std::cout << "HISTOGRAM: neighbor_find y-communication 2" << std::endl; std::cout << "HISTOGRAM: neighbor_find y-communication 2" << std::endl;
#endif
// wait for communication // wait for communication
MPI_Wait(&sreq, &sstat); MPI_Wait(&sreq, &sstat);
MPI_Wait(&rreq, &rstat); MPI_Wait(&rreq, &rstat);
...@@ -567,9 +571,11 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() { ...@@ -567,9 +571,11 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() {
MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset); MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset);
#ifdef ALL_DEBUG_ENABLED
MPI_Barrier(this->globalComm); MPI_Barrier(this->globalComm);
if (this->localRank == 0) if (this->localRank == 0)
std::cout << "HISTOGRAM: neighbor_find z-communication" << std::endl; std::cout << "HISTOGRAM: neighbor_find z-communication" << std::endl;
#endif
// wait for communication // wait for communication
MPI_Wait(&sreq, &sstat); MPI_Wait(&sreq, &sstat);
MPI_Wait(&rreq, &rstat); MPI_Wait(&rreq, &rstat);
...@@ -637,16 +643,19 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() { ...@@ -637,16 +643,19 @@ template <class T, class W> void Histogram_LB<T, W>::find_neighbors() {
MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset); MPI_Cart_rank(this->globalComm, offset_coords, &rank_offset);
#ifdef ALL_DEBUG_ENABLED
MPI_Barrier(this->globalComm); MPI_Barrier(this->globalComm);
if (this->localRank == 0) if (this->localRank == 0)
std::cout << "HISTOGRAM: neighbor_find z-communication 2" << std::endl; std::cout << "HISTOGRAM: neighbor_find z-communication 2" << std::endl;
#endif
// wait for communication // wait for communication
MPI_Wait(&sreq, &sstat); MPI_Wait(&sreq, &sstat);
MPI_Wait(&rreq, &rstat); MPI_Wait(&rreq, &rstat);
#ifdef ALL_DEBUG_ENABLED
if (this->localRank == 0) if (this->localRank == 0)
std::cout << "HISTOGRAM: neighbor_find z-communication 2" << std::endl; std::cout << "HISTOGRAM: neighbor_find z-communication 2" << std::endl;
#endif
// iterate about neighbor borders to determine the neighborship relation // iterate about neighbor borders to determine the neighborship relation
nNeighbors.at(5) = 0; nNeighbors.at(5) = 0;
for (int y = 0; y < this->global_dims.at(1); ++y) { for (int y = 0; y < this->global_dims.at(1); ++y) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment