/[MITgcm]/MITgcm/verification/fizhi-gridalt-hs/code/fizhi_tendency_apply.F
ViewVC logotype

Annotation of /MITgcm/verification/fizhi-gridalt-hs/code/fizhi_tendency_apply.F

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


Revision 1.1 - (hide annotations) (download)
Tue Dec 7 22:14:35 2004 UTC (19 years, 4 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint57t_post, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint58u_post, checkpoint58w_post, checkpoint57m_post, checkpoint57s_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint57d_post, checkpoint57g_post, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint58t_post, checkpoint58h_post, checkpoint57y_pre, checkpoint57f_pre, checkpoint57a_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint57, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint57x_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post
 o various fixes to the CVS repository due to the disk crash on 20041206

1 edhill 1.1 C $Header: /u/gcmpack/MITgcm/verification/fizhi-gridalt-hs/code/fizhi_tendency_apply.F,v 1.1 2004/12/06 22:27:09 molod Exp $
2     C $Name: $
3    
4     #include "FIZHI_OPTIONS.h"
5     subroutine fizhi_tendency_apply_u(iMin, iMax, jMin, jMax,
6     . bi,bj,kLev,myTime,myThid)
7     C=======================================================================
8     C Routine: fizhi_tendency_apply_u
9     C Interpolate tendencies from physics grid to dynamics grid and
10     C add fizhi tendency terms to U tendency.
11     C
12     C INPUT:
13     C iMin - Working range of tile for applying forcing.
14     C iMax
15     C jMin
16     C jMax
17     C kLev
18     C
19     C Notes: Routine works for one level at a time
20     C Assumes that U and V tendencies are already on C-Grid
21     C=======================================================================
22     implicit none
23    
24     #include "SIZE.h"
25     #include "GRID.h"
26     #include "EEPARAMS.h"
27     #include "DYNVARS.h"
28     #include "fizhi_SIZE.h"
29     #include "fizhi_land_SIZE.h"
30     #include "fizhi_coms.h"
31    
32     integer iMin, iMax, jMin, jMax, kLev, bi, bj, myThid
33     _RL myTime
34    
35     integer i, j
36    
37     do j=jMin,jMax
38     do i=iMin,iMax
39     gU(i,j,kLev,bi,bj) = gU(i,j,kLev,bi,bj) +
40     . maskW(i,j,kLev,bi,bj) * guphy(i,j,kLev,bi,bj)
41     enddo
42     enddo
43    
44     return
45     end
46     subroutine fizhi_tendency_apply_v(iMin, iMax, jMin, jMax,
47     . bi,bj,kLev,myTime,myThid)
48     C=======================================================================
49     C Routine: fizhi_tendency_apply_v
50     C Interpolate tendencies from physics grid to dynamics grid and
51     C add fizhi tendency terms to V tendency.
52     C
53     C INPUT:
54     C iMin - Working range of tile for applying forcing.
55     C iMax
56     C jMin
57     C jMax
58     C kLev
59     C
60     C Notes: Routine works for one level at a time
61     C Assumes that U and V tendencies are already on C-Grid
62     C=======================================================================
63     implicit none
64    
65     #include "SIZE.h"
66     #include "GRID.h"
67     #include "EEPARAMS.h"
68     #include "DYNVARS.h"
69     #include "fizhi_SIZE.h"
70     #include "fizhi_land_SIZE.h"
71     #include "fizhi_coms.h"
72    
73     integer iMin, iMax, jMin, jMax, kLev, bi, bj, myThid
74     _RL myTime
75    
76     integer i, j
77    
78     do j=jMin,jMax
79     do i=iMin,iMax
80     gV(i,j,kLev,bi,bj) = gV(i,j,kLev,bi,bj) +
81     . maskS(i,j,kLev,bi,bj) * gvphy(i,j,kLev,bi,bj)
82     enddo
83     enddo
84    
85     return
86     end
87     subroutine fizhi_tendency_apply_t(iMin, iMax, jMin, jMax,
88     . bi,bj,kLev,myTime,myThid)
89     C=======================================================================
90     C Routine: fizhi_tendency_apply_t
91     C Interpolate tendencies from physics grid to dynamics grid and
92     C add fizhi tendency terms to T (theta) tendency.
93     C
94     C INPUT:
95     C iMin - Working range of tile for applying forcing.
96     C iMax
97     C jMin
98     C jMax
99     C kLev
100     C
101     C Notes: Routine works for one level at a time
102     C=======================================================================
103     implicit none
104    
105     #include "SIZE.h"
106     #include "GRID.h"
107     #include "EEPARAMS.h"
108     #include "DYNVARS.h"
109     #include "fizhi_SIZE.h"
110     #include "fizhi_land_SIZE.h"
111     #include "fizhi_coms.h"
112    
113     integer iMin, iMax, jMin, jMax, kLev, bi, bj, myThid
114     _RL myTime
115    
116     integer i, j
117    
118     do j=jMin,jMax
119     do i=iMin,iMax
120     gT(i,j,kLev,bi,bj) = maskC(i,j,kLev,bi,bj)
121     . *( gT(i,j,kLev,bi,bj) + gthphy(i,j,kLev,bi,bj) )
122     enddo
123     enddo
124    
125     return
126     end
127     subroutine fizhi_tendency_apply_s(iMin, iMax, jMin, jMax,
128     . bi,bj,kLev,myTime,myThid)
129     C=======================================================================
130     C Routine: fizhi_tendency_apply_s
131     C Interpolate tendencies from physics grid to dynamics grid and
132     C add fizhi tendency terms to S tendency.
133     C
134     C INPUT:
135     C iMin - Working range of tile for applying forcing.
136     C iMax
137     C jMin
138     C jMax
139     C kLev
140     C
141     C Notes: Routine works for one level at a time
142     C=======================================================================
143     implicit none
144    
145     #include "SIZE.h"
146     #include "GRID.h"
147     #include "EEPARAMS.h"
148     #include "DYNVARS.h"
149     #include "fizhi_SIZE.h"
150     #include "fizhi_land_SIZE.h"
151     #include "fizhi_coms.h"
152    
153     integer iMin, iMax, jMin, jMax, kLev, bi, bj, myThid
154     _RL myTime
155    
156     integer i, j
157    
158     do j=jMin,jMax
159     do i=iMin,iMax
160     gS(i,j,kLev,bi,bj) = maskC(i,j,kLev,bi,bj)
161     . *( gS(i,j,kLev,bi,bj) + gsphy(i,j,kLev,bi,bj) )
162     enddo
163     enddo
164    
165     return
166     end

  ViewVC Help
Powered by ViewVC 1.1.22