/[MITgcm]/MITgcm/pkg/aim/phy_lscond.F
ViewVC logotype

Contents of /MITgcm/pkg/aim/phy_lscond.F

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


Revision 1.3 - (show annotations) (download)
Tue May 29 19:28:53 2001 UTC (22 years, 11 months ago) by cnh
Branch: MAIN
CVS Tags: icebear2, checkpoint40pre1, checkpoint44h_pre, release1_p12, release1_p10, release1_p11, release1_p16, release1_p15, ecco_c44_e17, ecco_c44_e16, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, icebear5, icebear4, checkpoint44f_pre, icebear3, checkpoint46f_post, release1_p13_pre, checkpoint46d_pre, checkpoint46e_post, release1-branch_tutorials, release1_p14, checkpoint44g_post, checkpoint46h_pre, checkpoint44h_post, release1_p12_pre, checkpoint44e_post, checkpoint46e_pre, ecco-branch-mod4, checkpoint43a-release1mods, checkpoint45d_post, checkpoint45b_post, checkpoint46b_pre, chkpt44a_pre, release1-branch-end, release1_final_v1, ecco_c44_e19, checkpoint46, ecco_c44_e20, checkpoint44, release1_p13, ecco_c44_e18, checkpoint44f_post, checkpoint40pre2, checkpoint40pre5, checkpoint40pre6, checkpoint40pre8, release1_p17, release1_b1, checkpoint44b_post, chkpt44c_post, chkpt44d_post, checkpoint42, release1_p9, release1_p8, checkpoint43, checkpoint46g_pre, release1_p2, release1_p3, release1_p4, release1_p6, checkpoint46a_post, chkpt44a_post, checkpoint44b_pre, release1_p1, checkpoint40pre4, checkpoint46a_pre, ecco-branch-mod1, checkpoint40pre3, checkpoint45c_post, release1_p5, checkpoint44e_pre, chkpt44c_pre, checkpoint40pre9, release1_p7, ecco_ice2, ecco_ice1, checkpoint46b_post, checkpoint46d_post, ecco-branch-mod2, checkpoint46g_post, checkpoint45a_post, checkpoint46c_pre, ecco-branch-mod3, ecco-branch-mod5, ecco_c44_e22, release1_beta1, ecco_c44_e23, release1-branch_branchpoint, checkpoint40pre7, checkpoint46c_post, checkpoint40, checkpoint45, checkpoint46h_post, release1_chkpt44d_post, ecco_c44_e25, checkpoint41
Branch point for: c24_e25_ice, ecco-branch, release1_coupled, icebear, release1_final, release1-branch, release1, release1_50yr
Changes since 1.2: +9 -5 lines
Updates for multi-threaded AIM with support for both latlon
and CS.
Needs compatible changes to verfication/

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/aim/phy_lscond.F,v 1.2 2001/02/02 21:36:29 adcroft Exp $
2 C $Name: $
3
4 SUBROUTINE LSCOND (PSA,QA,QSAT,
5 * PRECLS,DTLSC,DQLSC,myThid)
6 C--
7 C-- SUBROUTINE LSCOND (PSA,QA,QSAT,
8 C-- * PRECLS,DTLSC,DQLSC)
9 C--
10 C-- Purpose: Compute large-scale precipitation and
11 C-- associated tendencies of temperature and moisture
12 C-- Input: PSA = norm. surface pressure [p/p0] (2-dim)
13 C-- QA = specific humidity [g/kg] (3-dim)
14 C-- QSAT = saturation spec. hum. [g/kg] (3-dim)
15 C-- Output: PRECLS = large-scale precipitation [g/(m^2 s)] (2-dim)
16 C-- DTLSC = temperature tendency from l.s. cond (3-dim)
17 C-- DQLSC = hum. tendency [g/(kg s)] from l.s. cond (3-dim)
18 C--
19
20
21 IMPLICIT rEAL*8 (A-H,O-Z)
22 INTEGER myThid
23
24 C Resolution parameters
25 C
26 #include "atparam.h"
27 #include "atparam1.h"
28 #include "EEPARAMS.h"
29 #include "Lev_def.h"
30 C
31 INTEGER NLAT, NLON, NLEV, NGP
32 PARAMETER ( NLON=IX, NLAT=IL, NLEV=KX, NGP=NLON*NLAT )
33
34 C Physical constants + functions of sigma and latitude
35
36 #include "com_physcon.h"
37
38 C Large-scale condensation constants
39
40 #include "com_lsccon.h"
41
42 REAL PSA(NGP), QA(NGP,NLEV), QSAT(NGP,NLEV)
43
44 REAL PRECLS(NGP), DTLSC(NGP,NLEV), DQLSC(NGP,NLEV)
45
46 INTEGER J, K
47
48
49 C-- 1. Initialization
50
51 RTLSC = 1./(TRLSC*3600)
52 TFACT = ALHC/CP
53 PRG = P0/GG
54
55 DO J=1,NGP
56 DTLSC(J,1) = 0.
57 DQLSC(J,1) = 0.
58 PRECLS(J) = 0.
59 ENDDO
60
61 C-- 2. Tendencies of temperature and moisture
62 C
63 DO K=2,NLEV
64 DO J=1,NGP
65 DQLSC(J,K) = MIN(0.,(RHLSC*QSAT(J,K)-QA(J,K)))*RTLSC
66 DTLSC(J,K) = -TFACT*DQLSC(J,K)
67 ENDDO
68 ENDDO
69
70 C-- 3. Large-scale precipitation
71
72 DO J=1,NGP
73 DO K=2,NLEVxy(J,myThid)
74 PFACT = DSIG(K)*PRG
75 PRECLS(J) = PRECLS(J)-PFACT*DQLSC(J,K)
76 ENDDO
77 ENDDO
78
79 DO J=1,NGP
80 PRECLS(J) = PRECLS(J)*PSA(J)
81 ENDDO
82
83 C--
84 RETURN
85 END

  ViewVC Help
Powered by ViewVC 1.1.22