Skip to content

Commit b3d2f9e

Browse files
author
Alessandro Fanfarillo
committed
Working version of failed_images
1 parent b9d0761 commit b3d2f9e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/mpi/mpi_caf.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,13 +2721,16 @@ PREFIX (image_status) (int image)
27212721
return res;
27222722
}
27232723

2724-
int *
2725-
PREFIX (failed_images) (int *num_failed_images, int team __attribute__ ((unused)),
2724+
void
2725+
PREFIX (failed_images) (gfc_descriptor_t *array, int team __attribute__ ((unused)),
27262726
int kind __attribute__ ((unused)))
27272727
{
2728-
int *mem;
2729-
*num_failed_images = n_failed_imgs;
2730-
mem = (int *)calloc(n_failed_imgs,sizeof(int));
2728+
int *mem = (int *)calloc(n_failed_imgs,sizeof(int));
2729+
array->base_addr = mem;
27312730
memcpy(mem,ranks_gc,n_failed_imgs*sizeof(int));
2732-
return mem;
2731+
array->dtype = 265;
2732+
array->dim[0].lower_bound = 1;
2733+
array->dim[0]._ubound = n_failed_imgs;
2734+
array->dim[0]._stride = 1;
2735+
array->offset = -1;
27332736
}

0 commit comments

Comments
 (0)