1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_import_fields.F,v 1.3 2009/12/25 19:44:35 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: ATM_IMPORT_FIELDS |
8 |
C !INTERFACE: |
9 |
SUBROUTINE ATM_IMPORT_FIELDS( myThid ) |
10 |
|
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 |
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 |
C !INPUT/OUTPUT PARAMETERS: |
32 |
C == Routine arguments == |
33 |
C myThid :: my Thread Id number |
34 |
INTEGER myThid |
35 |
CEOP |
36 |
|
37 |
#ifdef COMPONENT_MODULE |
38 |
C !LOCAL VARIABLES: |
39 |
C == Local variables == |
40 |
|
41 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
42 |
C does not allow asynchronous extraction of data, so ordering |
43 |
C has to be consistent with ordering coupling layer. |
44 |
|
45 |
_BARRIER |
46 |
_BEGIN_MASTER( myThid ) |
47 |
|
48 |
C- Receive ocean mixed-layer thickness from coupling layer. |
49 |
CALL COMPRECV_R8TILES( atmMxlDName, |
50 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, ocMxlD ) |
51 |
|
52 |
C- Receive ocean surface temperatures from coupling layer. |
53 |
CALL COMPRECV_R8TILES( atmSSTName, |
54 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, SSTocn ) |
55 |
|
56 |
C- Receive ocean surface salinity from coupling layer. |
57 |
CALL COMPRECV_R8TILES( atmSSSName, |
58 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, SSSocn ) |
59 |
|
60 |
C- Receive ocean surface velocity square from coupling layer. |
61 |
CALL COMPRECV_R8TILES( atmSSVsqName, |
62 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, vSqocn ) |
63 |
|
64 |
C- Receive air-sea flux of CO2 |
65 |
IF ( atmCpl_exchange_DIC ) THEN |
66 |
CALL COMPRECV_R8TILES( atmFCO2Name, |
67 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, flxCO2ocn ) |
68 |
ENDIF |
69 |
|
70 |
_END_MASTER( myThid ) |
71 |
_BARRIER |
72 |
|
73 |
#endif /* COMPONENT_MODULE */ |
74 |
|
75 |
RETURN |
76 |
END |