/[MITgcm]/MITgcm/pkg/flt/flt_readparms.F
ViewVC logotype

Annotation of /MITgcm/pkg/flt/flt_readparms.F

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


Revision 1.9 - (hide annotations) (download)
Tue May 27 23:41:28 2014 UTC (9 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64z, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e
Changes since 1.8: +11 -1 lines
add a call to S/R packages_unused_msg.F to print a weak warning
when parameter file "data.this_pkg" exist but  but useTHIS_PKG=F

1 jmc 1.9 C $Header: /u/gcmpack/MITgcm/pkg/flt/flt_readparms.F,v 1.8 2012/09/12 22:03:00 dfer Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "FLT_OPTIONS.h"
5    
6     SUBROUTINE FLT_READPARMS( myThid )
7    
8     C ==================================================================
9     C SUBROUTINE FLT_READPARMS
10     C ==================================================================
11     C o read float-pkg parameters from file "data.flt"
12 jmc 1.2 C ==================================================================
13    
14     C !USES:
15     IMPLICIT NONE
16 jmc 1.1
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "PARAMS.h"
20 jahn 1.5 #include "FLT_SIZE.h"
21 jmc 1.1 #include "FLT.h"
22    
23     C == routine arguments ==
24     C myThid - thread number for this instance of the routine.
25     INTEGER myThid
26    
27     C == local variables ==
28     CHARACTER*(MAX_LEN_MBUF) msgBuf
29     INTEGER iUnit
30    
31     NAMELIST /FLT_NML/ flt_int_traj, flt_int_prof,
32 jmc 1.7 & flt_selectTrajOutp, flt_selectProfOutp,
33 dfer 1.8 & flt_noise, flt_deltaT, FLT_Iter0,
34 jmc 1.6 & flt_file, mapIniPos2Index
35 jmc 1.1
36     C == end of interface ==
37    
38 jmc 1.9 IF ( .NOT.useFLT ) THEN
39     C- pkg FLT is not used
40     _BEGIN_MASTER(myThid)
41     C- Track pkg activation status:
42     C print a (weak) warning if data.flt is found
43     CALL PACKAGES_UNUSED_MSG( 'useFLT', ' ', ' ' )
44     _END_MASTER(myThid)
45     RETURN
46     ENDIF
47    
48 jmc 1.1 _BEGIN_MASTER(myThid)
49    
50     C Set default values.
51 dfer 1.3 flt_deltaT = deltaTClock
52 dfer 1.8 FLT_Iter0 = 0
53 jmc 1.1 flt_int_traj = 3600.
54     flt_int_prof = 43200.
55     flt_noise = 0.0
56     flt_file = 'float_pos'
57 jmc 1.6 mapIniPos2Index = .TRUE.
58 jmc 1.7 flt_selectTrajOutp = 2
59     flt_selectProfOutp = 2
60 jmc 1.1
61     WRITE(msgBuf,'(A)') ' FLT_READPARMS: opening data.flt'
62     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
63     & SQUEEZE_RIGHT, myThid )
64     CALL OPEN_COPY_DATA_FILE(
65     I 'data.flt', 'FLT_READPARMS',
66     O iUnit,
67     I myThid )
68    
69     C Read parameters from open data file
70     READ(UNIT=iUnit,NML=FLT_NML)
71     WRITE(msgBuf,'(A)') ' FLT_READPARMS: finished reading data.flt'
72     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
73     & SQUEEZE_RIGHT, myThid )
74     C Close the open data file
75     CLOSE(iUnit)
76    
77 jmc 1.4 C Do some checks
78     c IF ( useFLT .AND. useOBCS ) THEN
79     c WRITE(msgBuf,'(A,A)')
80     c & 'S/R FLT_READPARMS: floats currently not implemented',
81     c & ' with open boundaries'
82     c CALL PRINT_ERROR( msgBuf , myThid)
83     c STOP 'ABNORMAL END: S/R FLT_READPARMS'
84     c ENDIF
85 jmc 1.1
86     _END_MASTER(myThid)
87     _BARRIER
88    
89     RETURN
90     END

  ViewVC Help
Powered by ViewVC 1.1.22