1 |
dgoldberg |
1.5 |
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 |
heimbach |
1.1 |
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 |
dgoldberg |
1.5 |
print *, "RLOWSI", R_low_si(20,1,1,1) |
37 |
|
|
|
38 |
heimbach |
1.1 |
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 |
dgoldberg |
1.5 |
#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 |
heimbach |
1.1 |
OD = -1.0 * R_low (i,j,bi,bj) - |
47 |
|
|
& H_streamice(i,j,bi,bj) * rhoi/rhow |
48 |
dgoldberg |
1.5 |
#endif |
49 |
heimbach |
1.1 |
|
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 |
dgoldberg |
1.5 |
#ifdef USE_ALT_RLOW |
56 |
|
|
base_el_streamice(i,j,bi,bj) = R_low_si(i,j,bi,bj)+OD |
57 |
|
|
#else |
58 |
heimbach |
1.1 |
base_el_streamice(i,j,bi,bj) = R_low(i,j,bi,bj)+OD |
59 |
dgoldberg |
1.5 |
#endif |
60 |
heimbach |
1.1 |
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 |
dgoldberg |
1.5 |
#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 |
heimbach |
1.1 |
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 |
dgoldberg |
1.5 |
#endif |
73 |
heimbach |
1.1 |
& + H_streamice(i,j,bi,bj) |
74 |
|
|
ENDIF |
75 |
|
|
ENDDO |
76 |
|
|
ENDDO |
77 |
|
|
ENDDO |
78 |
|
|
ENDDO |
79 |
|
|
|
80 |
dgoldberg |
1.4 |
_EXCH_XY_RL(float_frac_streamice, myThid ) |
81 |
|
|
_EXCH_XY_RL(base_el_streamice, myThid ) |
82 |
|
|
_EXCH_XY_RL(surf_el_streamice, myThid ) |
83 |
heimbach |
1.1 |
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
#endif /* ALLOW_STREAMICE */ |
88 |
|
|
|
89 |
|
|
RETURN |
90 |
dgoldberg |
1.2 |
END |