/[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.4 - (hide annotations) (download)
Wed Jun 30 01:51:03 2010 UTC (13 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62p
Changes since 1.3: +9 -9 lines
a hack for using OBCS: stop floats (by changing tend) which enter OB region.

1 jmc 1.4 C $Header: /u/gcmpack/MITgcm/pkg/flt/flt_readparms.F,v 1.3 2009/02/27 00:44:47 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     #include "FLT.h"
21    
22     C == routine arguments ==
23     C myThid - thread number for this instance of the routine.
24     INTEGER myThid
25    
26     C == local variables ==
27     CHARACTER*(MAX_LEN_MBUF) msgBuf
28     INTEGER iUnit
29    
30     NAMELIST /FLT_NML/ flt_int_traj, flt_int_prof,
31 dfer 1.3 & flt_noise, flt_deltaT,
32 jmc 1.1 & flt_file
33    
34     C == end of interface ==
35    
36     _BEGIN_MASTER(myThid)
37    
38     C Set default values.
39 dfer 1.3 flt_deltaT = deltaTClock
40 jmc 1.1 flt_int_traj = 3600.
41     flt_int_prof = 43200.
42     flt_noise = 0.0
43     flt_file = 'float_pos'
44    
45     WRITE(msgBuf,'(A)') ' FLT_READPARMS: opening data.flt'
46     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
47     & SQUEEZE_RIGHT, myThid )
48     CALL OPEN_COPY_DATA_FILE(
49     I 'data.flt', 'FLT_READPARMS',
50     O iUnit,
51     I myThid )
52    
53     C Read parameters from open data file
54     READ(UNIT=iUnit,NML=FLT_NML)
55     WRITE(msgBuf,'(A)') ' FLT_READPARMS: finished reading data.flt'
56     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
57     & SQUEEZE_RIGHT, myThid )
58     C Close the open data file
59     CLOSE(iUnit)
60    
61 jmc 1.4 C Do some checks
62     c IF ( useFLT .AND. useOBCS ) THEN
63     c WRITE(msgBuf,'(A,A)')
64     c & 'S/R FLT_READPARMS: floats currently not implemented',
65     c & ' with open boundaries'
66     c CALL PRINT_ERROR( msgBuf , myThid)
67     c STOP 'ABNORMAL END: S/R FLT_READPARMS'
68     c ENDIF
69 jmc 1.1
70     _END_MASTER(myThid)
71     _BARRIER
72    
73     RETURN
74     END

  ViewVC Help
Powered by ViewVC 1.1.22