1 |
jmc |
1.3 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_ocn_coupler/cpl_send_atm_fields.F,v 1.1 2004/05/21 19:31:50 jmc Exp $ |
2 |
jmc |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE CPL_SEND_ATM_FIELDS |
8 |
|
|
C /==========================================================\ |
9 |
|
|
C | SUBROUTINE CPL_SEND_ATM_FIELDS | |
10 |
|
|
C | o Routine for sending ocean surface fields to atmos. | |
11 |
|
|
C | component. | |
12 |
|
|
C |==========================================================| |
13 |
|
|
C | This version talks to the MITgcm general circulation | |
14 |
|
|
C | model. | |
15 |
|
|
C \==========================================================/ |
16 |
|
|
IMPLICIT NONE |
17 |
|
|
|
18 |
|
|
C == Global variables == |
19 |
|
|
#include "ATMSIZE.h" |
20 |
|
|
#include "ATMVARS.h" |
21 |
|
|
#include "ATMIDS.h" |
22 |
|
|
#include "OCNSIZE.h" |
23 |
|
|
#include "OCNVARS.h" |
24 |
|
|
|
25 |
|
|
C == Routine arguments == |
26 |
|
|
|
27 |
|
|
C == Local variables == |
28 |
|
|
|
29 |
|
|
CEndOfInterface |
30 |
|
|
|
31 |
|
|
C-- Map ocean mixed-layer depth onto atmos. grid |
32 |
|
|
CALL OCN_TO_ATM_MAPXYR8( |
33 |
|
|
I Nx_ocn, Ny_ocn, OcMxlD_ocn, Nx_atm, Ny_atm, |
34 |
|
|
O OcMxlD_atm ) |
35 |
|
|
C Send ocean mixed-layer depth to atmos. component |
36 |
|
|
CALL COUPSEND_R8TILES( atmCompName, atmMxlDName, |
37 |
|
|
I Nx_atm, Ny_atm, OcMxlD_atm ) |
38 |
|
|
|
39 |
|
|
C-- Map ocean surface temperature onto atmos. grid |
40 |
|
|
CALL OCN_TO_ATM_MAPXYR8( |
41 |
|
|
I Nx_ocn, Ny_ocn, SST_ocn, Nx_atm, Ny_atm, |
42 |
|
|
O SST_atm ) |
43 |
|
|
C Send SST to atmos. component |
44 |
|
|
CALL COUPSEND_R8TILES( atmCompName, atmSSTName, |
45 |
|
|
I Nx_atm, Ny_atm, SST_atm ) |
46 |
|
|
|
47 |
|
|
C-- Map ocean surface salinity onto atmos. grid |
48 |
|
|
CALL OCN_TO_ATM_MAPXYR8( |
49 |
|
|
I Nx_ocn, Ny_ocn, SSS_ocn, Nx_atm, Ny_atm, |
50 |
|
|
O SSS_atm ) |
51 |
|
|
C Send SSS to atmos. component |
52 |
|
|
CALL COUPSEND_R8TILES( atmCompName, atmSSSName, |
53 |
|
|
I Nx_atm, Ny_atm, SSS_atm ) |
54 |
|
|
|
55 |
|
|
C-- Map ocean surface velocity square onto atmos. grid |
56 |
|
|
CALL OCN_TO_ATM_MAPXYR8( |
57 |
|
|
I Nx_ocn, Ny_ocn, vSq_ocn, Nx_atm, Ny_atm, |
58 |
|
|
O vSq_atm ) |
59 |
|
|
C Send ocean surface velocity square to atmos. component |
60 |
|
|
CALL COUPSEND_R8TILES( atmCompName, atmSSVsqName, |
61 |
|
|
I Nx_atm, Ny_atm, vSq_atm ) |
62 |
|
|
|
63 |
|
|
RETURN |
64 |
|
|
END |