/[MITgcm]/MITgcm/model/src/convect.F
ViewVC logotype

Annotation of /MITgcm/model/src/convect.F

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


Revision 1.8 - (hide annotations) (download)
Mon Jun 15 05:13:56 1998 UTC (26 years ago) by cnh
Branch: MAIN
CVS Tags: checkpoint11, checkpoint10, checkpoint13, checkpoint12, checkpoint7, checkpoint9, checkpoint8, branch-point-rdot
Branch point for: checkpoint7-4degree-ref, branch-rdot
Changes since 1.7: +5 -5 lines
Fairly coplete 4 degree global intercomparison
setup.
 Includes changes to make convective adjustment and hydrostatic
pressure correct as well as IO for climatological datasets

1 cnh 1.8 C $Header: /u/gcmpack/models/MITgcmUV/model/src/convect.F,v 1.7 1998/06/09 16:48:02 cnh Exp $
2 cnh 1.1
3     #include "CPP_EEOPTIONS.h"
4    
5 adcroft 1.4 SUBROUTINE CONVECT( bi, bj, iMin, iMax, jMin, jMax, K,
6 cnh 1.5 & rhoKm1, rhoKp1,myTime,myIter, myThid )
7 cnh 1.1 C /==========================================================\
8     C | SUBROUTINE CONVECT |
9 cnh 1.3 C | o Does vertical mixing of unstable water column |
10 cnh 1.1 C |==========================================================|
11     C | |
12     C \==========================================================/
13     IMPLICIT NONE
14    
15     C == Global data ==
16     #include "SIZE.h"
17 cnh 1.7 #include "EEPARAMS.h"
18 cnh 1.5 #include "PARAMS.h"
19 cnh 1.1 #include "DYNVARS.h"
20     #include "GRID.h"
21    
22 cnh 1.5 EXTERNAL DIFFERENT_MULTIPLE
23     LOGICAL DIFFERENT_MULTIPLE
24    
25 cnh 1.1 C == Routine arguments ==
26 cnh 1.5 C bi,bj,iMin,iMax,jMin,jMax,K - Loop counters
27     C rhoKm1 - rho in layer above
28     C rhoKp1 - rho in layer below
29     C myTime - Current time in simulation
30     C myIter - Current iteration in simulation
31     C myThid - Thread number of this instance of S/R CONVECT
32 adcroft 1.4 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
33     _RL rhoKm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
34     _RL rhoKp1(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
35 cnh 1.5 _RL myTime
36     INTEGER myIter
37 cnh 1.1 INTEGER myThid
38    
39     C == Local variables ==
40 adcroft 1.4 INTEGER i,j
41 cnh 1.1 _RL tMix(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42 adcroft 1.4 _RL sMix(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43 cnh 1.1 _RL dSum(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
44    
45 cnh 1.5 C-- Check to see if should convect now
46     IF ( DIFFERENT_MULTIPLE(cAdjFreq,myTime,myTime-deltaTClock) ) THEN
47    
48     C-- Calculate heat content of two level column
49     DO j=jMin,jmax
50     DO i=iMin,imax
51 cnh 1.6 tMix(i,j) = theta(i,j,k-1,bi,bj)*_hFacC(i,j,k-1,bi,bj)*dzF(k-1)
52     & +theta(i,j,k,bi,bj)*_hFacC(i,j,k,bi,bj)*dzF(k)
53 cnh 1.8 sMix(i,j) = salt (i,j,k-1,bi,bj)*_hFacC(i,j,k-1,bi,bj)*dzF(k-1)
54     & +salt (i,j,k,bi,bj)*_hFacC(i,j,k,bi,bj)*dzF(k)
55 cnh 1.6 dSum(i,j) = _hFacC(i,j,k-1,bi,bj)*dzF(k-1)
56     & +_hFacC(i,j,k,bi,bj)*dzF(k)
57 cnh 1.5 ENDDO
58 cnh 1.1 ENDDO
59 cnh 1.5
60     C-- Where statically unstable, mix the heat and salt
61     DO j=jMin,jmax
62     DO i=iMin,imax
63 cnh 1.6 IF ( _hFacC(i,j,k,bi,bj) .GT. 0. .AND.
64 cnh 1.5 & rhokm1(i,j) .GT. rhokp1(i,j) ) THEN
65     theta(i,j,k-1,bi,bj) = tMix(i,j)/dSum(i,j)
66     theta(i,j,k ,bi,bj) = tMix(i,j)/dSum(i,j)
67 cnh 1.8 salt(i,j,k-1,bi,bj) = sMix(i,j)/dSum(i,j)
68     salt(i,j,k ,bi,bj) = sMix(i,j)/dSum(i,j)
69 cnh 1.5 ENDIF
70     ENDDO
71 cnh 1.1 ENDDO
72 cnh 1.5
73     ENDIF
74 cnh 1.1
75     RETURN
76     END

  ViewVC Help
Powered by ViewVC 1.1.22