/[MITgcm]/MITgcm_contrib/jscott/pkg_atm2d/atm2d_readparms.F
ViewVC logotype

Annotation of /MITgcm_contrib/jscott/pkg_atm2d/atm2d_readparms.F

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


Revision 1.2 - (hide annotations) (download)
Tue Aug 22 20:21:38 2006 UTC (18 years, 11 months ago) by jscott
Branch: MAIN
Changes since 1.1: +4 -2 lines
new revision of atm2d package

1 jscott 1.1 #include "ctrparam.h"
2     #include "ATM2D_OPTIONS.h"
3    
4     C
5     SUBROUTINE ATM2D_READPARMS( myThid )
6     C /==========================================================\
7     C | SUBROUTINE ATM2D_READPARMS |
8     C |==========================================================|
9     C | Initialize 1DTO2D parameters, read in data.1dto2d |
10     C \==========================================================/
11     IMPLICIT NONE
12    
13     #include "ATMSIZE.h"
14     #include "SIZE.h"
15     #include "EEPARAMS.h"
16     #include "ATM2D_VARS.h"
17    
18     C === Routine arguments ===
19     INTEGER myThid
20    
21     NAMELIST /PARM01_ATM2D/
22     & atmosTauuFile, atmosTauvFile,atmosWindFile
23    
24     NAMELIST /PARM02_ATM2D/
25     & tauuFile, tauvFile, windFile,
26     & qnetFile, evapFile, precipFile
27    
28     NAMELIST /PARM03_ATM2D/
29     & thetaRelaxFile, saltRelaxFile,
30     & tauThetaRelax, tauSaltRelax,
31     & nttyperelax, nstyperelax
32    
33     NAMELIST /PARM04_ATM2D/
34     & runoffFile, runoffMapFile,
35     & numbands, rband
36    
37     NAMELIST /PARM05_ATM2D/
38     & useObsEmP,useObsRunoff,useAltDeriv
39    
40    
41     C === Local variables ===
42     C msgBuf - Informational/error meesage buffer
43     C iUnit - Work variable for IO unit number
44     CHARACTER*(MAX_LEN_MBUF) msgBuf
45     INTEGER iUnit
46     INTEGER j
47    
48    
49     WRITE(msgBuf,'(A)') ' ATM2D_READPARMS: opening data.atm2d'
50     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
51     & SQUEEZE_RIGHT , 1)
52    
53     CALL OPEN_COPY_DATA_FILE(
54     I 'data.atm2d', 'ATM2D_READPARMS',
55     O iUnit,
56     I myThid )
57    
58     C-- Default values
59     atmosTauuFile=' '
60     atmosTauvFile=' '
61     atmosWindFile=' '
62     tauuFile=' '
63     tauvFile=' '
64     windFile=' '
65     qnetFile=' '
66     evapFile=' '
67     precipFile=' '
68     runoffFile=' '
69     thetaRelaxFile=' '
70     saltRelaxFile=' '
71     runoffFile=' '
72     runoffMapFile=' '
73     C
74     useObsEmP=.FALSE.
75     useObsRunoff=.FALSE.
76     useAltDeriv=.FALSE.
77     C
78     r_tauThetaRelax=0. _d 0
79     r_tauSaltRelax=0. _d 0
80     ntTypeRelax=0
81     nsTypeRelax=0
82    
83     numBands=1
84     do j=1,sNy
85     rband(j)=0
86     enddo
87    
88     c-- Read parameters from open data file
89     READ(UNIT=iUnit,NML=PARM01_ATM2D)
90     c
91     READ(UNIT=iUnit,NML=PARM02_ATM2D)
92     c
93     READ(UNIT=iUnit,NML=PARM03_ATM2D)
94     c
95     READ(UNIT=iUnit,NML=PARM04_ATM2D)
96     c
97     READ(UNIT=iUnit,NML=PARM05_ATM2D)
98     c
99     WRITE(msgBuf,'(A)') ' ATM2D_READPARMS: read PARM01_ATM2D'
100     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
101     & SQUEEZE_RIGHT , 1)
102    
103     C-- Close the open data file
104     CLOSE(iUnit)
105    
106 jscott 1.2 IF (tauThetaRelax .NE. 0. _d 0)
107     & r_tauThetaRelax= 1. _d 0/tauThetaRelax
108     IF (tauSaltRelax .NE. 0. _d 0)
109     & r_tauSaltRelax= 1. _d 0/tauSaltRelax
110 jscott 1.1
111     RETURN
112     END
113    

  ViewVC Help
Powered by ViewVC 1.1.22