/[MITgcm]/MITgcm/pkg/land/land_initialise.F
ViewVC logotype

Annotation of /MITgcm/pkg/land/land_initialise.F

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


Revision 1.1 - (hide annotations) (download)
Thu Jun 12 17:54:22 2003 UTC (21 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52j_post, checkpoint51o_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint51l_post, checkpoint51j_post, branchpoint-genmake2, checkpoint51q_post, checkpoint52j_pre, checkpoint50h_post, branch-netcdf, checkpoint51r_post, checkpoint52k_post, checkpoint52b_pre, checkpoint51a_post, checkpoint51i_post, checkpoint52d_pre, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, checkpoint51c_post, checkpoint51f_pre, checkpoint51o_post, checkpoint51p_post, checkpoint51, checkpoint52, checkpoint51f_post, checkpoint52d_post, checkpoint51b_pre, checkpoint52a_post, checkpoint52b_post, checkpoint52f_post, checkpoint52c_post, checkpoint51h_pre, checkpoint51g_post, ecco_c52_e35, hrcube5, checkpoint52a_pre, checkpoint51d_post, checkpoint52i_post, checkpoint51t_post, checkpoint51n_post, checkpoint51i_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51m_post, checkpoint51s_post
Branch point for: netcdf-sm0, branch-nonh, branch-genmake2, tg2-branch, checkpoint51n_branch
A simple land model implemented for AIM (_v23) atmospheric physics

1 jmc 1.1 C $Header: $
2     C $Name: $
3    
4     #include "LAND_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: LAND_INITIALISE
8     C !INTERFACE:
9     SUBROUTINE LAND_INITIALISE( myThid )
10    
11     C !DESCRIPTION: \bv
12     C *==========================================================*
13     C | S/R LAND_INITIALISE
14     C | o Read Land package parameters (from file data.land)
15     C | o Initialize Land package variables
16     C *==========================================================*
17     C \ev
18    
19     C !USES:
20     IMPLICIT NONE
21    
22     C == Global variables ===
23    
24     C-- size for MITgcm & Land package :
25     #include "LAND_SIZE.h"
26    
27     #include "EEPARAMS.h"
28     #include "PARAMS.h"
29     #include "LAND_PARAMS.h"
30     #include "LAND_VARS.h"
31    
32    
33     C !INPUT/OUTPUT PARAMETERS:
34     C == Routine Arguments ==
35     C myThid :: Number of this instance
36     INTEGER myThid
37     CEOP
38    
39     #ifdef ALLOW_LAND
40    
41     C == Local Variables ==
42     C msgBuf :: Informational/error meesage buffer
43     C i,j,k,bi,bj :: loop indices
44     CHARACTER*(MAX_LEN_MBUF) msgBuf
45     INTEGER i,j,k,bi,bj
46    
47     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
48     C- for now, Land package works only with AIM package:
49     IF ( .NOT.useAIM ) THEN
50     WRITE(msgBuf,'(A)')
51     & 'LAND_INITIALISE: land pkg only implemented for AIM physics'
52     CALL PRINT_ERROR( msgBuf, myThid)
53     WRITE(msgBuf,'(A)')
54     & 'DO NOT use Land (useLand=T) without AIM (useAIM=F, data.pkg)'
55     CALL PRINT_ERROR( msgBuf, myThid)
56     STOP 'ABNORMAL END: S/R LAND_INITIALISE'
57     ENDIF
58    
59     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
60    
61     C-- Read LAND parameters (from file data.land):
62     CALL LAND_READPARMS( myThid )
63    
64     C-- Initialize Land package variables
65    
66     C- Over all tiles
67     DO bj = myByLo(myThid), myByHi(myThid)
68     DO bi = myBxLo(myThid), myBxHi(myThid)
69    
70     C- 3D arrays
71     DO K=1,land_nLev
72     DO J=1-Oly,sNy+Oly
73     DO I=1-Olx,sNx+Olx
74     land_groundT(i,j,k,bi,bj) = 0. _d 0
75     land_groundW(i,j,k,bi,bj) = 0. _d 0
76     ENDDO
77     ENDDO
78     ENDDO
79    
80     C- 2D arrays
81     DO J=1-Oly,sNy+Oly
82     DO I=1-Olx,sNx+Olx
83     land_runOff(i,j,bi,bj) = 0. _d 0
84     land_HeatFLx(i,j,bi,bj) = 0. _d 0
85     land_Pr_m_Ev(i,j,bi,bj) = 0. _d 0
86     ENDDO
87     ENDDO
88    
89     C- end bi,bj loops
90     ENDDO
91     ENDDO
92    
93     #endif /* ALLOW_LAND */
94    
95     RETURN
96     END

  ViewVC Help
Powered by ViewVC 1.1.22