Skip to content

Commit a8582e8

Browse files
committed
Before Phase 1
1 parent aeb3e65 commit a8582e8

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/pmpo_MPMesh.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ void MPMesh::push(){
369369
p_MPs->migrate();
370370
else
371371
p_MPs->rebuild();
372-
printf("Done till here 0\n");
373372

374373
p_MPs->updateMPElmID(); //update mpElm IDs slices
375374
reconstructSlices();
@@ -384,11 +383,11 @@ void MPMesh::push(){
384383
MPI_Comm comm = p_MPs->getMPIComm();
385384
int comm_rank;
386385
MPI_Comm_rank(comm, &comm_rank);
387-
printf("Rank %d PID %d on %s ready for attach\n", comm_rank, getpid(), hostname);
388-
fflush(stdout);
389-
if(count==480) sleep(100);
390-
391-
printf("Done till here\n");
386+
if(count==480){
387+
printf("Rank %d PID %d on %s ready for attach\n", comm_rank, getpid(), hostname);
388+
fflush(stdout);
389+
sleep(100);
390+
}
392391
pumipic::RecordTime("PolyMPO_push", timer.seconds());
393392
}
394393

src/pmpo_materialPoints.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ void MaterialPoints::migrate() {
151151
new_process(mp) = MPs2Proc(mp);
152152
if(rank!=new_process(mp)){
153153
mpAppID(mp)=-1;
154-
printf("Particle migrated and so its AppID is -1\n");
155154
}
156155
}
157156
};
@@ -200,7 +199,7 @@ void MaterialPoints::migrate() {
200199
std::vector<int> appIDs;
201200
for(int i=0; i<numReceivedMPs_host(0); i++){
202201
auto app_id_new = getNextAppID(receivedMPs2Elm_host(i)+1);
203-
printf("Trying to find ID for MP located in %d and it's %d \n", receivedMPs2Elm_host(i), app_id_new);
202+
printf("Finding ID for MP migrated to el %d in rank %d and it's %d \n", receivedMPs2Elm_host(i), rank, app_id_new);
204203
appIDs.push_back(app_id_new);
205204
}
206205
kkViewHostU<int*> appIDs_host(appIDs.data(), appIDs.size());
@@ -214,7 +213,6 @@ void MaterialPoints::migrate() {
214213
if (mpAppID(mp) == -1){
215214
auto count_temp=Kokkos::atomic_fetch_add(&counter(0), 1);
216215
mpAppID(mp)=appIDs_d(count_temp)-1;
217-
printf("Count_temp %d and new appID %d \n", count_temp, mpAppID(mp));
218216
}
219217
}
220218
};

0 commit comments

Comments
 (0)