/[MITgcm]/MITgcm/pkg/shelfice/shelfice_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/shelfice/shelfice_init_varia.F

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


Revision 1.9 - (show annotations) (download)
Mon Mar 12 16:57:47 2012 UTC (12 years, 2 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63k, checkpoint64
Changes since 1.8: +16 -3 lines
just a small "schoenheitskorrektur" to avoid non-zero values of
exchange coefficients outside of the ice-shelf cavities

1 C $Header: /u/gcmpack/MITgcm/pkg/shelfice/shelfice_init_varia.F,v 1.8 2012/01/06 09:34:19 mlosch Exp $
2 C $Name: $
3
4 #include "SHELFICE_OPTIONS.h"
5
6
7 CBOP
8 SUBROUTINE SHELFICE_INIT_VARIA( myThid )
9 C *============================================================*
10 C | SUBROUTINE SHELFICE_INIT_VARIA
11 C | o Routine to initialize SHELFICE variables.
12 C *============================================================*
13 C | Initialize SHELFICE parameters and variables.
14 C *============================================================*
15 IMPLICIT NONE
16
17 C === Global variables ===
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "GRID.h"
22 #include "SHELFICE.h"
23 #ifdef ALLOW_COST
24 # include "SHELFICE_COST.h"
25 #endif /* ALLOW_COST */
26
27 C === Routine arguments ===
28 C myThid - Number of this instance of SHELFICE_INIT_VARIA
29 INTEGER myThid
30 CEndOfInterface
31
32 #ifdef ALLOW_SHELFICE
33 C === Local variables ===
34 C i,j,bi,bj - Loop counters
35 INTEGER i, j, bi, bj
36 CEOP
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 shelficeLoadAnomaly (i,j,bi,bj) = 0. _d 0
43 shelficeForcingT (i,j,bi,bj) = 0. _d 0
44 shelficeForcingS (i,j,bi,bj) = 0. _d 0
45 shelficeHeatFlux (i,j,bi,bj) = 0. _d 0
46 shelficeFreshWaterFlux(i,j,bi,bj) = 0. _d 0
47 shiTransCoeffT (i,j,bi,bj) = 0. _d 0
48 shiTransCoeffS (i,j,bi,bj) = 0. _d 0
49 ENDDO
50 ENDDO
51 ENDDO
52 ENDDO
53 IF ( .NOT. SHELFICEuseGammaFrict ) THEN
54 C set coefficients to constant values
55 DO bj = myByLo(myThid), myByHi(myThid)
56 DO bi = myBxLo(myThid), myBxHi(myThid)
57 DO j = 1-OLy, sNy+OLy
58 DO i = 1-OLx, sNx+OLx
59 shiTransCoeffT(i,j,bi,bj) = SHELFICEheatTransCoeff
60 shiTransCoeffS(i,j,bi,bj) = SHELFICEsaltTransCoeff
61 ENDDO
62 ENDDO
63 ENDDO
64 ENDDO
65 ENDIF
66
67 #ifdef ALLOW_COST
68 DO bj = myByLo(myThid), myByHi(myThid)
69 DO bi = myBxLo(myThid), myBxHi(myThid)
70 DO j = 1-OLy, sNy+OLy
71 DO i = 1-OLx, sNx+OLx
72 cMeanSHIforT (i,j,bi,bj) = 0. _d 0
73 cMeanSHIforS (i,j,bi,bj) = 0. _d 0
74 ENDDO
75 ENDDO
76 ENDDO
77 ENDDO
78 c--
79 DO bj = myByLo(myThid), myByHi(myThid)
80 DO bi = myBxLo(myThid), myBxHi(myThid)
81 objf_shelfice(bi,bj) = 0. _d 0
82 objf_shifwflx(bi,bj) = 0. _d 0
83 num_shifwflx(bi,bj) = 0. _d 0
84 ENDDO
85 ENDDO
86 #endif /* ALLOW_COST */
87
88 IF ( SHELFICEloadAnomalyFile .NE. ' ' ) THEN
89 C- must wait for initialisation to be finished before master loads from file
90 _BARRIER
91 CALL READ_FLD_XY_RS( SHELFICEloadAnomalyFile, ' ',
92 & shelficeLoadAnomaly, 0, myThid )
93 C- EXCH call implicitly contains Barrier: no need for another one.
94 _EXCH_XY_RS( shelficeLoadAnomaly, myThid )
95 ENDIF
96
97 #endif /* ALLOW_SHELFICE */
98
99 RETURN
100 END

  ViewVC Help
Powered by ViewVC 1.1.22