1 |
jmc |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_import_fields.F,v 1.1 2004/05/21 19:59:38 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
jmc |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
jmc |
1.2 |
CBOP |
7 |
|
|
C !ROUTINE: ATM_IMPORT_FIELDS |
8 |
|
|
C !INTERFACE: |
9 |
jmc |
1.1 |
SUBROUTINE ATM_IMPORT_FIELDS( myThid ) |
10 |
jmc |
1.2 |
|
11 |
|
|
C !DESCRIPTION: \bv |
12 |
|
|
C *==========================================================* |
13 |
|
|
C | SUBROUTINE ATM_IMPORT_FIELDS |
14 |
|
|
C | o Routine for importing ocean surface coupling fields |
15 |
|
|
C | from coupling layer. |
16 |
|
|
C *==========================================================* |
17 |
|
|
C | This version talks to the MIT Coupler. It uses the MIT |
18 |
|
|
C | Coupler "checkpoint1" library calls. |
19 |
|
|
C *==========================================================* |
20 |
|
|
C \ev |
21 |
|
|
|
22 |
|
|
C !USES: |
23 |
jmc |
1.1 |
IMPLICIT NONE |
24 |
|
|
|
25 |
|
|
C == Global variables == |
26 |
|
|
#include "SIZE.h" |
27 |
|
|
#include "EEPARAMS.h" |
28 |
|
|
#include "ATMCPL.h" |
29 |
|
|
#include "ATMIDS.h" |
30 |
|
|
|
31 |
jmc |
1.2 |
C !INPUT/OUTPUT PARAMETERS: |
32 |
jmc |
1.1 |
C == Routine arguments == |
33 |
jmc |
1.2 |
C myThid :: my Thread Id number |
34 |
jmc |
1.1 |
INTEGER myThid |
35 |
jmc |
1.2 |
CEOP |
36 |
jmc |
1.1 |
|
37 |
|
|
#ifdef COMPONENT_MODULE |
38 |
|
|
C == Local variables == |
39 |
|
|
|
40 |
|
|
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
41 |
|
|
C does not allow asynchronous extraction of data, so ordering |
42 |
|
|
C has to be consistent with ordering coupling layer. |
43 |
|
|
|
44 |
|
|
C- Receive ocean mixed-layer thickness from coupling layer. |
45 |
|
|
CALL COMPRECV_R8TILES( atmMxlDName, |
46 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, ocMxlD ) |
47 |
|
|
|
48 |
|
|
C- Receive ocean surface temperatures from coupling layer. |
49 |
|
|
CALL COMPRECV_R8TILES( atmSSTName, |
50 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, SSTocn ) |
51 |
|
|
|
52 |
|
|
C- Receive ocean surface salinity from coupling layer. |
53 |
|
|
CALL COMPRECV_R8TILES( atmSSSName, |
54 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, SSSocn ) |
55 |
|
|
|
56 |
|
|
C- Receive ocean surface velocity square from coupling layer. |
57 |
|
|
CALL COMPRECV_R8TILES( atmSSVsqName, |
58 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, vSqocn ) |
59 |
|
|
|
60 |
jmc |
1.2 |
C- Receive air-sea flux of CO2 |
61 |
|
|
IF ( atmCpl_exchange_DIC ) THEN |
62 |
|
|
CALL COMPRECV_R8TILES( atmFCO2Name, |
63 |
|
|
I sNx, OLx, sNy, OLy, 1, nSx, nSy, flxCO2ocn ) |
64 |
|
|
ENDIF |
65 |
|
|
|
66 |
jmc |
1.1 |
#endif /* COMPONENT_MODULE */ |
67 |
|
|
|
68 |
|
|
RETURN |
69 |
|
|
END |