/[MITgcm]/MITgcm/pkg/aim_compon_interf/atm_store_fracice.F
ViewVC logotype

Contents of /MITgcm/pkg/aim_compon_interf/atm_store_fracice.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu May 16 20:56:59 2013 UTC (11 years ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
rename pkg/aim_compon_interf to pkg/atm_compon_interf (to be used with other
 atmospheric physics pkg) but by-pass CVS to get the new pkg so that
 we keep the history.

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_fracice.F,v 1.1 2007/06/18 21:28:52 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

  ViewVC Help
Powered by ViewVC 1.1.22