Skip to content

Commit f0a24c8

Browse files
author
Alessandro Fanfarillo
committed
Fixed bug in failed_images
1 parent c2373cf commit f0a24c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpi/mpi_caf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,8 +2809,8 @@ PREFIX (failed_images) (gfc_descriptor_t *array, int team __attribute__ ((unused
28092809
memcpy(mem,ranks_gc,n_failed_imgs*sizeof(int));
28102810
qsort(mem,n_failed_imgs,sizeof(int),cmpfunc);
28112811
array->dtype = 265;
2812-
array->dim[0].lower_bound = 1;
2813-
array->dim[0]._ubound = n_failed_imgs;
2812+
array->dim[0].lower_bound = 0;
2813+
array->dim[0]._ubound = n_failed_imgs-1;
28142814
array->dim[0]._stride = 1;
28152815
array->offset = -1;
28162816
}

0 commit comments

Comments
 (0)