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

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

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


Revision 1.1 - (show annotations) (download)
Sun Nov 23 01:20:13 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52j_post, checkpoint52e_post, hrcube_1, branch-netcdf, checkpoint52d_pre, checkpoint52l_post, checkpoint52k_post, checkpoint52d_post, checkpoint52b_post, checkpoint52f_post, checkpoint52c_post, hrcube5, checkpoint52i_post, checkpoint52j_pre, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3
Branch point for: netcdf-sm0
new pkg "thSIce" (replace therm_seaice).

1 C $Header: $
2 C $Name: $
3
4 #include "THSICE_OPTIONS.h"
5
6 SUBROUTINE THSICE_GET_BULKF(
7 I iceornot, Tsf,
8 O flxExceptSw, df0dT, evap,
9 I i,j,bi,bj,myThid )
10 C *==========================================================*
11 C | S/R THSICE_GET_BULKF
12 C *==========================================================*
13 C | Interface S/R : get Surface Fluxes from pkg BULK_FORCE
14 C *==========================================================*
15 IMPLICIT NONE
16
17 C == Global data ==
18 #ifdef ALLOW_BULK_FORCE
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "BULKF.h"
22 #endif
23
24 C === Routine arguments ===
25 C iceornot :: 0=open water, 1=ice cover
26 C Tsf :: surface (ice or snow) temperature
27 C flxExceptSw :: net (downward) surface heat flux, except short-wave (W/m2)
28 C df0dT :: deriv of flx wrt Tsf (W m-2 deg-1)
29 C evap :: -surface evaporation (<0 if evaporate)
30 C i,j, bi,bj :: current grid point indices
31 C myThid :: Thread no. that called this routine.
32 INTEGER i,j, bi,bj
33 INTEGER myThid
34 INTEGER iceornot
35 _RL Tsf
36 _RL flxExceptSw
37 _RL df0dT
38 _RL evap
39
40 #ifdef ALLOW_THSICE
41 #ifdef ALLOW_BULK_FORCE
42
43 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
44 C === Local variables ===
45
46 _RL flwup ! upward LW at surface (W m-2)
47 _RL flwNet_dwn ! net (downward) LW at surface (W m-2)
48 _RL fsh ! surface downward sensible heat (W m-2)
49 _RL flh ! surface downward latent heat (W m-2)
50 _RL ust, vst, ssq
51
52 ust = 0.
53 vst = 0.
54 ssq = 0.
55
56 CALL BULKF_FORMULA_LANL(uwind(i,j,bi,bj), vwind(i,j,bi,bj),
57 & wspeed(i,j,bi,bj),
58 & Tair(i,j,bi,bj), Qair(i,j,bi,bj), cloud(i,j,bi,bj), Tsf,
59 & flwup, flh, fsh, df0dT, ust, vst, evap, ssq, iceornot,
60 & readwindstress)
61
62 flwNet_dwn = flw(i,j,bi,bj) - flwup
63 flxExceptSw = flwNet_dwn + fsh + flh
64
65 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
66
67 #endif /* ALLOW_BULK_FORCE */
68 #endif /* ALLOW_THSICE */
69
70 RETURN
71 END

  ViewVC Help
Powered by ViewVC 1.1.22