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

Annotation of /MITgcm/pkg/thsice/thsice_ini_vars.F

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


Revision 1.1 - (hide 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 jmc 1.1 C $Header: $
2     C $Name: $
3    
4     #include "THSICE_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE THSICE_INI_VARS( myThid )
8     C *==========================================================*
9     C | SUBROUTINE THSICE_INI_VARS
10     C | o initialize THermo_SeaICE variables
11     C *==========================================================*
12     IMPLICIT NONE
13    
14     C === Global variables ===
15     #include "SIZE.h"
16     #include "EEPARAMS.h"
17     #include "PARAMS.h"
18     #include "GRID.h"
19     #include "DYNVARS.h"
20     #include "THSICE_PARAMS.h"
21     #include "THSICE.h"
22    
23     C == Routine arguments ==
24     C myThid - Number of this instance of INI_RBCS
25     INTEGER myThid
26     CEndOfInterface
27    
28     #ifdef ALLOW_THSICE
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    
38     c set up ice arrays to zero if starting ice
39     DO bj = myByLo(myThid), myByHi(myThid)
40     DO bi = myBxLo(myThid), myBxHi(myThid)
41     DO J=1-Oly,sNy+Oly
42     DO I=1-Olx,sNx+Olx
43     iceMask(i,j,bi,bj)=0. _d 0
44     iceHeight(i,j,bi,bj)=0. _d 0
45     snowHeight(i,j,bi,bj)=0. _d 0
46     Tsrf(i,j,bi,bj)=theta(i,j,1,bi,bj)
47     Tice1(i,j,bi,bj)=0. _d 0
48     Tice2(i,j,bi,bj)=0. _d 0
49     Qice1(i,j,bi,bj)=0. _d 0
50     Qice2(i,j,bi,bj)=0. _d 0
51     sage(i,j,bi,bj)=0. _d 0
52     #ifdef COUPLE_MODEL
53     dFdT(i,j,bi,bj)=0. _d 0
54     #endif
55     snow(i,j,bi,bj)=0. _d 0
56     ENDDO
57     ENDDO
58     ENDDO
59     ENDDO
60    
61     IF ( startIceModel.NE.1 .AND. nIter0.NE.0 ) THEN
62     C-- Read ice pickup fields
63     _BARRIER
64     prec=precFloat64
65     CALL THSICE_READ_CHECKPOINT( prec, nIter0, myThid )
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     #ifdef COUPLE_MODEL
76     _EXCH_XY_R8(dFdT, myThid)
77     #endif
78     ENDIF
79    
80     #endif /* ALLOW_THSICE */
81    
82     RETURN
83     END

  ViewVC Help
Powered by ViewVC 1.1.22