/[MITgcm]/MITgcm/pkg/therm_seaice/ice_init.F
ViewVC logotype

Contents of /MITgcm/pkg/therm_seaice/ice_init.F

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


Revision 1.2 - (show annotations) (download)
Wed Dec 11 14:24:30 2002 UTC (21 years, 5 months ago) by cheisey
Branch: MAIN
CVS Tags: checkpoint51f_post, checkpoint48i_post, checkpoint51l_post, checkpoint51k_post, checkpoint48d_post, checkpoint50b_post, checkpoint47i_post, checkpoint51o_post, checkpoint48g_post, branchpoint-genmake2, checkpoint50c_pre, checkpoint50, checkpoint51j_post, branch-exfmods-tag, checkpoint51q_post, checkpoint47e_post, checkpoint50f_post, checkpoint50a_post, checkpoint48e_post, checkpoint47c_post, checkpoint50f_pre, checkpoint52a_pre, checkpoint48b_post, checkpoint47j_post, checkpoint47d_pre, checkpoint50d_pre, checkpoint47h_post, checkpoint51d_post, checkpoint51, checkpoint51r_post, checkpoint48c_pre, checkpoint52, checkpoint52b_pre, checkpoint48c_post, checkpoint50d_post, checkpoint51o_pre, checkpoint47f_post, checkpoint51t_post, checkpoint51b_pre, checkpoint52a_post, checkpoint51i_post, checkpoint50e_post, checkpoint47g_post, checkpoint50h_post, checkpoint50c_post, checkpoint51a_post, checkpoint51n_pre, checkpoint47d_post, checkpoint50e_pre, checkpoint50b_pre, checkpoint48d_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint51e_post, checkpoint51b_post, checkpoint48a_post, checkpoint51h_pre, checkpoint48f_post, checkpoint51i_pre, checkpoint51l_pre, checkpoint50g_post, checkpoint51u_post, checkpoint51c_post, checkpoint51g_post, checkpoint51m_post, ecco_c52_e35, checkpoint48, checkpoint49, checkpoint51f_pre, checkpoint51s_post, checkpoint48h_post
Branch point for: checkpoint51n_branch, branch-nonh, tg2-branch, branch-genmake2, branch-exfmods-curt
Changes since 1.1: +1 -10 lines
Moving the therm_seaice checkpoint fields from model/src/checkpoint.F
into pkg/therm_seaice/ice_checkpoint.F .

1
2 #include "CPP_OPTIONS.h"
3
4 CStartOfInterface
5 SUBROUTINE ICE_INIT( myThid )
6 C /==========================================================\
7 C | SUBROUTINE ICE_INIT |
8 C | o Set model ice parameters |
9 C |==========================================================|
10 IMPLICIT NONE
11
12 C === Global variables ===
13 #include "SIZE.h"
14 #include "EEPARAMS.h"
15 #include "PARAMS.h"
16 #include "GRID.h"
17 #include "DYNVARS.h"
18 cswdice -- add ---
19 #ifdef ALLOW_THERM_SEAICE
20 #include "ICE.h"
21 #endif
22 cswdice -- end add --
23
24 C == Routine arguments ==
25 C myThid - Number of this instance of INI_RBCS
26 INTEGER myThid
27 CEndOfInterface
28
29 C == Local variables ==
30 C bi,bj - Loop counters
31 C I,J
32 INTEGER bi, bj
33 INTEGER I, J
34 INTEGER prec
35 CHARACTER*(MAX_LEN_FNAM) fn
36
37 _BARRIER
38
39 cswdice -- add ----
40 #ifdef ALLOW_THERM_SEAICE
41 cQQ allowFreezing=.FALSE.
42 c set up ice arrays to zero if starting ice
43 if (startIceModel.eq.1) then
44 DO bj = myByLo(myThid), myByHi(myThid)
45 DO bi = myBxLo(myThid), myBxHi(myThid)
46 DO J=1,sNy
47 DO I=1,sNx
48 iceMask(i,j,bi,bj)=0.d0
49 iceHeight(i,j,bi,bj)=0.d0
50 snow(i,j,bi,bj)=0.d0
51 Tsrf(i,j,bi,bj)=theta(i,j,1,bi,bj)
52 Tice1(i,j,bi,bj)=0.d0
53 Tice2(i,j,bi,bj)=0.d0
54 Qice1(i,j,bi,bj)=0.d0
55 Qice2(i,j,bi,bj)=0.d0
56 sage(i,j,bi,bj)=0.d0
57 ENDDO
58 ENDDO
59 ENDDO
60 ENDDO
61 else
62 C-- Read ice pickup fields
63 prec=precFloat64
64 CALL ICE_READ_CHECKPOINT( prec, nIter0, myThid )
65 endif
66
67 _EXCH_XY_R8(iceMask, myThid)
68 _EXCH_XY_R8(iceHeight, myThid)
69 _EXCH_XY_R8(snowHeight, myThid)
70 _EXCH_XY_R8(Tsrf, myThid)
71 _EXCH_XY_R8(Tice1, myThid)
72 _EXCH_XY_R8(Tice2, myThid)
73 _EXCH_XY_R8(Qice1, myThid)
74 _EXCH_XY_R8(Qice2, myThid)
75
76 #endif
77
78 cswdcou -- add ---
79 #ifdef COUPLE_MODEL
80 DO bj = myByLo(myThid), myByHi(myThid)
81 DO bi = myBxLo(myThid), myBxHi(myThid)
82 DO J=1,sNy
83 DO I=1,sNx
84 dFdT(i,j,bi,bj)=0.d0
85 ENDDO
86 ENDDO
87 ENDDO
88 ENDDO
89 _EXCH_XY_R8(dFdT, myThid)
90 #endif
91 cswdcou -- end add ---
92
93
94 cswdice -------
95
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22