1 |
C $Header: /u/gcmpack/MITgcm/pkg/atm_ocn_coupler/cpl_send_ocn_atmconfig.F,v 1.3 2006/06/15 23:29:17 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "ATM2D_OPTIONS.h" |
5 |
|
6 |
CBOP 0 |
7 |
C !ROUTINE: CPL_SEND_OCN_ATMCONFIG |
8 |
|
9 |
C !INTERFACE: |
10 |
SUBROUTINE CPL_SEND_OCN_ATMCONFIG |
11 |
|
12 |
C !DESCRIPTION: |
13 |
C *==========================================================* |
14 |
C | SUBROUTINE CPL_SEND_OCN_ATMCONFIG |
15 |
C | o Routine for sending atmos. config to ocean component. |
16 |
C *==========================================================* |
17 |
C | This version talks to the MITgcm general circulation |
18 |
C | model. For now just send atmosphere land/sea mask. |
19 |
C *==========================================================* |
20 |
|
21 |
#ifdef ATM2D_MPI_ON |
22 |
C !USES: |
23 |
IMPLICIT NONE |
24 |
C == Global variables == |
25 |
c#include "ATMSIZE.h" |
26 |
c#include "ATMVARS.h" |
27 |
#include "ATMIDS.h" |
28 |
#include "OCNSIZE.h" |
29 |
#include "OCNVARS.h" |
30 |
#include "OCNIDS.h" |
31 |
|
32 |
C !INPUT/OUTPUT PARAMETERS: |
33 |
C !LOCAL VARIABLES: |
34 |
INTEGER i,j |
35 |
CEOP |
36 |
|
37 |
C Map atmos. depth map onto ocean grid |
38 |
c CALL ATM_TO_OCN_MAPXYR8( |
39 |
c I Nx_atm, Ny_atm, |
40 |
c I landMask_atm, |
41 |
c I Nx_ocn, Ny_ocn, |
42 |
c O landMask_ocn) |
43 |
DO i=1,Nx_ocn |
44 |
DO j=1,Ny_ocn |
45 |
landMask_ocn(i,j)= 0.5 !ocean code checks for this |
46 |
ENDDO |
47 |
ENDDO |
48 |
|
49 |
C Send atmos. config to ocean component |
50 |
CALL COUPSEND_R8TILES( ocnCompName, atmLandName, Nx_ocn, Ny_ocn, |
51 |
& landMask_ocn ) |
52 |
|
53 |
#endif /* ATM2D_MPI_ON */ |
54 |
|
55 |
RETURN |
56 |
END |