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 |
|
|
SUBROUTINE CPL_SEND_OCN_FIELDS |
9 |
|
|
C /==========================================================\ |
10 |
|
|
C | SUBROUTINE CPL_SEND_OCN_FIELDS | |
11 |
|
|
C | o Routine for sending surface flux to ocean component | |
12 |
|
|
C |==========================================================| |
13 |
|
|
C | This version talks to the MITgcm general circulation | |
14 |
|
|
C | model. | |
15 |
|
|
C \==========================================================/ |
16 |
|
|
IMPLICIT NONE |
17 |
|
|
|
18 |
|
|
C == Global variables == |
19 |
|
|
#include "OCNSIZE.h" |
20 |
|
|
#include "OCNVARS.h" |
21 |
|
|
#include "OCNIDS.h" |
22 |
|
|
|
23 |
|
|
C == Routine arguments == |
24 |
|
|
|
25 |
|
|
C == Local variables == |
26 |
|
|
|
27 |
|
|
CEndOfInterface |
28 |
|
|
|
29 |
|
|
C Send Sea Level atmos. pressure to ocean component |
30 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnSLPrName, |
31 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, atmSLPr_ocn ) |
32 |
|
|
|
33 |
|
|
C Send (net) heatflux. to ocean component |
34 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnHeatFluxName, |
35 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, HeatFlux_ocn ) |
36 |
|
|
|
37 |
|
|
C Send net shortwave radiation to ocean component |
38 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnQshortWaveName, |
39 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, qShortWave_ocn ) |
40 |
|
|
|
41 |
|
|
C Send Zonal momentum flux to ocean component |
42 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnTauXName, |
43 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, TauX_ocn ) |
44 |
|
|
|
45 |
|
|
C Send Meridional momentum flux to ocean component |
46 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnTauYName, |
47 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, TauY_ocn ) |
48 |
|
|
|
49 |
|
|
C Send E-P-R to ocean component |
50 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnFWFluxName, |
51 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, FWFlux_ocn ) |
52 |
|
|
|
53 |
|
|
C Send salt flux to ocean component |
54 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnSaltFxName, |
55 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, SaltFlx_ocn ) |
56 |
|
|
|
57 |
|
|
C Send sea-ice mass to ocean component |
58 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnSeaIceName, |
59 |
jscott |
1.1 |
I Nx_ocn, Ny_ocn, sIceMass_ocn ) |
60 |
|
|
|
61 |
jscott |
1.2 |
IF ( ocnCpl_exchange_DIC ) THEN |
62 |
|
|
|
63 |
|
|
C Send atmos CO2 to ocean component |
64 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnAirCO2Name, |
65 |
jscott |
1.2 |
I Nx_ocn, Ny_ocn, aCO2_ocn ) |
66 |
|
|
|
67 |
|
|
C Send surface windspeed to ocean component |
68 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnWSpdName, |
69 |
jscott |
1.2 |
I Nx_ocn, Ny_ocn, wSpeed_ocn ) |
70 |
|
|
|
71 |
|
|
C Send sea-ice fraction to ocean component |
72 |
jmc |
1.3 |
CALL COUPSEND_R8TILES( ocnCompName, ocnFIceName, |
73 |
jscott |
1.2 |
I Nx_ocn, Ny_ocn, SIceFrac_ocn ) |
74 |
|
|
|
75 |
jmc |
1.3 |
ENDIF |
76 |
|
|
|
77 |
jscott |
1.1 |
RETURN |
78 |
|
|
END |
79 |
|
|
|
80 |
|
|
#endif |
81 |
|
|
|