File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2721,13 +2721,16 @@ PREFIX (image_status) (int image)
2721
2721
return res ;
2722
2722
}
2723
2723
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 )),
2726
2726
int kind __attribute__ ((unused )))
2727
2727
{
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 ;
2731
2730
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 ;
2733
2736
}
You can’t perform that action at this time.
0 commit comments