/[MITgcm]/MITgcm/pkg/my82/my82_init.F
ViewVC logotype

Contents of /MITgcm/pkg/my82/my82_init.F

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


Revision 1.2 - (show annotations) (download)
Sun Oct 17 23:12:31 2004 UTC (19 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57f_post, checkpoint57b_post, checkpoint57f_pre, checkpoint57d_post, checkpoint57g_post, checkpoint57a_post, checkpoint55j_post, checkpoint56b_post, checkpoint57h_pre, checkpoint55h_post, checkpoint57g_pre, checkpoint57e_post, checkpoint56c_post, checkpoint57h_post, checkpoint57c_pre, checkpoint57a_pre, checkpoint57, checkpoint56, checkpoint57h_done, eckpoint57e_pre, checkpoint57c_post, checkpoint55i_post, checkpoint56a_post
Changes since 1.1: +2 -2 lines
allow to set a vertical profile of vertical diffusivity for T & S

1 C $Header: /u/gcmpack/MITgcm/pkg/my82/my82_init.F,v 1.1 2004/09/02 09:11:54 mlosch Exp $
2 C $Name: $
3
4 #include "MY82_OPTIONS.h"
5
6 SUBROUTINE MY82_INIT( myThid )
7 C /==========================================================\
8 C | SUBROUTINE MY82_INIT |
9 C | o Routine to initialize MY82 parameters and variables. |
10 C |==========================================================|
11 C | Initialize MY92 parameters and variables. |
12 C \==========================================================/
13 IMPLICIT NONE
14
15 C === Global variables ===
16 #include "SIZE.h"
17 #include "EEPARAMS.h"
18 #include "PARAMS.h"
19 #include "GRID.h"
20 #include "MY82.h"
21
22 C === Routine arguments ===
23 C myThid - Number of this instance of MY_INIT
24 INTEGER myThid
25
26 #ifdef ALLOW_MY82
27
28 C === Local variables ===
29 C i,j,k,bi,bj - Loop counters
30
31 INTEGER i, j, k, bi, bj
32 _RL gam1, gam2
33
34 C magic parameters( M. Satoh, p. 314)
35 gam1 = 1./3.-2.*A1/B1
36 gam2 = (B2+6.*A1)/B1
37 alpha1 = 3.*A2*gam1
38 alpha2 = 3.*A2*(gam1+gam2)
39 beta1 = A1*B1*(gam1-C1)
40 beta2 = A1*(B1*(gam1-C1) + 6.*A1 + 3.*A2)
41 beta3 = A2*B1*gam1
42 beta4 = A2*(B1*(gam1+gam2) - 3.*A1)
43
44 C-----------------------------------------------------------------------
45 C Initialize MY82 variables MYviscAr, MYdiffKrT
46 C-----------------------------------------------------------------------
47
48 do bj = myByLo(myThid), myByHi(myThid)
49 do bi = myBxLo(myThid), myBxHi(myThid)
50 do k = 1, Nr
51 do j = 1-OLy, sNy+OLy
52 do i = 1-OLx, sNx+OLx
53 MYhbl (i,j ,bi,bj) = 0.
54 MYviscAr (i,j,k,bi,bj) = viscAr
55 MYdiffKr (i,j,k,bi,bj) = diffKrNrT(k)
56 end do
57 end do
58 end do
59 end do
60 end do
61
62 #endif /* ALLOW_MY82 */
63
64 return
65 end

  ViewVC Help
Powered by ViewVC 1.1.22