Changeset 10753 for branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90
- Timestamp:
- 2019-03-14T16:34:25+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90
r6823 r10753 78 78 ! ! note that we choose to do this on all processors since we cannot 79 79 ! ! predict where icebergs will be ahead of time 80 CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 80 numicb=-1 81 IF(nn_verbose_level>0 .AND. nprint>0) THEN 82 CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 83 ELSE 84 IF(lwp) CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 85 ENDIF 81 86 82 87 ! set parameters (mostly from namelist) … … 187 192 ENDIF 188 193 ! 189 IF( nn_verbose_level > 0 ) THEN194 IF( nn_verbose_level > 0 .AND. numicb.NE.-1) THEN 190 195 WRITE(numicb,*) 'processor ', narea 191 196 WRITE(numicb,*) 'jpi, jpj ', jpi, jpj … … 241 246 CALL iom_close( inum ) ! close file 242 247 ! 243 WRITE(numicb,*) 244 WRITE(numicb,*) ' calving read in a file' 248 IF(numicb.NE.-1) THEN 249 WRITE(numicb,*) 250 WRITE(numicb,*) ' calving read in a file' 251 ENDIF 245 252 ALLOCATE( sf_icb(1), STAT=istat1 ) ! Create sf_icb structure (calving) 246 253 ALLOCATE( sf_icb(1)%fnow(jpi,jpj,1), STAT=istat2 ) … … 336 343 ibergs = icb_utl_count() 337 344 IF( lk_mpp ) CALL mpp_sum(ibergs) 338 WRITE(numicb,'(a,i6,a)') 'diamonds, icb_ini_gen: ',ibergs,' were generated'345 IF(numicb.NE.-1) WRITE(numicb,'(a,i6,a)') 'diamonds, icb_ini_gen: ',ibergs,' were generated' 339 346 ! 340 347 END SUBROUTINE icb_ini_gen … … 368 375 READ ( numnam_cfg, namberg, IOSTAT = ios, ERR = 902 ) 369 376 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namberg in configuration namelist', lwp ) 370 IF(lwm ) WRITE ( numond, namberg )377 IF(lwm .AND. nprint>3) WRITE ( numond, namberg ) 371 378 #else 372 379 IF(lwp) THEN
Note: See TracChangeset
for help on using the changeset viewer.