56 |
#ifndef ALWAYS_USE_MPI |
#ifndef ALWAYS_USE_MPI |
57 |
IF ( usingMPI ) THEN |
IF ( usingMPI ) THEN |
58 |
#endif |
#endif |
59 |
|
C better to avoid this call if multi-components set-up ; otherwise will |
60 |
|
C hang here since procs of other comp. are not calling MPI_finalize now. |
61 |
|
IF ( .NOT.( useCoupler |
62 |
|
& .OR. useNEST_PARENT |
63 |
|
& .OR. useNEST_CHILD ) |
64 |
|
& ) THEN |
65 |
CALL MPI_FINALIZE ( mpiRC ) |
CALL MPI_FINALIZE ( mpiRC ) |
66 |
IF ( mpiRC .NE. MPI_SUCCESS ) THEN |
IF ( mpiRC .NE. MPI_SUCCESS ) THEN |
67 |
WRITE(msgBuf,'(A,I5)') |
WRITE(msgBuf,'(A,I5)') |
68 |
& 'S/R FIN_PROCS: MPI_FINALIZE return code', mpiRC |
& 'S/R FIN_PROCS: MPI_FINALIZE return code', mpiRC |
69 |
CALL PRINT_ERROR( msgBuf, myThid ) |
CALL PRINT_ERROR( msgBuf, myThid ) |
70 |
ENDIF |
ENDIF |
71 |
|
ENDIF |
72 |
#ifndef ALWAYS_USE_MPI |
#ifndef ALWAYS_USE_MPI |
73 |
ENDIF |
ENDIF |
74 |
#endif |
#endif |