Skip to content

Commit 232d234

Browse files
authored
Merge pull request #398 from sourceryinstitute/fix-error-stop-calls
Fix by replacing error_stop with terminate_internal.
2 parents 0101f0f + fec60f9 commit 232d234

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mpi/mpi_caf.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,14 +1809,14 @@ PREFIX (send) (caf_token_t token, size_t offset, int image_index,
18091809
check_image_health (image_index, stat);
18101810

18111811
if(!stat && ierr == STAT_FAILED_IMAGE)
1812-
error_stop (ierr);
1812+
terminate_internal (ierr, 1);
18131813

18141814
if(stat)
18151815
*stat = ierr;
18161816
#else
18171817
if (ierr != 0)
18181818
{
1819-
error_stop (ierr);
1819+
terminate_internal (ierr, 1);
18201820
return;
18211821
}
18221822
#endif
@@ -2112,14 +2112,14 @@ PREFIX (get) (caf_token_t token, size_t offset,
21122112
if(stat)
21132113
*stat = ierr;
21142114
else if(ierr == STAT_FAILED_IMAGE)
2115-
error_stop (ierr);
2115+
terminate_internal (STAT_FAILED_IMAGE, 1);
21162116
#else
21172117
CAF_Win_unlock (image_index - 1, *p);
21182118

21192119
if(stat)
21202120
*stat = ierr;
21212121
else if (ierr != 0)
2122-
error_stop (ierr);
2122+
terminate_internal (ierr, 1);
21232123
#endif
21242124

21252125
MPI_Type_free(&dt_s);
@@ -3607,7 +3607,7 @@ sync_images_internal (int count, int images[], int *stat, char *errmsg,
36073607
{
36083608
fprintf (stderr, "COARRAY ERROR: Invalid image index %d to SYNC "
36093609
"IMAGES", images[i]);
3610-
error_stop (1);
3610+
terminate_internal (1, 1);
36113611
}
36123612
}
36133613
#endif

0 commit comments

Comments
 (0)