56 |
#ifndef ALWAYS_USE_MPI |
#ifndef ALWAYS_USE_MPI |
57 |
IF ( usingMPI ) THEN |
IF ( usingMPI ) THEN |
58 |
#endif |
#endif |
59 |
|
_BEGIN_MASTER(myThid) |
60 |
C better to avoid this call if multi-components set-up ; otherwise will |
C better to avoid this call if multi-components set-up ; otherwise will |
61 |
C hang here since procs of other comp. are not calling MPI_finalize now. |
C hang here since procs of other comp. are not calling MPI_finalize now. |
62 |
IF ( .NOT.( useCoupler |
IF ( .NOT.( useCoupler |
65 |
& ) THEN |
& ) THEN |
66 |
#ifdef ALLOW_OASIS |
#ifdef ALLOW_OASIS |
67 |
IF ( useOASIS ) CALL OASIS_ABORT |
IF ( useOASIS ) CALL OASIS_ABORT |
68 |
#endif /* ALLOW_OASIS */ |
#endif /* ALLOW_OASIS */ |
69 |
CALL MPI_FINALIZE ( mpiRC ) |
CALL MPI_FINALIZE ( mpiRC ) |
70 |
IF ( mpiRC .NE. MPI_SUCCESS ) THEN |
IF ( mpiRC .NE. MPI_SUCCESS ) THEN |
71 |
WRITE(msgBuf,'(A,I5)') |
WRITE(msgBuf,'(A,I5)') |
73 |
CALL PRINT_ERROR( msgBuf, myThid ) |
CALL PRINT_ERROR( msgBuf, myThid ) |
74 |
ENDIF |
ENDIF |
75 |
ENDIF |
ENDIF |
76 |
|
_END_MASTER(myThid) |
77 |
#ifndef ALWAYS_USE_MPI |
#ifndef ALWAYS_USE_MPI |
78 |
ENDIF |
ENDIF |
79 |
#endif |
#endif |