/[MITgcm]/MITgcm/pkg/aim_v23/aim_sice_impl.F
ViewVC logotype

Contents of /MITgcm/pkg/aim_v23/aim_sice_impl.F

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


Revision 1.3 - (show annotations) (download)
Thu May 25 18:05:24 2006 UTC (17 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58u_post, checkpoint58w_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, 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, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58m_post, HEAD
Changes since 1.2: +9 -9 lines
- put i,j loops inside S/R: THSICE_ALBEDO & THSICE_SOLVE4TEMP

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_v23/aim_sice_impl.F,v 1.2 2004/06/24 23:43:11 jmc Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5 c#ifdef ALLOW_THSICE
6 c#include "THSICE_OPTIONS.h"
7 c#endif
8
9 CBOP
10 C !ROUTINE: AIM_SICE_IMPL
11 C !INTERFACE:
12 SUBROUTINE AIM_SICE_IMPL(
13 I FMASK, netSW, sFlx,
14 I Shf0, dShf, Evp0, dEvp, Slr0, dSlr,
15 U Tsurf, SHF, EVAP, SLRU,
16 O dTsurf,
17 I bi, bj, myTime, myIter, myThid)
18
19 C !DESCRIPTION: \bv
20 C *==========================================================*
21 C | S/R AIM_SICE_IMPL
22 C | o AIM Interface to the implicit part of the sea-ice model
23 C *==========================================================*
24 C \ev
25
26 C !USES:
27 IMPLICIT NONE
28
29 C == Global variables ===
30 C-- size for MITgcm & Physics package :
31 #include "AIM_SIZE.h"
32
33 #include "EEPARAMS.h"
34 #include "PARAMS.h"
35
36 #include "AIM_FFIELDS.h"
37 #include "com_physcon.h"
38 c #include "com_physvar.h"
39
40 #ifdef ALLOW_THSICE
41 c#include "THSICE_SIZE.h"
42 c#include "THSICE_PARAMS.h"
43 c#include "THSICE_VARS.h"
44 #endif
45
46 C !INPUT/OUTPUT PARAMETERS:
47 C == Routine arguments ==
48 C FMASK :: sea-ice fraction [0-1]
49 C netSW :: net Short Wave surf. flux (+=down) [W/m2]
50 C sFlx :: net heat flux (+=down) except SW, function of surf. temp Ts:
51 C 0: Flux(Ts=0.oC) ; 1: Flux(Ts^n) ; 2: d.Flux/d.Ts(Ts^n)
52 C Shf0 :: sensible heat flux over freezing surf.
53 C dShf :: sensible heat flux derivative relative to surf. temp
54 C Evp0 :: evaporation computed over freezing surface (Ts=0.oC)
55 C dEvp :: evaporation derivative relative to surf. temp
56 C Slr0 :: upward long wave radiation over freezing surf.
57 C Tsurf :: surface temperature (2-dim)
58 C SHF :: sensible heat flux (2-dim)
59 C EVAP :: evaporation [g/(m^2 s)] (2-dim)
60 C SLRU :: sfc lw radiation (upward flux) (2-dim)
61 C dTsurf :: surf. temp change after 1 implicit time step [oC]
62 C bi,bj :: Tile index
63 C myTime :: Current time of simulation ( s )
64 C myIter :: Current iteration number in simulation
65 C myThid :: Number of this instance of the routine
66 _RL FMASK(NGP), netSW(NGP), sFlx(NGP,0:2)
67 _RL Shf0(NGP), dShf(NGP), Evp0(NGP), dEvp(NGP)
68 _RL Slr0(NGP), dSlr(NGP)
69 _RL Tsurf(NGP), SHF(NGP), EVAP(NGP), SLRU(NGP)
70 _RL dTsurf(NGP)
71 INTEGER bi, bj, myIter, myThid
72 _RL myTime
73 CEOP
74
75 #ifdef ALLOW_AIM
76 #ifdef ALLOW_THSICE
77 C == Local variables ==
78 C J :: loop counters
79 INTEGER J
80
81 C-- Physics tendency term
82
83 IF ( useThSIce ) THEN
84
85 DO J=1,NGP
86 C- total surface downward heat flux :
87
88 C- initialize temp. changes and fresh water flux :
89 dTsurf(J) = 0.
90 ENDDO
91
92 CALL THSICE_IMPL_TEMP(
93 I netSW, sFlx,
94 O dTsurf,
95 I bi, bj, myTime, myIter, myThid)
96
97 C- Update Surf.Temp., Evap, Upward SW according to surf. temp. changes
98 DO J=1,NGP
99 IF ( dTsurf(J) .GT. 999. ) THEN
100 dTsurf(J)= tFreeze - Tsurf(J)
101 Tsurf(J) = tFreeze
102 SHF (J) = Shf0(J)
103 EVAP(J) = Evp0(J)
104 SLRU(J) = Slr0(J)
105 ELSE
106 Tsurf(J) = Tsurf(J)+ dTsurf(J)
107 SHF (J) = SHF (J) + dTsurf(J)*dShf(J)
108 EVAP(J) = EVAP(J) + dTsurf(J)*dEvp(J)
109 SLRU(J) = SLRU(J) + dTsurf(J)*dSlr(J)
110 ENDIF
111 ENDDO
112
113 ENDIF
114
115 #endif /* ALLOW_THSICE */
116 #endif /* ALLOW_AIM */
117
118 RETURN
119 END

  ViewVC Help
Powered by ViewVC 1.1.22