@@ -158,6 +158,7 @@ int hdisttostreamgrd(char *angfile, char *wfile, char *srcfile, char *dtsfile, i
158158 tiffIO w (wfile, FLOAT_TYPE);
159159 if (!ang.compareTiff (w)) {
160160 printf (" File sizes do not match\n %s\n " ,wfile);
161+ fflush (stdout);
161162 MPI_Abort (MCW,5 );
162163 return 1 ;
163164 }
@@ -441,6 +442,7 @@ int vdroptostreamgrd(char *angfile, char *felfile, char *srcfile, char *dtsfile,
441442 tiffIO fel (felfile, FLOAT_TYPE);
442443 if (!ang.compareTiff (fel)) {
443444 printf (" File sizes do not match\n %s\n " ,felfile);
445+ fflush (stdout);
444446 MPI_Abort (MCW,5 );
445447 return 1 ;
446448 }
@@ -452,6 +454,7 @@ int vdroptostreamgrd(char *angfile, char *felfile, char *srcfile, char *dtsfile,
452454 tiffIO src (srcfile, SHORT_TYPE);
453455 if (!ang.compareTiff (src)) {
454456 printf (" File sizes do not match\n %s\n " ,srcfile);
457+ fflush (stdout);
455458 MPI_Abort (MCW,5 );
456459 return 1 ;
457460 }
@@ -754,6 +757,7 @@ int pdisttostreamgrd(char *angfile, char *felfile, char *wfile, char *srcfile, c
754757 tiffIO fel (felfile, FLOAT_TYPE);
755758 if (!ang.compareTiff (fel)) {
756759 printf (" File sizes do not match\n %s\n " ,felfile);
760+ fflush (stdout);
757761 MPI_Abort (MCW,5 );
758762 return 1 ;
759763 }
@@ -767,6 +771,7 @@ int pdisttostreamgrd(char *angfile, char *felfile, char *wfile, char *srcfile, c
767771 tiffIO w (wfile, FLOAT_TYPE);
768772 if (!ang.compareTiff (w)) {
769773 printf (" File sizes do not match\n %s\n " ,wfile);
774+ fflush (stdout);
770775 MPI_Abort (MCW,5 );
771776 return 1 ;
772777 }
@@ -778,6 +783,7 @@ int pdisttostreamgrd(char *angfile, char *felfile, char *wfile, char *srcfile, c
778783 tiffIO src (srcfile, SHORT_TYPE);
779784 if (!ang.compareTiff (src)) {
780785 printf (" File sizes do not match\n %s\n " ,srcfile);
786+ fflush (stdout);
781787 MPI_Abort (MCW,5 );
782788 return 1 ;
783789 }
@@ -1121,6 +1127,7 @@ int sdisttostreamgrd(char *angfile, char *felfile, char *wfile, char *srcfile,
11211127 tiffIO fel (felfile, FLOAT_TYPE);
11221128 if (!ang.compareTiff (fel)) {
11231129 printf (" File sizes do not match\n %s\n " ,felfile);
1130+ fflush (stdout);
11241131 MPI_Abort (MCW,5 );
11251132 return 1 ;
11261133 }
@@ -1134,6 +1141,7 @@ int sdisttostreamgrd(char *angfile, char *felfile, char *wfile, char *srcfile,
11341141 tiffIO w (wfile, FLOAT_TYPE);
11351142 if (!ang.compareTiff (w)) {
11361143 printf (" File sizes do not match\n %s\n " ,wfile);
1144+ fflush (stdout);
11371145 MPI_Abort (MCW,5 );
11381146 return 1 ;
11391147 }
@@ -1145,6 +1153,7 @@ int sdisttostreamgrd(char *angfile, char *felfile, char *wfile, char *srcfile,
11451153 tiffIO src (srcfile, SHORT_TYPE);
11461154 if (!ang.compareTiff (src)) {
11471155 printf (" File sizes do not match\n %s\n " ,srcfile);
1156+ fflush (stdout);
11481157 MPI_Abort (MCW,5 );
11491158 return 1 ;
11501159 }
0 commit comments