1 |
jscott |
1.1 |
#include "ctrparam.h" |
2 |
|
|
#ifdef OCEAN_3D |
3 |
|
|
# include "ATM2D_OPTIONS.h" |
4 |
|
|
#endif |
5 |
|
|
C |
6 |
|
|
SUBROUTINE ATM2D_FINISH(myThid) |
7 |
|
|
C |==========================================================| |
8 |
jscott |
1.3 |
C | Called from forward_step_atm2d the last time through the | |
9 |
|
|
C | main loop -- thus, and opportunity to shut down MPI, do | |
10 |
|
|
C | cleanup/finish routines. | |
11 |
jscott |
1.1 |
C \==========================================================/ |
12 |
|
|
IMPLICIT NONE |
13 |
|
|
|
14 |
jscott |
1.2 |
# ifdef ATM2D_MPI_ON |
15 |
|
|
# include "mpif.h" |
16 |
|
|
# endif |
17 |
jscott |
1.1 |
|
18 |
|
|
C !INPUT/OUTPUT PARAMETERS: |
19 |
|
|
C == Routine arguments == |
20 |
|
|
C myIter - iteration counter for this thread |
21 |
|
|
C myTime - time counter for this thread |
22 |
|
|
C myThid - thread number for this instance of the routine. |
23 |
|
|
INTEGER myThid |
24 |
|
|
|
25 |
|
|
C === Local variables === |
26 |
|
|
#ifdef OCEAN_3D |
27 |
|
|
INTEGER rc |
28 |
|
|
#endif |
29 |
|
|
|
30 |
jscott |
1.2 |
#ifdef ATM2D_MPI_ON |
31 |
jscott |
1.1 |
CALL MPI_BARRIER( MPI_COMM_WORLD, rc ) |
32 |
|
|
CALL MPI_FINALIZE(rc) |
33 |
|
|
#endif |
34 |
|
|
|
35 |
|
|
RETURN |
36 |
|
|
END |