1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_seaice.F,v 1.1 2004/05/21 19:59:38 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
6 |
|
7 |
CBOP |
8 |
C !ROUTINE: ATM_STORE_WSPEED |
9 |
C !INTERFACE: |
10 |
SUBROUTINE ATM_STORE_WSPEED( bi,bj, |
11 |
I myTime, myIter, myThid ) |
12 |
|
13 |
C !DESCRIPTION: \bv |
14 |
C *==========================================================* |
15 |
C | SUBROUTINE ATM_STORE_WSPEED |
16 |
C | o Routine for saving atmos. surface wind-speed from AIM |
17 |
C | pkg for export to coupling layer. |
18 |
C *==========================================================* |
19 |
C | This version interfaces to the AIM package. |
20 |
C *==========================================================* |
21 |
C \ev |
22 |
|
23 |
C !USES: |
24 |
IMPLICIT NONE |
25 |
|
26 |
C == Global variables == |
27 |
#ifdef ALLOW_AIM |
28 |
# include "AIM_SIZE.h" |
29 |
#else |
30 |
# include "SIZE.h" |
31 |
#endif |
32 |
|
33 |
#include "EEPARAMS.h" |
34 |
#include "PARAMS.h" |
35 |
#include "CPL_PARAMS.h" |
36 |
#ifdef ALLOW_AIM |
37 |
# include "com_physvar.h" |
38 |
#endif |
39 |
C == Global variables for coupling interface == |
40 |
#include "ATMCPL.h" |
41 |
|
42 |
C !INPUT/OUTPUT PARAMETERS: |
43 |
C == Routine arguments == |
44 |
C bi,bj :: Tile indices |
45 |
C myTime :: Current model time |
46 |
C myIter :: Current timestep number |
47 |
C myThid :: my Thread Id number |
48 |
INTEGER bi, bj |
49 |
_RL myTime |
50 |
INTEGER myIter |
51 |
INTEGER myThid |
52 |
CEOP |
53 |
|
54 |
#ifdef ALLOW_AIM |
55 |
C == Local variables == |
56 |
C i,j :: Loop counters |
57 |
INTEGER i,j, ij |
58 |
_RL cplTimeFraction |
59 |
|
60 |
C o Accumulate Sea-Ice Mass from thSIce pkg that will be exported |
61 |
C to the coupling layer. seaIceMass is per surface unit, in kg/m2. |
62 |
cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter) |
63 |
sWSpeedTime(bi,bj) = sWSpeedTime(bi,bj) + cplTimeFraction |
64 |
DO j=1,sNy |
65 |
DO i=1,sNx |
66 |
ij = i + (j-1)*sNx |
67 |
sWSpeed(i,j,bi,bj) = sWSpeed(i,j,bi,bj) |
68 |
& + SPEED0(ij,myThid)*cplTimeFraction |
69 |
ENDDO |
70 |
ENDDO |
71 |
|
72 |
#endif /* ALLOW_AIM */ |
73 |
|
74 |
RETURN |
75 |
END |