/[MITgcm]/MITgcm/pkg/thsice/thsice_get_precip.F
ViewVC logotype

Contents of /MITgcm/pkg/thsice/thsice_get_precip.F

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


Revision 1.2 - (show annotations) (download)
Thu May 31 15:19:49 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59c, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.1: +5 -5 lines
fix comments.

1 C $Header: /u/gcmpack/MITgcm/pkg/thsice/thsice_get_precip.F,v 1.1 2006/01/22 15:58:39 jmc Exp $
2 C $Name: $
3
4 #include "THSICE_OPTIONS.h"
5 #ifdef ALLOW_BULK_FORCE
6 #include "BULK_FORCE_OPTIONS.h"
7 #endif
8
9 CBOP
10 C !ROUTINE: THSICE_GET_PRECIP
11 C !INTERFACE:
12 SUBROUTINE THSICE_GET_PRECIP(
13 I iceMsk,
14 O precip, snowPrc, flxSW,
15 I iMin,iMax,jMin,jMax, bi,bj, myThid )
16 C !DESCRIPTION: \bv
17 C *==========================================================*
18 C | S/R THSICE_GET_PRECIP
19 C | Interface S/R : get Precip, Snow-precip
20 C | and downward short-wave
21 C | from pkg BULK_FORCE
22 C *==========================================================*
23 C *==========================================================*
24 C \ev
25
26 C !USES:
27 IMPLICIT NONE
28
29 C == Global data ==
30 #include "SIZE.h"
31 #include "EEPARAMS.h"
32 #ifdef ALLOW_BULK_FORCE
33 #include "BULKF_PARAMS.h"
34 #include "BULKF.h"
35 #endif
36
37 C !INPUT/OUTPUT PARAMETERS:
38 C === Routine arguments ===
39 C iceMsk :: sea-ice fraction: no ice=0, grid all ice 1 []
40 C precip :: Total Precipitation (including run-off) [kg/m2/s]
41 C snowPrc :: Snow Precipitation [kg/m2/s]
42 C flxSW :: Downward short-wave surface flux (+=down) [W/m2]
43 C iMin,iMax :: range of indices of computation domain
44 C jMin,jMax :: range of indices of computation domain
45 C bi,bj :: current tile indices
46 C myThid :: Thread no. that called this routine.
47 _RL iceMsk (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
48 _RL precip (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
49 _RL snowPrc(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
50 _RL flxSW (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
51 INTEGER iMin,iMax
52 INTEGER jMin,jMax
53 INTEGER bi,bj
54 INTEGER myThid
55 CEOP
56
57 #ifdef ALLOW_THSICE
58 #ifdef ALLOW_BULK_FORCE
59
60 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
61 C === Local variables ===
62 C i,j :: current grid point indices
63 INTEGER i,j
64
65 DO j = jMin, jMax
66 DO i = iMin, iMax
67 precip(i,j) = ( rain(i,j,bi,bj)+runoff(i,j,bi,bj) )*rhofw
68 flxSW (i,j) = solar(i,j,bi,bj)
69 IF ( iceMsk(i,j,bi,bj).GT.0. _d 0
70 & .AND. Tair(i,j,bi,bj).LE.Tf0kel ) THEN
71 snowPrc(i,j) = rain(i,j,bi,bj)*rhofw
72 ENDIF
73 ENDDO
74 ENDDO
75
76 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
77
78 #endif /* ALLOW_BULK_FORCE */
79 #endif /* ALLOW_THSICE */
80
81 RETURN
82 END

  ViewVC Help
Powered by ViewVC 1.1.22