/[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.6 - (hide annotations) (download)
Wed Jan 12 19:00:52 2011 UTC (13 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint63, checkpoint62s, checkpoint62r, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.5: +3 -2 lines
add run-time parameter to avoid initial position conversion to index map
 in tiled flt_file (initial condition).

1 jmc 1.6 C $Header: /u/gcmpack/MITgcm/pkg/flt/flt_readparms.F,v 1.5 2010/12/22 21:25:18 jahn 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 dfer 1.3 & flt_noise, flt_deltaT,
33 jmc 1.6 & flt_file, mapIniPos2Index
34 jmc 1.1
35     C == end of interface ==
36    
37     _BEGIN_MASTER(myThid)
38    
39     C Set default values.
40 dfer 1.3 flt_deltaT = deltaTClock
41 jmc 1.1 flt_int_traj = 3600.
42     flt_int_prof = 43200.
43     flt_noise = 0.0
44     flt_file = 'float_pos'
45 jmc 1.6 mapIniPos2Index = .TRUE.
46 jmc 1.1
47     WRITE(msgBuf,'(A)') ' FLT_READPARMS: opening data.flt'
48     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
49     & SQUEEZE_RIGHT, myThid )
50     CALL OPEN_COPY_DATA_FILE(
51     I 'data.flt', 'FLT_READPARMS',
52     O iUnit,
53     I myThid )
54    
55     C Read parameters from open data file
56     READ(UNIT=iUnit,NML=FLT_NML)
57     WRITE(msgBuf,'(A)') ' FLT_READPARMS: finished reading data.flt'
58     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
59     & SQUEEZE_RIGHT, myThid )
60     C Close the open data file
61     CLOSE(iUnit)
62    
63 jmc 1.4 C Do some checks
64     c IF ( useFLT .AND. useOBCS ) THEN
65     c WRITE(msgBuf,'(A,A)')
66     c & 'S/R FLT_READPARMS: floats currently not implemented',
67     c & ' with open boundaries'
68     c CALL PRINT_ERROR( msgBuf , myThid)
69     c STOP 'ABNORMAL END: S/R FLT_READPARMS'
70     c ENDIF
71 jmc 1.1
72     _END_MASTER(myThid)
73     _BARRIER
74    
75     RETURN
76     END

  ViewVC Help
Powered by ViewVC 1.1.22