Skip to content

Commit 7be04f9

Browse files
committed
More debugging
1 parent a591f11 commit 7be04f9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/pmpo_MPMesh.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ void MPMesh::CVTTrackingElmCenterBased(const int printVTPIndex){
127127
auto MPs2Elm = p_MPs->getData<MPF_Tgt_Elm_ID>();
128128
auto MPs2Proc = p_MPs->getData<MPF_Tgt_Proc_ID>();
129129
auto elm2Process = p_mesh->getElm2Process();
130-
130+
131+
assert(cudaDeviceSynchronize() == cudaSuccess);
132+
MPI_Barrier(MPI_COMM_WORLD);
133+
printf("FooTracking \n");
134+
131135
Kokkos::parallel_for("countProcess", numElms, KOKKOS_LAMBDA(const int iElm){
132136
int pp_id=elm2Process(iElm);
133137
printf("Mesh elm %d owning element %d \n", iElm, pp_id);
@@ -332,7 +336,7 @@ void MPMesh::push(){
332336
static int count=0;
333337
std::cout<<__FUNCTION__<<" "<<count<<std::endl;
334338
count++;
335-
if(count>1) exit(1);
339+
//if(count>1) exit(1);
336340
Kokkos::Timer timer;
337341
p_mesh->computeRotLatLonIncr();
338342

src/pmpo_c.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void polympo_createMPs_f(MPMesh_ptr p_mpmesh,
7070
//the mesh must be fixed/set before adding MPs
7171
auto p_mesh = ((polyMPO::MPMesh*)p_mpmesh)->p_mesh;
7272
PMT_ALWAYS_ASSERT(!p_mesh->meshEditable());
73-
PMT_ALWAYS_ASSERT(p_mesh->getNumElements() == numElms);
73+
//PMT_ALWAYS_ASSERT(p_mesh->getNumElements() == numElms);
7474

7575
//Find the total no of MPs across all ranks
7676
//And loop over all MPs and find the smallest element id associated across a MP
@@ -84,6 +84,7 @@ void polympo_createMPs_f(MPMesh_ptr p_mpmesh,
8484
}
8585
}
8686
}
87+
printf("Num Active MPs and minElmId %d %d\n", numActiveMPs, minElmID);
8788
long long globalNumActiveMPs = 0;
8889
int globalMinElmID;
8990
MPI_Allreduce(&numActiveMPs, &globalNumActiveMPs, 1, MPI_LONG_LONG_INT, MPI_SUM, MPI_COMM_WORLD);
@@ -98,6 +99,7 @@ void polympo_createMPs_f(MPMesh_ptr p_mpmesh,
9899
break;
99100
}
100101
}
102+
printf("First elem with MP %d\n", firstElmWithMPs);
101103
int globalFirstElmWithMPs;
102104
MPI_Allreduce(&firstElmWithMPs, &globalFirstElmWithMPs, 1, MPI_INT, MPI_MIN, MPI_COMM_WORLD);
103105

0 commit comments

Comments
 (0)