Skip to content

Commit

Permalink
debugging...
Browse files Browse the repository at this point in the history
  • Loading branch information
janhclem committed Feb 27, 2025
1 parent b8a662b commit ed9c5fb
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -12386,19 +12386,23 @@ void dd_communicate_particles_cleo(

if (rank==0) {


int ip_ap = 0;
for (int ip = 0; ip < nparticles; ip++) {
if (target_ranks[ip] != rank) {
ip_ap = ip;
break;
int ip_ap = 0;
for (int ip = 0; ip < nparticles; ip++) {
if (target_ranks[ip] != rank) {
ip_ap = ip;
break;
}
}
}

printf("== Particle in MPTRAC==\n");
for (int iq=0; iq < 8 ; iq++) {
printf("q[%d]: %f, target_rank: %d\n",iq, *((double *)((unsigned int*) particles[ip_ap].q[iq])), target_ranks[ip_ap]);
}
printf("== Particle in MPTRAC==\n");

unsigned int* sdgbx_index_ptr_tmp = (unsigned int*) particles[ip_ap].q[0];
unsigned int sdgbx_index_tmp = *sdgbx_index_ptr_tmp;


for (int iq=1; iq < 8 ; iq++) {
printf("q[%d]: %d, target_rank: %d\n",iq, sdgbx_index_tmp, target_ranks[ip_ap]);
}
}

/* Sending... */
Expand Down

0 comments on commit ed9c5fb

Please sign in to comment.