/[MITgcm]/MITgcm_contrib/dgoldberg/streamice/streamice_upd_ffrac_uncoupled.F
ViewVC logotype

Contents of /MITgcm_contrib/dgoldberg/streamice/streamice_upd_ffrac_uncoupled.F

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


Revision 1.5 - (show annotations) (download)
Thu Sep 27 20:29:01 2012 UTC (12 years, 10 months ago) by dgoldberg
Branch: MAIN
Changes since 1.4: +17 -5 lines
various changes

1 C $Header: /u/gcmpack/MITgcm_contrib/dgoldberg/streamice/streamice_upd_ffrac_uncoupled.F,v 1.4 2012/09/25 03:05:53 dgoldberg Exp $
2 C $Name: $
3
4
5 C this needs changes
6
7 #include "STREAMICE_OPTIONS.h"
8
9 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
10 CBOP 0
11 SUBROUTINE STREAMICE_UPD_FFRAC_UNCOUPLED ( myThid )
12
13 C !DESCRIPTION:
14 C Initialize STREAMICE variables and constants.
15
16 C !USES:
17 IMPLICIT NONE
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "STREAMICE.h"
22 #include "GRID.h"
23
24 C !INPUT PARAMETERS:
25 INTEGER myThid
26 CEOP
27
28 #ifdef ALLOW_STREAMICE
29
30 INTEGER bi, bj, i, j
31 _RL OD, rhoi, rhow
32
33 rhoi = streamice_density
34 rhow = streamice_density_ocean_avg
35
36 print *, "RLOWSI", R_low_si(20,1,1,1)
37
38 DO bj = myByLo(myThid), myByHi(myThid)
39 DO bi = myBxLo(myThid), myBxHi(myThid)
40 DO j=1-Oly,sNy+Oly
41 DO i=1-Olx,sNx+Olx
42 #ifdef USE_ALT_RLOW
43 OD = -1.0 * R_low_si (i,j,bi,bj) -
44 & H_streamice(i,j,bi,bj) * rhoi/rhow
45 #else
46 OD = -1.0 * R_low (i,j,bi,bj) -
47 & H_streamice(i,j,bi,bj) * rhoi/rhow
48 #endif
49
50
51 IF (OD .ge. 0. _d 0) THEN
52
53 c ice thickness does not take up whole ocean column -> floating
54 float_frac_streamice(i,j,bi,bj) = 0.0
55 #ifdef USE_ALT_RLOW
56 base_el_streamice(i,j,bi,bj) = R_low_si(i,j,bi,bj)+OD
57 #else
58 base_el_streamice(i,j,bi,bj) = R_low(i,j,bi,bj)+OD
59 #endif
60 surf_el_streamice(i,j,bi,bj) =
61 & (1-rhoi/rhow)*H_streamice(i,j,bi,bj)
62 ELSE
63
64
65 float_frac_streamice(i,j,bi,bj) = 1.0
66 #ifdef USE_ALT_RLOW
67 base_el_streamice(i,j,bi,bj) = R_low_si(i,j,bi,bj)
68 surf_el_streamice(i,j,bi,bj) = R_low_si(i,j,bi,bj)
69 #else
70 base_el_streamice(i,j,bi,bj) = R_low(i,j,bi,bj)
71 surf_el_streamice(i,j,bi,bj) = R_low(i,j,bi,bj)
72 #endif
73 & + H_streamice(i,j,bi,bj)
74 ENDIF
75 ENDDO
76 ENDDO
77 ENDDO
78 ENDDO
79
80 _EXCH_XY_RL(float_frac_streamice, myThid )
81 _EXCH_XY_RL(base_el_streamice, myThid )
82 _EXCH_XY_RL(surf_el_streamice, myThid )
83
84
85
86
87 #endif /* ALLOW_STREAMICE */
88
89 RETURN
90 END

  ViewVC Help
Powered by ViewVC 1.1.22