/[MITgcm]/MITgcm/pkg/my82/my82_readparms.F
ViewVC logotype

Annotation of /MITgcm/pkg/my82/my82_readparms.F

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


Revision 1.2 - (hide annotations) (download)
Tue Jan 20 00:26:04 2009 UTC (15 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64x, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint62, checkpoint63, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.1: +9 -9 lines
add missing "_d 0"

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/pkg/my82/my82_readparms.F,v 1.1 2004/09/02 09:11:54 mlosch Exp $
2 mlosch 1.1 C $Name: $
3    
4     #include "MY82_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: MY82_READPARMS
8    
9     C !INTERFACE: ==========================================================
10     SUBROUTINE MY82_READPARMS( myThid )
11    
12     C !DESCRIPTION:
13     C Initialize MY82 parameters, read in data.pp
14    
15     C !USES: ===============================================================
16     IMPLICIT NONE
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "MY82.h"
20     #include "PARAMS.h"
21    
22     C !INPUT PARAMETERS: ===================================================
23 jmc 1.2 C myThid :: thread number
24 mlosch 1.1 INTEGER myThid
25    
26     C !OUTPUT PARAMETERS: ==================================================
27     C none
28    
29     #ifdef ALLOW_MY82
30    
31     C !LOCAL VARIABLES: ====================================================
32 jmc 1.2 C iUnit :: unit number for I/O
33     C msgBuf :: message buffer
34 mlosch 1.1 INTEGER iUnit
35     CHARACTER*(MAX_LEN_MBUF) msgBuf
36     CEOP
37    
38     NAMELIST /MY_PARM01/
39 jmc 1.2 & MYviscMax,
40     & MYdiffMax,
41 mlosch 1.1 & MYhblScale,
42     & MYdumpFreq,
43     & MYMixingMaps,
44     & MYwriteState,
45     & MYtaveFreq
46    
47     C This routine has been called by the main model so we set our
48     C internal flag to indicate we are in business
49     MYisON=.TRUE.
50    
51     C Set defaults values for parameters in MY82.h
52     MYviscMax = 1. _d 0
53     MYdiffMax = 1. _d 0
54 jmc 1.2 MYhblScale = 0.1 _d 0
55     RiMax = 0.1950 _d 0
56 mlosch 1.1 MYdumpFreq = dumpFreq
57     MYtaveFreq = taveFreq
58     MYMixingMaps = .FALSE.
59     MYwriteState = .FALSE.
60    
61     C Open and read the data.pp file
62     _BEGIN_MASTER(myThid)
63     WRITE(msgBuf,'(A)') ' MY82_READPARMS: opening data.my82'
64     CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
65     & SQUEEZE_RIGHT , 1)
66     CALL OPEN_COPY_DATA_FILE(
67     I 'data.my82', 'MY82_READPARMS',
68     O iUnit,
69     I myThid )
70     READ(UNIT=iUnit,NML=MY_PARM01)
71     WRITE(msgBuf,'(A)')
72     & ' MY82_READPARMS: finished reading data.my82'
73     CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
74     & SQUEEZE_RIGHT , 1)
75    
76     C Close the open data file
77     CLOSE(iUnit)
78     _END_MASTER(myThid)
79    
80     C Everyone else must wait for the parameters to be loaded
81     _BARRIER
82    
83 jmc 1.2 C Now set-up any remaining parameters that result from the input parameters
84 mlosch 1.1 IF ( MYviscMax .LE. 0. ) THEN
85     WRITE(msgBuf,'(A)') 'MYviscMax must be greater than zero'
86     CALL PRINT_ERROR( msgBuf , 1)
87     STOP 'ABNORMAL END: S/R MY82_READPARMS'
88     ENDIF
89     IF ( MYdiffMax .LE. 0. ) THEN
90     WRITE(msgBuf,'(A)') 'MYdiffMax must be greater than zero'
91     CALL PRINT_ERROR( msgBuf , 1)
92     STOP 'ABNORMAL END: S/R MY82_READPARMS'
93     ENDIF
94     #endif /* ALLOW_MY82 */
95    
96     RETURN
97     END

  ViewVC Help
Powered by ViewVC 1.1.22