/[MITgcm]/MITgcm/pkg/opps/opps_readparms.F
ViewVC logotype

Contents of /MITgcm/pkg/opps/opps_readparms.F

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


Revision 1.1 - (show annotations) (download)
Thu Sep 16 11:28:16 2004 UTC (19 years, 8 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint57o_post, checkpoint58e_post, checkpoint57v_post, checkpoint58u_post, checkpoint58w_post, checkpoint57m_post, checkpoint55c_post, checkpoint57s_post, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint60, checkpoint61, checkpoint62, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint58q_post, checkpoint54f_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, 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, checkpoint62i, checkpoint62h, checkpoint57c_post, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint55a_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
o initial check-in of OPPS (Paluszkiewicz + Romea, 1997)

1 C $Header: $
2 C $Name: $
3
4 #include "OPPS_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: OPPS_READPARMS
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE OPPS_READPARMS( myThid )
11
12 C !DESCRIPTION:
13 C Initialize OPPS parameters, read in data.opps
14
15 C !USES: ===============================================================
16 IMPLICIT NONE
17 #include "SIZE.h"
18 #include "EEPARAMS.h"
19 #include "OPPS.h"
20 #include "PARAMS.h"
21
22 C !INPUT PARAMETERS: ===================================================
23 C myThid :: thread number
24 INTEGER myThid
25
26 C !OUTPUT PARAMETERS: ==================================================
27 C none
28
29 #ifdef ALLOW_OPPS
30
31 C !LOCAL VARIABLES: ====================================================
32 C iUnit :: unit number for I/O
33 C msgBuf :: message buffer
34 INTEGER iUnit
35 CHARACTER*(MAX_LEN_MBUF) msgBuf
36 CEOP
37
38 NAMELIST /OPPS_PARM01/
39 & MAX_ABE_ITERATIONS,
40 & OPPSdebugLevel,
41 & PlumeRadius,
42 & STABILITY_THRESHOLD,
43 & FRACTIONAL_AREA,
44 & MAX_FRACTIONAL_AREA,
45 & VERTICAL_VELOCITY,
46 & ENTRAINMENT_RATE,
47 & useGCMwVel,
48 & OPPSdumpFreq,
49 & OPPStaveFreq,
50 & OPPSwriteState
51
52 C This routine has been called by the main model so we set our
53 C internal flag to indicate we are in business
54 OPPSisON=.TRUE.
55
56 C Set defaults values for parameters in OPPS.h
57 MAX_ABE_ITERATIONS = 1
58 OPPSdebugLevel = 0
59 PlumeRadius = 100. _d 0
60 STABILITY_THRESHOLD = -1. _d -4
61 FRACTIONAL_AREA = .1 _d 0
62 MAX_FRACTIONAL_AREA = .8 _d 0
63 VERTICAL_VELOCITY = .03 _d 0
64 ENTRAINMENT_RATE = -.05 _d 0
65 OPPSdumpFreq = dumpFreq
66 OPPStaveFreq = taveFreq
67 OPPSwriteState = .FALSE.
68 useGCMwVel = .FALSE.
69
70 C Open and read the data.opps file
71 _BEGIN_MASTER(myThid)
72 WRITE(msgBuf,'(A)') ' OPPS_READPARMS: opening data.opps'
73 CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
74 & SQUEEZE_RIGHT , 1)
75 CALL OPEN_COPY_DATA_FILE(
76 I 'data.opps', 'OPPS_READPARMS',
77 O iUnit,
78 I myThid )
79 READ(UNIT=iUnit,NML=OPPS_PARM01)
80 WRITE(msgBuf,'(A)')
81 & ' OPPS_READPARMS: finished reading data.opps'
82 CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
83 & SQUEEZE_RIGHT , 1)
84
85 C Close the open data file
86 CLOSE(iUnit)
87 _END_MASTER(myThid)
88
89 C Everyone else must wait for the parameters to be loaded
90 _BARRIER
91
92 C Now set-up any remaining parameters that result from the input parameters
93 e2 = 2.*ENTRAINMENT_RATE
94 #endif /* ALLOW_OPPS */
95
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22