Skip to content

Commit d7d466b

Browse files
committed
Couple of more specific debugs for the 2562 mesh
1 parent 5aef1c5 commit d7d466b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pmpo_MPMesh_assembly.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ void MPMesh::startCommunication(){
686686

687687
communicateFields();
688688

689-
bool debug = false;
689+
bool debug = true;
690690
if(! debug) return;
691691

692692
printf("Rank %d Owners %d Halos %d Total %d \n", self, numOwnersTot, numHalosTot, numElements);
@@ -717,12 +717,14 @@ void MPMesh::startCommunication(){
717717
if(self==1){
718718
for (int i=0; i<localIDBufs[0].size(); i++)
719719
printf("LIDs in owned rank 1 %d \n", localIDBufs[0][i]);
720+
printf("Rank %d local 0 13 Global %d %d\n", self, elm2global_host(0), elm2global_host(13));
720721
}
721722
MPI_Barrier(comm);
722723
//Checking if they have received them back
723724
if(self==0){
724725
for (int i=0; i<haloOwnerLocalIDs[1].size(); i++)
725726
printf("Owner LID in rank 0 %d \n", haloOwnerLocalIDs[1][i]);
727+
printf("Rank %d local 641 644 Global %d %d\n", self, elm2global_host(641), elm2global_host(644));
726728
}
727729
MPI_Barrier(comm);
728730
//OwnerToHalos
@@ -840,7 +842,7 @@ void MPMesh::communicateFields(){
840842

841843
MPI_Waitall(requests.size(), requests.data(), MPI_STATUSES_IGNORE);
842844

843-
bool debug = true;
845+
bool debug = false;
844846
if(!debug) return;
845847

846848
if(self==0 || self==1){

0 commit comments

Comments
 (0)