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

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

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


Revision 1.2 - (hide annotations) (download)
Thu Jul 31 18:22:10 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint51e_post, checkpoint51k_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52j_post, checkpoint51o_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint51l_post, checkpoint51q_post, checkpoint51j_post, hrcube_1, branch-netcdf, checkpoint52d_pre, checkpoint51r_post, checkpoint52k_post, checkpoint52b_pre, checkpoint51f_pre, checkpoint51o_post, checkpoint51p_post, checkpoint52a_pre, checkpoint51i_post, checkpoint52, checkpoint51f_post, checkpoint52d_post, checkpoint52a_post, checkpoint52b_post, checkpoint52f_post, branchpoint-genmake2, checkpoint52c_post, checkpoint51h_pre, checkpoint51l_pre, checkpoint51g_post, ecco_c52_e35, hrcube5, checkpoint52i_post, checkpoint52j_pre, checkpoint51t_post, checkpoint51n_post, checkpoint51i_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint51m_post, checkpoint51s_post
Branch point for: branch-nonh, branch-genmake2, tg2-branch, checkpoint51n_branch, netcdf-sm0
Changes since 1.1: +17 -5 lines
read initial state from files.

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/pkg/land/land_ini_vars.F,v 1.1 2003/06/12 17:54:22 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "LAND_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: LAND_INI_VARS
8     C !INTERFACE:
9     SUBROUTINE LAND_INI_VARS( myThid )
10    
11     C !DESCRIPTION: \bv
12     C *==========================================================*
13     C | S/R LAND_INI_VARS
14     C | o Initialize Land package variables
15     C *==========================================================*
16     C | for now, used only for a restart
17     C *==========================================================*
18     C \ev
19    
20     C !USES:
21     IMPLICIT NONE
22    
23     C == Global variables ===
24    
25     C-- size for MITgcm & Land package :
26     #include "LAND_SIZE.h"
27    
28     #include "EEPARAMS.h"
29     #include "PARAMS.h"
30     #include "LAND_PARAMS.h"
31 jmc 1.2 #include "LAND_VARS.h"
32 jmc 1.1
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 CHARACTER*(MAX_LEN_MBUF) msgBuf
44    
45     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
46    
47 jmc 1.2
48 jmc 1.1 IF ( startTime.EQ.0. .AND. nIter0.EQ.0 ) THEN
49    
50 jmc 1.2 C-- Define the initial state : read from file
51     _BEGIN_MASTER( myThid )
52     IF ( land_grT_iniFile .NE. ' ' ) THEN
53     CALL MDSREADFIELD( land_grT_iniFile, readBinaryPrec, 'RL',
54     & land_nLev, land_groundT, 1, myThid)
55     ENDIF
56     IF ( land_grW_iniFile .NE. ' ' ) THEN
57     CALL MDSREADFIELD( land_grW_iniFile, readBinaryPrec, 'RL',
58     & land_nLev, land_groundW, 1, myThid)
59     ENDIF
60     _END_MASTER(myThid)
61 jmc 1.1
62     ELSEIF ( land_calc_grT .OR. land_calc_grW ) THEN
63    
64     C-- Read Land package state variables from pickup file
65     CALL LAND_READ_PICKUP( nIter0, myThid )
66    
67 jmc 1.2 c ELSE
68     C- a trick to allow to start without a land pickup:
69     C load grT & grW from AIM surf. BC in S/R aim_land2aim
70 jmc 1.1 ENDIF
71    
72     #endif /* ALLOW_LAND */
73    
74     RETURN
75     END

  ViewVC Help
Powered by ViewVC 1.1.22