1 |
jmc |
1.1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/ocn_import_heatflux.F,v 1.1 2003/12/15 02:49:09 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE OCN_IMPORT_FIELDS( myThid ) |
8 |
|
|
C /==========================================================\ |
9 |
|
|
C | SUBROUTINE OCN_IMPORT_FIELDS | |
10 |
|
|
C | o Routine for importing fields (e.g. surface fluxes) | |
11 |
|
|
C | from coupling layer. | |
12 |
|
|
C |==========================================================| |
13 |
|
|
C | This version talks to the MIT Coupler. It uses the | |
14 |
|
|
C | MIT Coupler "checkpoint 1" library calls. | |
15 |
|
|
C \==========================================================/ |
16 |
|
|
IMPLICIT NONE |
17 |
|
|
|
18 |
|
|
C == Global variables == |
19 |
|
|
#include "SIZE.h" |
20 |
|
|
#include "EEPARAMS.h" |
21 |
|
|
#include "OCNIDS.h" |
22 |
|
|
#include "OCNCPL.h" |
23 |
|
|
|
24 |
|
|
C == Routine arguments == |
25 |
|
|
C myThid - Thread number for this instance of the routine |
26 |
|
|
INTEGER myThid |
27 |
|
|
CEndOfInterface |
28 |
|
|
|
29 |
|
|
C Note: 1) all fields will have been gridded onto ocean grid. |
30 |
|
|
C 2) MIT Coupler checkpoint1 does not allow asynchronous posting of |
31 |
|
|
C data, so ordering has to be consistent with coupling layer ordering |
32 |
|
|
|
33 |
|
|
C- Receive Atmospheric Sea-Level pressure from coupling layer. |
34 |
|
|
CALL COMPRECV_R8TILES( ocnSLPrName, |
35 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
36 |
|
|
O atmSLPr ) |
37 |
|
|
|
38 |
|
|
C- Receive surface heatflux from coupling layer. |
39 |
|
|
CALL COMPRECV_R8TILES( ocnHeatFluxName, |
40 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
41 |
|
|
O HeatFlux ) |
42 |
|
|
|
43 |
|
|
C- Receive net shortwave radiation from coupling layer. |
44 |
|
|
CALL COMPRECV_R8TILES( ocnQshortWaveName, |
45 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
46 |
|
|
O qShortWave ) |
47 |
|
|
|
48 |
|
|
C- Receive Zonal surface wind-stress from coupling layer. |
49 |
|
|
CALL COMPRECV_R8TILES( ocnTauXName, |
50 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
51 |
|
|
O tauX ) |
52 |
|
|
|
53 |
|
|
C- Receive Meridional surface wind-stress from coupling layer. |
54 |
|
|
CALL COMPRECV_R8TILES( ocnTauYName, |
55 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
56 |
|
|
O tauY ) |
57 |
|
|
|
58 |
|
|
C- Receive fresh water flux from coupling layer. |
59 |
|
|
CALL COMPRECV_R8TILES( ocnFWFluxName, |
60 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
61 |
|
|
O FWFlux ) |
62 |
|
|
|
63 |
|
|
C- Receive salt flux (sea-ice model) from coupling layer. |
64 |
|
|
CALL COMPRECV_R8TILES( ocnSaltFxName, |
65 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
66 |
|
|
O iceSaltFlx ) |
67 |
|
|
|
68 |
|
|
C- Receive sea-ice mass (sea-ice model) from coupling layer. |
69 |
|
|
CALL COMPRECV_R8TILES( ocnSeaIceName, |
70 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
71 |
|
|
O seaIceMass ) |
72 |
|
|
|
73 |
|
|
RETURN |
74 |
|
|
END |