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_FRACICE |
9 |
C !INTERFACE: |
10 |
SUBROUTINE ATM_STORE_FRACICE( bi,bj, |
11 |
I myTime, myIter, myThid ) |
12 |
|
13 |
C !DESCRIPTION: \bv |
14 |
C *==========================================================* |
15 |
C | SUBROUTINE ATM_STORE_FRACICE |
16 |
C | o Routine for saving atmos. Sea-Ice Fraction from thSIce |
17 |
C | pkg for export to coupling layer. |
18 |
C *==========================================================* |
19 |
C | This version interfaces to the THSICE package. |
20 |
C *==========================================================* |
21 |
C \ev |
22 |
|
23 |
C !USES: |
24 |
IMPLICIT NONE |
25 |
|
26 |
C == Global variables == |
27 |
#include "SIZE.h" |
28 |
|
29 |
#include "EEPARAMS.h" |
30 |
#include "PARAMS.h" |
31 |
#include "CPL_PARAMS.h" |
32 |
#ifdef ALLOW_THSICE |
33 |
#include "THSICE_PARAMS.h" |
34 |
#include "THSICE_VARS.h" |
35 |
#endif |
36 |
C == Global variables for coupling interface == |
37 |
#include "ATMCPL.h" |
38 |
|
39 |
C !INPUT/OUTPUT PARAMETERS: |
40 |
C == Routine arguments == |
41 |
C bi,bj :: Tile indices |
42 |
C myTime :: Current model time |
43 |
C myIter :: Current timestep number |
44 |
C myThid :: my Thread Id number |
45 |
INTEGER bi, bj |
46 |
_RL myTime |
47 |
INTEGER myIter |
48 |
INTEGER myThid |
49 |
CEOP |
50 |
|
51 |
#ifdef ALLOW_THSICE |
52 |
C == Local variables == |
53 |
C i,j :: Loop counters |
54 |
INTEGER i,j |
55 |
_RL cplTimeFraction |
56 |
|
57 |
C o Accumulate Sea-Ice Mass from thSIce pkg that will be exported |
58 |
C to the coupling layer. seaIceMass is per surface unit, in kg/m2. |
59 |
cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter) |
60 |
fracIceTime(bi,bj) = fracIceTime(bi,bj) + cplTimeFraction |
61 |
DO j=1,sNy |
62 |
DO i=1,sNx |
63 |
fracIce(i,j,bi,bj) = fracIce(i,j,bi,bj) |
64 |
& + iceMask(i,j,bi,bj)*cplTimeFraction |
65 |
ENDDO |
66 |
ENDDO |
67 |
|
68 |
#endif /* ALLOW_THSICE */ |
69 |
|
70 |
RETURN |
71 |
END |