/[MITgcm]/MITgcm/pkg/ebm/ebm_readparms.F
ViewVC logotype

Annotation of /MITgcm/pkg/ebm/ebm_readparms.F

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


Revision 1.1 - (hide annotations) (download)
Fri May 14 21:10:34 2004 UTC (20 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint57o_post, checkpoint58e_post, checkpoint57v_post, checkpoint53d_post, checkpoint58u_post, checkpoint58w_post, checkpoint54a_pre, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint57s_post, checkpoint54a_post, checkpoint53c_post, checkpoint63a, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint54d_post, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint53b_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post
Commiting new energy balance model to repository
o package is pkg/ebm
o verif. is verification/global_ocean_ebm
o references are in ebm_driver.F
Will need long integration testing.

1 heimbach 1.1 C $Header: $
2     C $Name: $
3     #include "EBM_OPTIONS.h"
4    
5     SUBROUTINE EBM_READPARMS( myThid )
6     C /==========================================================\
7     C | SUBROUTINE EBM_READPARMS |
8     C | o Routine to read in file data.ebm |
9     C \==========================================================/
10     IMPLICIT NONE
11    
12     C === Global variables ===
13     #include "SIZE.h"
14     #include "EEPARAMS.h"
15     #include "PARAMS.h"
16     #include "GRID.h"
17     #ifdef ALLOW_EBM
18     #include "EBM.h"
19     #endif
20    
21     C === Routine arguments ===
22     C myThid - Number of this instance
23     INTEGER myThid
24    
25     #ifdef ALLOW_EBM
26    
27     C === Local variables ===
28     C msgBuf - Informational/error meesage buffer
29     C errIO - IO error flag
30     C iUnit - Work variable for IO unit number
31    
32     CHARACTER*(MAX_LEN_MBUF) msgBuf
33     INTEGER errIO, iUnit
34    
35     C-- Namelist
36     NAMELIST /EBM_PARM01/
37     & tauThetaZonRelax, lambdaThetaZonRelax,
38     & scale_runoff,
39     & RunoffFile
40    
41     _BEGIN_MASTER(myThid)
42    
43     WRITE(msgBuf,'(A)') ' ebm_readparms: opening data.ebm'
44     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
45     & SQUEEZE_RIGHT , 1)
46    
47     CALL OPEN_COPY_DATA_FILE(
48     I 'data.ebm', 'ebm_readparms',
49     O iUnit, myThid )
50    
51     C-- set default
52     tauThetaZonRelax = 0.
53     lambdaThetaZonRelax = 0.
54     scale_runoff = 1.
55     RunoffFile = ' '
56    
57     C-----------------------------------------------------------------------
58    
59     C-- Read settings from model parameter file "data.ebm".
60     READ(UNIT=iUnit,NML=EBM_PARM01,IOSTAT=errIO)
61     IF ( errIO .LT. 0 ) THEN
62     WRITE(msgBuf,'(A)')
63     & 'S/R ebm_readparms'
64     CALL PRINT_ERROR( msgBuf , 1)
65     WRITE(msgBuf,'(A)')
66     & 'Error reading numerical model '
67     CALL PRINT_ERROR( msgBuf , 1)
68     WRITE(msgBuf,'(A)')
69     & 'parameter file "data.ebm"'
70     CALL PRINT_ERROR( msgBuf , 1)
71     WRITE(msgBuf,'(A)')
72     & 'Problem in namelist EBM_PARM01'
73     CALL PRINT_ERROR( msgBuf , 1)
74     C CALL MODELDATA_EXAMPLE( myThid )
75     STOP 'ABNORMAL END: S/R ebm_readparms'
76     ENDIF
77    
78     CLOSE(iUnit)
79    
80     WRITE(msgBuf,'(A)') ' ebm_readparms: finished reading data.ebm'
81     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
82     & SQUEEZE_RIGHT , 1)
83    
84     IF ( tauThetaZonRelax .NE. 0. _d 0 ) THEN
85     lambdaThetaZonRelax = 1./tauThetaZonRelax
86     ENDIF
87    
88     _END_MASTER(myThid)
89    
90     C-- Everyone else must wait for the parameters to be loaded
91     _BARRIER
92    
93     #endif /* ALLOW_EBM */
94    
95     return
96     end

  ViewVC Help
Powered by ViewVC 1.1.22