/[MITgcm]/MITgcm/pkg/layers/layers_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/layers/layers_init_varia.F

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


Revision 1.2 - (show annotations) (download)
Mon Dec 28 02:39:11 2009 UTC (14 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint63, 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
Changes since 1.1: +2 -4 lines
- fix Pb in LAYERS_CALC arg. list
- use simple cumulative-time array (no level index) to fix time-ave S/R calls

1 C $Header: /u/gcmpack/MITgcm/pkg/layers/layers_init_varia.F,v 1.1 2009/09/16 21:25:47 rpa Exp $
2 C $Name: $
3
4 #include "LAYERS_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7
8 SUBROUTINE LAYERS_INIT_VARIA( myThid )
9
10 C ===================================================================
11 C Initialize LAYERS variables.
12 C ===================================================================
13
14 IMPLICIT NONE
15 #include "EEPARAMS.h"
16 #include "SIZE.h"
17 #include "PARAMS.h"
18 #include "LAYERS_SIZE.h"
19 #include "LAYERS.h"
20
21 C INPUT/OUTPUT PARAMETERS:
22 C myThid :: my Thread Id number
23 INTEGER myThid
24
25 #ifdef ALLOW_LAYERS
26
27 C === Local variables ===
28 INTEGER i,j,kg,bi,bj
29
30 DO bj = myByLo(myThid), myByHi(myThid)
31 DO bi = myBxLo(myThid), myBxHi(myThid)
32
33 C Loop through 3D variables:
34 DO kg=1,Nlayers
35 DO j=1-Oly,sNy+OLy
36 DO i=1-Olx,sNx+Olx
37
38 #ifdef LAYERS_UFLUX
39 layers_UFlux(i,j,kg,bi,bj) = 0. _d 0
40 #ifdef LAYERS_THICKNESS
41 layers_HU(i,j,kg,bi,bj) = 0. _d 0
42 #endif /* LAYERS_THICKNESS */
43 #endif /* LAYERS_UFLUX */
44
45 #ifdef LAYERS_VFLUX
46 layers_VFlux(i,j,kg,bi,bj) = 0. _d 0
47 #ifdef LAYERS_THICKNESS
48 layers_HV(i,j,kg,bi,bj) = 0. _d 0
49 #endif /* LAYERS_THICKNESS */
50 #endif /* LAYERS_VFLUX */
51
52 ENDDO
53 ENDDO
54 ENDDO
55
56 #ifdef ALLOW_TIMEAVE
57 C Initialize averages to zero
58 layers_TimeAve(bi,bj) = 0. _d 0
59
60 #ifdef LAYERS_UFLUX
61 CALL TIMEAVE_RESET(layers_UFlux_T,Nlayers,bi,bj,myThid)
62 #ifdef LAYERS_THICKNESS
63 CALL TIMEAVE_RESET(layers_HU_T,Nlayers,bi,bj,myThid)
64 #endif /* LAYERS_THICKNESS */
65 #endif /* LAYERS_UFLUX */
66
67 #ifdef LAYERS_VFLUX
68 CALL TIMEAVE_RESET(layers_VFlux_T,Nlayers,bi,bj,myThid)
69 #ifdef LAYERS_THICKNESS
70 CALL TIMEAVE_RESET(layers_HV_T,Nlayers,bi,bj,myThid)
71 #endif /* LAYERS_THICKNESS */
72 #endif /* LAYERS_VFLUX */
73
74 #endif /* ALLOW_TIMEAVE */
75
76 C- end bi,bj loops
77 ENDDO
78 ENDDO
79
80 #endif /* ALLOW_LAYERS */
81
82 RETURN
83 END

  ViewVC Help
Powered by ViewVC 1.1.22