1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/ocn_import_atmconfig.F,v 1.3 2013/12/02 22:16:19 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "OCN_CPL_OPTIONS.h" |
5 |
|
6 |
CBOP 0 |
7 |
C !ROUTINE: OCN_IMPORT_ATMCONFIG |
8 |
|
9 |
C !INTERFACE: |
10 |
SUBROUTINE OCN_IMPORT_ATMCONFIG( myThid ) |
11 |
|
12 |
C !DESCRIPTION: |
13 |
C *==========================================================* |
14 |
C | SUBROUTINE OCN_IMPORT_ATMCONFIG |
15 |
C | o Routine for importing atmos. config |
16 |
C | into ocean component. |
17 |
C *==========================================================* |
18 |
C | This version talks to the MIT Coupler. It uses the |
19 |
C | MIT Coupler "checkpoint 1" library calls. |
20 |
C *==========================================================* |
21 |
|
22 |
C !USES: |
23 |
IMPLICIT NONE |
24 |
C == Global variables == |
25 |
#include "SIZE.h" |
26 |
#include "EEPARAMS.h" |
27 |
#include "ATMIDS.h" |
28 |
#include "OCNCPL.h" |
29 |
|
30 |
C !INPUT/OUTPUT PARAMETERS: |
31 |
C == Routine arguments == |
32 |
C myThid :: Thread number for this instance of the routine |
33 |
INTEGER myThid |
34 |
CEOP |
35 |
|
36 |
C !LOCAL VARIABLES: |
37 |
C == Local variables == |
38 |
C i,j,bi,bj :: Loop counters |
39 |
INTEGER i,j,bi,bj |
40 |
|
41 |
C- Initialise land-mask |
42 |
DO bj=myByLo(myThid),myByHi(myThid) |
43 |
DO bi=myBxLo(myThid),myByLo(myThid) |
44 |
DO j=1-OLy,sNy+OLy |
45 |
DO i=1-OLx,sNx+OLx |
46 |
landMask(i,j,bi,bj) = 0. |
47 |
ENDDO |
48 |
ENDDO |
49 |
ENDDO |
50 |
ENDDO |
51 |
|
52 |
C- Receive atmos. model configuration info. |
53 |
_BARRIER |
54 |
_BEGIN_MASTER( myThid ) |
55 |
|
56 |
C o Import atmosphere model land-mask |
57 |
CALL COMPRECV_R8TILES( |
58 |
I atmLandName, sNx, OLx, sNy, OLy, 1, nSx, nSy, |
59 |
O landMask ) |
60 |
|
61 |
_END_MASTER( myThid ) |
62 |
_BARRIER |
63 |
|
64 |
RETURN |
65 |
END |