/[MITgcm]/MITgcm/pkg/aim/com_physvar.h
ViewVC logotype

Contents of /MITgcm/pkg/aim/com_physvar.h

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


Revision 1.4 - (show annotations) (download)
Fri Sep 27 20:01:57 2002 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint48f_post, checkpoint51k_post, checkpoint53f_post, checkpoint47j_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint48d_pre, checkpoint51l_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint57m_post, checkpoint52l_pre, checkpoint48i_post, checkpoint52e_pre, hrcube4, hrcube5, checkpoint57g_pre, checkpoint52j_post, checkpoint47f_post, checkpoint48d_post, checkpoint51o_pre, checkpoint57f_post, checkpoint46j_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_post, checkpoint46i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint57j_post, checkpoint47a_post, checkpoint57b_post, checkpoint52d_pre, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint48a_post, checkpoint55d_pre, checkpoint51f_pre, checkpoint57g_post, checkpoint48e_post, checkpoint57c_pre, checkpoint48h_post, checkpoint55j_post, checkpoint56b_post, checkpoint50c_pre, checkpoint57h_pre, branchpoint-genmake2, checkpoint46k_post, checkpoint52j_pre, checkpoint54a_post, branch-netcdf, checkpoint50d_pre, checkpoint55h_post, checkpoint51r_post, checkpoint47i_post, checkpoint52b_pre, checkpoint52n_post, checkpoint54b_post, checkpoint46l_pre, checkpoint46j_pre, checkpoint51i_post, checkpoint57e_post, checkpoint54d_post, checkpoint47h_post, checkpoint48c_post, checkpoint46l_post, checkpoint56c_post, checkpoint54e_post, checkpoint55b_post, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, checkpoint52m_post, checkpoint51c_post, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57a_post, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint56, checkpoint57o_post, checkpoint55g_post, checkpoint57h_done, checkpoint51o_post, checkpoint48g_post, checkpoint57k_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint57h_post, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint53b_post, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52d_post, checkpoint51b_pre, checkpoint52a_post, checkpoint47g_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint57n_post, checkpoint52c_post, checkpoint46m_post, checkpoint57p_post, checkpoint51h_pre, checkpoint50g_post, checkpoint50b_pre, checkpoint51g_post, ecco_c52_e35, checkpoint54f_post, checkpoint51f_post, checkpoint48b_post, checkpoint50b_post, eckpoint57e_pre, checkpoint57c_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52a_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint51m_post, checkpoint51t_post, checkpoint53d_pre, checkpoint47, checkpoint55e_post, checkpoint54c_post, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint55i_post, checkpoint51i_pre, checkpoint57l_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51s_post, checkpoint55d_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch, branch-exfmods-curt
Changes since 1.3: +101 -97 lines
File MIME type: text/plain
Clean up AIM package (and keep the results unchanged):
a) include CPP_OPTION and use IMPLICT NONE in all routines ;
  declare all the variables _RL ;
b) use _d 0 for all numerical constants in Physics package,
  so that the code works with g77 (and give the right answer)
c) use ifdef ALLOW_AIM everywhere so that the package can be
 compiled without increasing the memory size.

1 C $Header: /u/gcmpack/MITgcm/pkg/aim/com_physvar.h,v 1.3 2001/05/29 19:28:53 cnh Exp $
2 C $Name: $
3
4 #ifdef ALLOW_AIM
5
6 C-- COMMON /PHYGR1/ : Model variables on gaussian grid
7 C UG1 = u-wind
8 C VG1 = v-wind
9 C TG1 = abs. temperature
10 C QG1 = specific humidity (g/kg)
11 C PHIG1 = geopotential
12 C PSLG1 = log. of surface pressure
13 C Vsurfsq = Square of surface wind speed (grid position = as T,Q)
14 COMMON /PHYGR1/ UG1, VG1, TG1, QG1, PHIG1, PSLG1, Vsurfsq
15 _RL UG1(NGP,NLEV,MAX_NO_THREADS)
16 _RL VG1(NGP,NLEV,MAX_NO_THREADS)
17 _RL TG1(NGP,NLEV,MAX_NO_THREADS)
18 _RL QG1(NGP,NLEV,MAX_NO_THREADS)
19 _RL PHIG1(NGP,NLEV,MAX_NO_THREADS)
20 _RL PSLG1(NGP,MAX_NO_THREADS)
21 _RL Vsurfsq(NGP,MAX_NO_THREADS)
22
23 C-- COMMON /PHYGR2/ : Diagnosed upper-air variables
24 C SE = dry static energy
25 C RH = relative humidity
26 C QSAT = saturation specific humidity (g/kg)
27 COMMON /PHYGR2/ SE, RH, QSAT
28 _RL SE(NGP,NLEV,MAX_NO_THREADS)
29 _RL RH(NGP,NLEV,MAX_NO_THREADS)
30 _RL QSAT(NGP,NLEV,MAX_NO_THREADS)
31
32
33 C-- COMMON /PHYGR3/ : Diagnosed surface variables
34 C PSG = surface pressure
35 C TS = surface temperature
36 C TSKIN = skin temperature (not yet implemented)
37 C CLOUDC = total cloud cover (fraction)
38 C PNLEVW = Surface pressure for the computation of the surface fluxes
39 COMMON /PHYGR3/ PSG, TS, TSKIN, CLOUDC, PNLEVW
40 _RL PSG (NGP,MAX_NO_THREADS)
41 _RL TS (NGP,MAX_NO_THREADS)
42 _RL TSKIN (NGP,MAX_NO_THREADS)
43 _RL CLOUDC(NGP,MAX_NO_THREADS)
44 _RL PNLEVW(NGP,MAX_NO_THREADS)
45
46 C-- COMMON /PHYTEN/ : Physical param. tendencies
47 C TT_CNV = temperature tendency due to convection
48 C QT_CNV = sp. humidity tendency due to convection
49 C TT_LSC = temperature tendency due to large-scale condensation
50 C QT_LSC = sp. humidity tendency due to large-scale condensation
51 C TT_RSW = temperature tendency due to short-wave radiation
52 C TT_RLW = temperature tendency due to long-wave radiation
53 C UT_PBL = u-wind tendency due to PBL and diffusive processes
54 C VT_PBL = v-wind tendency due to PBL and diffusive processes
55 C TT_PBL = temperature tendency due to PBL and diffusive processes
56 C QT_PBL = sp. humidity tendency due to PBL and diffusive processes
57 COMMON /PHYTEN/ TT_CNV, QT_CNV, TT_LSC, QT_LSC,
58 & TT_RSW, TT_RLW, UT_PBL, VT_PBL, TT_PBL, QT_PBL
59 _RL TT_CNV(NGP,NLEV,MAX_NO_THREADS)
60 _RL QT_CNV(NGP,NLEV,MAX_NO_THREADS)
61 _RL TT_LSC(NGP,NLEV,MAX_NO_THREADS)
62 _RL QT_LSC(NGP,NLEV,MAX_NO_THREADS)
63 _RL TT_RSW(NGP,NLEV,MAX_NO_THREADS)
64 _RL TT_RLW(NGP,NLEV,MAX_NO_THREADS)
65 _RL UT_PBL(NGP,NLEV,MAX_NO_THREADS)
66 _RL VT_PBL(NGP,NLEV,MAX_NO_THREADS)
67 _RL TT_PBL(NGP,NLEV,MAX_NO_THREADS)
68 _RL QT_PBL(NGP,NLEV,MAX_NO_THREADS)
69
70 C--
71 C-- COMMON /FLUXES/ : Surface and upper boundary fluxes
72 C PRECNV = convective precipitation [g/(m^2 s)]
73 C PRECLS = large-scale precipitation [g/(m^2 s)]
74 C CBMF = cloud-base mass flux
75 C TSR = top-of-atm. shortwave radiation (downward)
76 C SSR = surface shortwave radiation (downward)
77 C SLR = surface longwave radiation (upward)
78 C OLR = outgoing longwave radiation (upward)
79 C USTR = u-stress (1: land, 2: sea, 3: weighted average)
80 C VSTR = v-stress (1: land, 2: sea, 3: weighted average)
81 C SHF = sensible heat flux (1: land, 2: sea, 3: w. average)
82 C EVAP = evaporation [g/(m^2 s)] (1: land, 2: sea, 3: w. average)
83 C DRAG = surface Drag term (= Cd*Rho*|V|)
84 COMMON /FLUXES/ PRECNV, PRECLS, CBMF, TSR, SSR, SLR, OLR,
85 & USTR, VSTR, SHF, EVAP, T0, Q0, QSAT0,
86 & SLR_DOWN, ST4S, SPEED0, DRAG
87 _RL PRECNV (NGP,MAX_NO_THREADS)
88 _RL PRECLS (NGP,MAX_NO_THREADS)
89 _RL CBMF (NGP,MAX_NO_THREADS)
90 _RL TSR (NGP,MAX_NO_THREADS)
91 _RL SSR (NGP,MAX_NO_THREADS)
92 _RL SLR (NGP,MAX_NO_THREADS)
93 _RL OLR (NGP,MAX_NO_THREADS)
94 _RL USTR (NGP,3,MAX_NO_THREADS)
95 _RL VSTR (NGP,3,MAX_NO_THREADS)
96 _RL SHF (NGP,3,MAX_NO_THREADS)
97 _RL EVAP (NGP,3,MAX_NO_THREADS)
98 _RL T0 (NGP,2,MAX_NO_THREADS)
99 _RL Q0 (NGP,MAX_NO_THREADS)
100 _RL QSAT0 (NGP,2,MAX_NO_THREADS)
101 _RL SLR_DOWN(NGP,MAX_NO_THREADS)
102 _RL ST4S (NGP,MAX_NO_THREADS)
103 _RL SPEED0 (NGP,MAX_NO_THREADS)
104 _RL DRAG (NGP,MAX_NO_THREADS)
105
106 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
107 #endif /* ALLOW_AIM */

  ViewVC Help
Powered by ViewVC 1.1.22