1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_import_ocnconfig.F,v 1.1 2003/12/15 02:44:48 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE ATM_IMPORT_OCNCONFIG( myThid ) |
8 |
C /==========================================================\ |
9 |
C | SUBROUTINE ATM_IMPORT_OCNCONFIG | |
10 |
C | o Routine for importing ocean config into atmos. | |
11 |
C | component. | |
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 "ATMIDS.h" |
22 |
#include "ATMCPL.h" |
23 |
|
24 |
C == Routine arguments == |
25 |
C myThid - Thread number for this instance of the routine |
26 |
INTEGER myThid |
27 |
CEndOfInterface |
28 |
|
29 |
#ifdef COMPONENT_MODULE |
30 |
C == Local variables == |
31 |
C i,j,bi,bj - Loop counters |
32 |
INTEGER i,j,bi,bj |
33 |
|
34 |
C- Initialise mixed-layer depth |
35 |
DO bj=myByLo(myThid),myByHi(myThid) |
36 |
DO bi=myBxLo(myThid),myByLo(myThid) |
37 |
DO j=1-Oly,sNy+Oly |
38 |
DO i=1-Olx,sNx+Olx |
39 |
ocMxlD (i,j,bi,bj) = 0. |
40 |
ENDDO |
41 |
ENDDO |
42 |
ENDDO |
43 |
ENDDO |
44 |
|
45 |
C Receive ocean model configuration info. |
46 |
C o Import ocean model mixed-layer depth |
47 |
CALL COMPRECV_R8TILES( atmMxlDName, |
48 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, |
49 |
O ocMxlD ) |
50 |
|
51 |
#endif /* COMPONENT_MODULE */ |
52 |
|
53 |
RETURN |
54 |
END |