/[MITgcm]/MITgcm/pkg/fizhi/step_fizhi_fg.F
ViewVC logotype

Annotation of /MITgcm/pkg/fizhi/step_fizhi_fg.F

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


Revision 1.8 - (hide annotations) (download)
Wed Aug 4 22:50:41 2004 UTC (19 years, 10 months ago) by molod
Branch: MAIN
Changes since 1.7: +13 -1 lines
Insert proper call to fill negative specific humidity

1 molod 1.8 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/step_fizhi_fg.F,v 1.7 2004/08/04 18:23:44 molod Exp $
2 edhill 1.3 C $Name: $
3    
4 molod 1.6 #include "FIZHI_OPTIONS.h"
5 molod 1.2 subroutine step_fizhi_fg (myTime, myIter, myThid, dt)
6 molod 1.1 c-----------------------------------------------------------------------
7     c Subroutine step_fizhi_fg - 'Wrapper' routine to advance
8     c the physics state and make a 'first guess' at the new
9     c value. At this point, increment with the physics
10     c tendency only.
11     c Also: Set up "bi, bj loop" and some timers and clocks here.
12     c Call: step_physics
13     c-----------------------------------------------------------------------
14     implicit none
15     #include "SIZE.h"
16     #include "fizhi_SIZE.h"
17 molod 1.4 #include "fizhi_land_SIZE.h"
18 molod 1.1 #include "fizhi_coms.h"
19 molod 1.8 #include "gridalt_mapping.h"
20 molod 1.1 #include "EEPARAMS.h"
21 molod 1.8 #include "DYNVARS.h"
22     #include "GRID.h"
23 molod 1.1
24     integer myTime, myIter, myThid
25    
26 molod 1.5 integer bi, bj
27 molod 1.1 integer im1, im2, jm1, jm2, idim1, idim2, jdim1, jdim2
28 molod 1.2 _RL dt
29 molod 1.1
30 molod 1.7 _RL tempij(sNx,sNy)
31     integer i,j,L
32 molod 1.8 _RL psurf(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy)
33 molod 1.7
34     idim1 = 1-OLx
35     idim2 = sNx+OLx
36     jdim1 = 1-OLy
37     jdim2 = sNy+OLy
38     im1 = 1
39     im2 = sNx
40     jm1 = 1
41     jm2 = sNy
42 molod 1.1
43     do bj = myByLo(myThid), myByHi(myThid)
44     do bi = myBxLo(myThid), myBxHi(myThid)
45    
46     c Step forward the physics state using physics tendencies
47 molod 1.7 call step_physics(uphy,vphy,thphy,sphy,dt,idim1,idim2,
48     . jdim1,jdim2,
49 molod 1.1 . Nrphys,Nsx,Nsy,1,sNx,1,sNy,bi,bj,duphy,dvphy,dthphy,dsphy)
50 molod 1.7
51     if(1.eq.1 )then
52     print *,' In step fizhi fg, new fizhi fields ',bi,' dt= ',dt
53     do L = 1,Nrphys
54     do j = jm1,jm2
55     do i = im1,im2
56     tempij(i,j) = uphy(i,j,L,bi,bj)
57     enddo
58     enddo
59     c print *,' uphy at level ',l,' ',tempij
60     enddo
61     do L = 1,Nrphys
62     do j = jm1,jm2
63     do i = im1,im2
64     tempij(i,j) = vphy(i,j,L,bi,bj)
65     enddo
66     enddo
67     c print *,' vphy at level ',l,' ',tempij
68     enddo
69     do L = 1,Nrphys
70     do j = jm1,jm2
71     do i = im1,im2
72     tempij(i,j) = thphy(i,j,L,bi,bj)
73     enddo
74     enddo
75     print *,' thphy at level ',l,' ',tempij
76     enddo
77     do L = 1,Nrphys
78     do j = jm1,jm2
79     do i = im1,im2
80     tempij(i,j) = sphy(i,j,L,bi,bj)
81     enddo
82     enddo
83     c print *,' sphy at level ',l,' ',tempij
84     enddo
85     endif
86    
87 molod 1.8 do j = jm1,jm2
88     do i = im1,im2
89     psurf(i,j,bi,bj)=Ro_surf(i,j,bi,bj) + etaH(i,j,bi,bj)
90     enddo
91     enddo
92    
93     call qcheck (idim1,idim2,jdim1,jdim2,Nrphys,im1,im2,jm1,jm2,
94     . dpphys,psurf,sphy)
95 molod 1.1
96     enddo
97     enddo
98    
99     return
100     end

  ViewVC Help
Powered by ViewVC 1.1.22