1 |
jmc |
1.3 |
C $Header: $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
jscott |
1.1 |
#include "ATM2D_OPTIONS.h" |
5 |
|
|
#ifdef ATM2D_MPI_ON |
6 |
|
|
|
7 |
|
|
CStartOfInterface |
8 |
jmc |
1.3 |
SUBROUTINE CPL_RECV_OCN_FIELDS |
9 |
jscott |
1.1 |
C /==========================================================\ |
10 |
|
|
C | SUBROUTINE CPL_RECV_OCN_FIELDS | |
11 |
|
|
C | o Routine for receiving surface fields from ocean | |
12 |
|
|
C | component. | |
13 |
|
|
C |==========================================================| |
14 |
|
|
C | This version talks to the MITgcm general circulation | |
15 |
|
|
C | model. | |
16 |
|
|
C \==========================================================/ |
17 |
|
|
IMPLICIT NONE |
18 |
|
|
|
19 |
|
|
C == Global variables == |
20 |
|
|
#include "OCNSIZE.h" |
21 |
|
|
#include "OCNVARS.h" |
22 |
|
|
#include "OCNIDS.h" |
23 |
|
|
|
24 |
|
|
C == Routine arguments == |
25 |
|
|
|
26 |
|
|
C == Local variables == |
27 |
|
|
|
28 |
|
|
CEndOfInterface |
29 |
|
|
|
30 |
|
|
C Receive Ocean mixed-layer depths from ocean component |
31 |
jmc |
1.3 |
CALL COUPRECV_R8TILES( ocnCompName, ocnMxlDName, |
32 |
|
|
I Nx_ocn, Ny_ocn, |
33 |
jscott |
1.1 |
O OcMxlD_ocn ) |
34 |
|
|
|
35 |
|
|
C Receive sea surface temperature from ocean component |
36 |
jmc |
1.3 |
CALL COUPRECV_R8TILES( ocnCompName, ocnSSTName, |
37 |
|
|
I Nx_ocn, Ny_ocn, |
38 |
jscott |
1.1 |
O SST_ocn ) |
39 |
|
|
|
40 |
|
|
C Receive sea surface salinity from ocean component |
41 |
jmc |
1.3 |
CALL COUPRECV_R8TILES( ocnCompName, ocnSSSName, |
42 |
|
|
I Nx_ocn, Ny_ocn, |
43 |
jscott |
1.1 |
O SSS_ocn ) |
44 |
|
|
|
45 |
|
|
C Receive sea surface velocity square from ocean component |
46 |
jmc |
1.3 |
CALL COUPRECV_R8TILES( ocnCompName, ocnSSVsqName, |
47 |
|
|
I Nx_ocn, Ny_ocn, |
48 |
jscott |
1.1 |
O vSq_ocn ) |
49 |
|
|
|
50 |
jscott |
1.2 |
IF ( ocnCpl_exchange_DIC ) THEN |
51 |
|
|
C Receive ocn->atm flux of CO2 from ocean component |
52 |
jmc |
1.3 |
CALL COUPRECV_R8TILES( ocnCompName, ocnFCO2Name, |
53 |
|
|
I Nx_ocn, Ny_ocn, |
54 |
jscott |
1.2 |
O fluxCO2_ocn ) |
55 |
|
|
ENDIF |
56 |
jscott |
1.1 |
|
57 |
|
|
RETURN |
58 |
|
|
END |
59 |
|
|
|
60 |
|
|
#endif |