Changeset 1581 for trunk/NEMO/OPA_SRC/opa.F90
- Timestamp:
- 2009-08-05T16:53:12+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/opa.F90
r1579 r1581 179 179 INTEGER :: localComm 180 180 #endif 181 CHARACTER(len=20) :: namelistname 182 CHARACTER(len=28) :: file_out 183 CHARACTER(len=80),dimension(10) :: cltxt 181 CHARACTER(len=80),dimension(10) :: cltxt = '' 184 182 INTEGER :: ji ! local loop indicees 185 183 NAMELIST/namctl/ ln_ctl, nprint, nictls, nictle, & … … 187 185 !!---------------------------------------------------------------------- 188 186 189 ! Initializations190 ! ===============191 cltxt(:) = ''192 file_out = 'ocean.output'193 namelistname = 'namelist'194 195 187 ! Namelist namctl : Control prints & Benchmark 196 CALL ctlopn( numnam, namelistname, 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., 1 ) 197 REWIND( numnam ) ! is this really needed? we just open the file... 188 CALL ctl_opn( numnam, 'namelist', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 198 189 READ ( numnam, namctl ) 199 190 … … 227 218 IF( lwp ) THEN 228 219 ! open listing and namelist units 229 IF( narea > 1 ) WRITE(file_out, "(a,'_',i4.4)") TRIM(file_out), narea-1 230 CALL ctlopn( numout, file_out, 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE., 1 ) 220 CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., narea ) 231 221 232 222 WRITE(numout,*)
Note: See TracChangeset
for help on using the changeset viewer.