Skip to content

Commit f244aa1

Browse files
author
Alessandro Fanfarillo
committed
Fixed bug on number of failed images
1 parent 5ae617c commit f244aa1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mpi/mpi_caf.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ static void verbose_comm_errhandler(MPI_Comm* pcomm, int* err, ...){
131131
int nf,nc,i;
132132
MPI_Group group_c, group_f;
133133
comm = *pcomm;
134-
135-
/* memset(ranks_gf,0,sizeof(int)*caf_num_images); */
136-
/* memset(ranks_gc,0,sizeof(int)*caf_num_images); */
137134

138135
MPIX_Comm_failure_ack(comm);
139136
MPIX_Comm_failure_get_acked(comm, &group_f);
@@ -146,7 +143,9 @@ static void verbose_comm_errhandler(MPI_Comm* pcomm, int* err, ...){
146143
for(i = 0; i < nf; i++)
147144
ranks_gc[i]++;
148145

149-
n_failed_imgs += nf;
146+
printf("numero failed images %d\n",n_failed_imgs);
147+
148+
n_failed_imgs = nf;
150149
error_called = 1;
151150
}
152151

0 commit comments

Comments
 (0)