Skip to content

Commit

Permalink
corrected prtinfs and long int...
Browse files Browse the repository at this point in the history
  • Loading branch information
janhclem committed Feb 27, 2025
1 parent 9d842b6 commit 7636cd8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -12403,7 +12403,9 @@ void dd_communicate_particles_cleo(

for (int iq=1; iq < 8 ; iq++) {
if (iq==4 || iq==7) {
printf("q[%d]: %lu, target_rank: %d\n",iq, (long unsigned int)(*particles[ip_ap].q[iq])
long unsigned int* tmp_ptr = (long unsigned int*) particles[ip_ap].q[iq];
long unsigned int tmp = *tmp_ptr;
printf("q[%d]: %lu, target_rank: %d\n",iq, tmp
, target_ranks[ip_ap]);
} else {
printf("q[%d]: %f, target_rank: %d\n",iq, *particles[ip_ap].q[iq]
Expand Down Expand Up @@ -12550,8 +12552,9 @@ void dd_communicate_particles_cleo(

for (int iq=1; iq < 8 ; iq++) {
if (iq==4 || iq==7) {
printf("q[%d]: %lu, target_rank: %d\n",iq, (long unsigned int)(*particles[ip_ap_rec].q[iq])
, target_ranks[ip_ap_rec]);
long unsigned int* tmp_ptr = (long unsigned int*) particles[ip_ap_rec].q[iq];
long unsigned int tmp = *tmp_ptr;
printf("q[%d]: %lu, target_rank: %d\n", iq, tmp, target_ranks[ip_ap_rec]);
} else {
printf("q[%d]: %f, target_rank: %d\n",iq, *particles[ip_ap_rec].q[iq]
, target_ranks[ip_ap_rec]);
Expand Down

0 comments on commit 7636cd8

Please sign in to comment.