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 |