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

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

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


Revision 1.1 - (show annotations) (download)
Wed Oct 9 01:01:24 2002 UTC (21 years, 6 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, checkpoint47i_post, checkpoint52l_pre, checkpoint48i_post, checkpoint52e_pre, hrcube4, hrcube5, checkpoint46l_post, checkpoint57g_pre, checkpoint52j_post, checkpoint47f_post, checkpoint48d_post, checkpoint51o_pre, checkpoint57f_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_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, checkpoint52b_pre, checkpoint52n_post, checkpoint54b_post, checkpoint51i_post, checkpoint57e_post, checkpoint54d_post, checkpoint47h_post, checkpoint48c_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, checkpoint46l_pre, 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, ecco-branch, checkpoint51n_branch, branch-exfmods-curt
* S/R aim_initialise.F replace S/R aim_init from file aim_do_inphys.F:
 - read AIM physics parameters from a file (data.aimphys)
 - set defaults values = F.Molteni paper (Clim.Dyn., 2002)
 - phiHyd removed from arg. list of S/R aim_do_atmos_physics

1 C $Header: $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 SUBROUTINE AIM_INITIALISE( myThid )
7 C *==================================================================*
8 C | S/R AIM_INITIALISE
9 C *==================================================================*
10 C | Initialisation of AIM atmospheric physics package :
11 C | 1) call iniphys (=> set parameters to default value)
12 C | 2) read AIM parameters
13 C | 3) initialisation of AIM arrays (time-ave)
14 C *==================================================================*
15 IMPLICIT NONE
16
17 C -------------- Global variables ------------------------------------
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "DYNVARS.h"
22 #include "GRID.h"
23 #include "AIM_DIAGS.h"
24
25 C == Routine arguments ==
26 C myThid - Number of this instance
27 INTEGER myThid
28
29 #ifdef ALLOW_AIM
30 C == Local variables ==
31 C FSG - Cell mid-point in vertical
32 C HSG - Cell face in vertical
33 C RLAT - Call mid-point latitude
34 C pGround - Lower boundary pressure
35 C J, K, bi,bj - Loop counters
36 _RL FSG( Nr)
37 _RL HSG(0:Nr)
38 _RL RLAT(sNy)
39 _RL pGround
40 INTEGER J, K
41 INTEGER Katm
42 INTEGER bi,bj
43
44 pground = 1. _d 5
45 DO K=1,Nr
46 Katm = _KD2KA( K )
47 FSG(Katm) = rC(K)/pGround
48 HSG(Katm) = rF(K)/pGround
49 ENDDO
50 K=Nr+1
51 Katm = _KD2KA( K )
52 HSG(Katm) = rF(K)/pGround
53
54 DO bj = myByLo(myThid), myByHi(myThid)
55 DO bi = myBxLo(myThid), myBxHi(myThid)
56 DO J=1,sNy
57 RLAT(J) = yC(1,J,bi,bj)*deg2rad
58 ENDDO
59 CALL INPHYS( FSG, HSG, RLAT, myThid )
60 ENDDO
61 ENDDO
62
63 CALL AIM_READ_PHYSPARMS( myThid )
64
65 #ifdef ALLOW_TIMEAVE
66 C Initialise diagnostic counters ( these are cleared on model starti i.e. not
67 C loaded from history file for now ).
68 DO bj = myByLo(myThid), myByHi(myThid)
69 DO bi = myBxLo(myThid), myBxHi(myThid)
70 CALL TIMEAVE_RESET(USTRtave, 1, bi, bj, myThid)
71 CALL TIMEAVE_RESET(VSTRtave, 1, bi, bj, myThid)
72 CALL TIMEAVE_RESET(TSRtave, 1, bi, bj, myThid)
73 CALL TIMEAVE_RESET(OLRtave, 1, bi, bj, myThid)
74 CALL TIMEAVE_RESET(SSRtave, 1, bi, bj, myThid)
75 CALL TIMEAVE_RESET(SLRtave, 1, bi, bj, myThid)
76 CALL TIMEAVE_RESET(SHFtave, 1, bi, bj, myThid)
77 CALL TIMEAVE_RESET(EVAPtave, 1, bi, bj, myThid)
78 CALL TIMEAVE_RESET(PRECNVtave, 1, bi, bj, myThid)
79 CALL TIMEAVE_RESET(PRECLStave, 1, bi, bj, myThid)
80 CALL TIMEAVE_RESET(CLOUDCtave, 1, bi, bj, myThid)
81 AIM_TimeAve(1,bi,bj) = 0.
82 ENDDO
83 ENDDO
84 #endif /* ALLOW_TIMEAVE */
85
86 #endif /* ALLOW_AIM */
87
88 RETURN
89 END

  ViewVC Help
Powered by ViewVC 1.1.22