4 |
#include "PACKAGES_CONFIG.h" |
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
6 |
|
|
7 |
CStartOfInterface |
CBOP 0 |
8 |
|
C !ROUTINE: OCN_IMPORT_FIELDS |
9 |
|
|
10 |
|
C !INTERFACE: |
11 |
SUBROUTINE OCN_IMPORT_FIELDS( myThid ) |
SUBROUTINE OCN_IMPORT_FIELDS( myThid ) |
|
C /==========================================================\ |
|
|
C | SUBROUTINE OCN_IMPORT_FIELDS | |
|
|
C | o Routine for importing fields (e.g. surface fluxes) | |
|
|
C | from coupling layer. | |
|
|
C |==========================================================| |
|
|
C | This version talks to the MIT Coupler. It uses the | |
|
|
C | MIT Coupler "checkpoint 1" library calls. | |
|
|
C \==========================================================/ |
|
|
IMPLICIT NONE |
|
12 |
|
|
13 |
|
C !DESCRIPTION: |
14 |
|
C *==========================================================* |
15 |
|
C | SUBROUTINE OCN_IMPORT_FIELDS |
16 |
|
C | o Routine for importing fields (e.g. surface fluxes) |
17 |
|
C | from coupling layer. |
18 |
|
C *==========================================================* |
19 |
|
C | This version talks to the MIT Coupler. It uses the |
20 |
|
C | MIT Coupler "checkpoint 1" library calls. |
21 |
|
C *==========================================================* |
22 |
|
|
23 |
|
C !USES: |
24 |
|
IMPLICIT NONE |
25 |
C == Global variables == |
C == Global variables == |
26 |
#include "SIZE.h" |
#include "SIZE.h" |
27 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
28 |
#include "OCNIDS.h" |
#include "OCNIDS.h" |
29 |
#include "OCNCPL.h" |
#include "OCNCPL.h" |
30 |
|
|
31 |
|
C !INPUT/OUTPUT PARAMETERS: |
32 |
C == Routine arguments == |
C == Routine arguments == |
33 |
C myThid - Thread number for this instance of the routine |
C myThid :: Thread number for this instance of the routine |
34 |
INTEGER myThid |
INTEGER myThid |
35 |
CEndOfInterface |
CEOP |
36 |
|
|
37 |
|
#ifdef COMPONENT_MODULE |
38 |
|
C !LOCAL VARIABLES: |
39 |
|
|
40 |
C Note: 1) all fields will have been gridded onto ocean grid. |
C Note: 1) all fields will have been gridded onto ocean grid. |
41 |
C 2) MIT Coupler checkpoint1 does not allow asynchronous posting of |
C 2) MIT Coupler checkpoint1 does not allow asynchronous posting of |
42 |
C data, so ordering has to be consistent with coupling layer ordering |
C data, so ordering has to be consistent with coupling layer ordering |
43 |
|
|
44 |
|
_BARRIER |
45 |
|
_BEGIN_MASTER( myThid ) |
46 |
|
|
47 |
C- Receive Atmospheric Sea-Level pressure from coupling layer. |
C- Receive Atmospheric Sea-Level pressure from coupling layer. |
48 |
CALL COMPRECV_R8TILES( ocnSLPrName, |
CALL COMPRECV_R8TILES( ocnSLPrName, |
49 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
101 |
O fracIce ) |
O fracIce ) |
102 |
ENDIF |
ENDIF |
103 |
|
|
104 |
|
_END_MASTER( myThid ) |
105 |
|
_BARRIER |
106 |
|
|
107 |
|
#endif /* COMPONENT_MODULE */ |
108 |
|
|
109 |
RETURN |
RETURN |
110 |
END |
END |