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

Annotation of /MITgcm/pkg/aim/aim_do_inphys.F

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


Revision 1.3 - (hide annotations) (download)
Tue Mar 6 18:01:13 2001 UTC (23 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: c37_adj, checkpoint39, checkpoint38, checkpoint37
Branch point for: pre38
Changes since 1.2: +15 -15 lines
change Time-Average routine names (new package) ; use CPP-opt ALLOW_TIMEAVE

1 jmc 1.3 C $Header: /u/gcmpack/models/MITgcmUV/pkg/aim/aim_do_inphys.F,v 1.2 2001/02/02 21:36:29 adcroft Exp $
2     C $Name: $
3 adcroft 1.2
4     #include "AIM_OPTIONS.h"
5    
6     SUBROUTINE AIM_INIT( myThid )
7     C /==================================================================\
8     C | S/R AIM_INIT |
9     C |==================================================================|
10     C | Interface between AIM atmospheric physics package and the |
11     C | dynamical model for initialisation. |
12     C \==================================================================/
13     IMPLICIT rEAL*8 (A-H,O-Z)
14    
15     C -------------- Global variables ------------------------------------
16     #include "SIZE.h"
17     #include "EEPARAMS.h"
18     #include "PARAMS.h"
19     #include "DYNVARS.h"
20     #include "GRID.h"
21     #include "AIM_DIAGS.h"
22    
23     C == Routine arguments ==
24     C myThid - Number of this instance
25     INTEGER myThid
26    
27     #ifdef ALLOW_AIM
28     C == Local variables ==
29     C FSG - Cell mid-point in vertical
30     C HSG - Cell face in vertical
31     C RLAT - Call mid-point latitude
32     C pGround - Lower boundary pressure
33     C J, K - Loop counters
34     REAL FSG( Nr)
35     REAL HSG( Nr+1)
36     REAL RLAT(sNy)
37     INTEGER J, K
38     INTEGER Katm
39    
40     pground = 1. _d 5
41     DO K=1,Nr
42     Katm = _KD2KA( K )
43     FSG(Katm ) = rC(K)/pGround
44     HSG(Katm+1) = rF(K)/pGround
45     ENDDO
46     HSG(1) = rF(Nr+1)/pGround
47    
48     DO J=1,sNy
49     RLAT(J) = yC(1,J,1,1)*deg2rad
50     ENDDO
51    
52     CALL INPHYS( FSG, HSG, RLAT )
53    
54 jmc 1.3 #ifdef ALLOW_TIMEAVE
55 adcroft 1.2 C Initialise diagnostic counters ( these are cleared on model starti i.e. not
56     C loaded from history file for now ).
57     DO bj = myByLo(myThid), myByHi(myThid)
58     DO bi = myBxLo(myThid), myBxHi(myThid)
59 jmc 1.3 CALL TIMEAVE_RESET(USTRtave, 1, bi, bj, myThid)
60     CALL TIMEAVE_RESET(VSTRtave, 1, bi, bj, myThid)
61     CALL TIMEAVE_RESET(TSRtave, 1, bi, bj, myThid)
62     CALL TIMEAVE_RESET(OLRtave, 1, bi, bj, myThid)
63     CALL TIMEAVE_RESET(SSRtave, 1, bi, bj, myThid)
64     CALL TIMEAVE_RESET(SLRtave, 1, bi, bj, myThid)
65     CALL TIMEAVE_RESET(SHFtave, 1, bi, bj, myThid)
66     CALL TIMEAVE_RESET(EVAPtave, 1, bi, bj, myThid)
67     CALL TIMEAVE_RESET(PRECNVtave, 1, bi, bj, myThid)
68     CALL TIMEAVE_RESET(PRECLStave, 1, bi, bj, myThid)
69     CALL TIMEAVE_RESET(CLOUDCtave, 1, bi, bj, myThid)
70 adcroft 1.2 AIM_TimeAve(1,bi,bj) = 0.
71     ENDDO
72     ENDDO
73 jmc 1.3 #endif /* ALLOW_TIMEAVE */
74 adcroft 1.2
75     #endif /* ALLOW_AIM */
76    
77     RETURN
78     END

  ViewVC Help
Powered by ViewVC 1.1.22