Changeset 10948
- Timestamp:
- 2019-05-08T15:01:52+02:00 (6 years ago)
- Location:
- NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbclv.F90
r10888 r10948 179 179 CALL lbc_lnk( 'icbclv', berg_grid%stored_heat, 'T', 1._wp ) 180 180 ! 181 IF( nn_verbose_level > 0 .AND. icntmax > 1 ) WRITE(numicb,*) 'icb_clv: icnt=', icnt,' on', narea181 IF( nn_verbose_level > 0 .AND. icntmax > 1 .AND. numicb.NE.-1) WRITE(numicb,*) 'icb_clv: icnt=', icnt,' on', narea 182 182 ! 183 183 END SUBROUTINE icb_clv -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbdia.F90
r10888 r10948 327 327 & 'returned',calving_ret_net) 328 328 ENDIF 329 IF (nn_verbose_level > 0 ) THEN329 IF (nn_verbose_level > 0 .AND. numicb.NE.-1) THEN 330 330 WRITE( numicb, '("calved by class = ",i6,20(",",i6))') (nbergs_calved_by_class(ik),ik=1,nclasses) 331 331 IF( nspeeding_tickets > 0 ) WRITE( numicb, '("speeding tickets issued = ",i6)') nspeeding_tickets … … 442 442 stored_heat_start = SUM( berg_grid%stored_heat(:,:) ) 443 443 CALL mpp_sum( 'icbdia', stored_heat_start ) 444 IF (nn_verbose_level > 0 ) THEN444 IF (nn_verbose_level > 0 .AND. numicb.NE.-1) THEN 445 445 WRITE(numicb,'(a,es13.6,a)') 'icb_dia_income: initial stored mass=',stored_start,' kg' 446 446 WRITE(numicb,'(a,es13.6,a)') 'icb_dia_income: initial stored heat=',stored_heat_start,' J' … … 521 521 IF (nn_verbose_level == 0) RETURN 522 522 IF( PRESENT(kbergs) ) THEN 523 WRITE(numicb,100) cd_budgetstr // ' state:', & 524 & cd_startstr // ' start', pstartval, cd_budgetunits, & 525 & cd_endstr // ' end', pendval, cd_budgetunits, & 526 & 'Delta ' // cd_delstr, pendval-pstartval, cd_budgetunits, & 527 & '# of bergs', kbergs 523 IF( numicb.NE.-1 ) & 524 WRITE(numicb,100) cd_budgetstr // ' state:', & 525 & cd_startstr // ' start', pstartval, cd_budgetunits, & 526 & cd_endstr // ' end', pendval, cd_budgetunits, & 527 & 'Delta ' // cd_delstr, pendval-pstartval, cd_budgetunits, & 528 & '# of bergs', kbergs 528 529 ELSE 529 WRITE(numicb,100) cd_budgetstr // ' state:', & 530 & cd_startstr // ' start', pstartval, cd_budgetunits, & 531 & cd_endstr // ' end', pendval, cd_budgetunits, & 532 & cd_delstr // 'Delta', pendval-pstartval, cd_budgetunits 530 IF( numicb.NE.-1 ) & 531 WRITE(numicb,100) cd_budgetstr // ' state:', & 532 & cd_startstr // ' start', pstartval, cd_budgetunits, & 533 & cd_endstr // ' end', pendval, cd_budgetunits, & 534 & cd_delstr // 'Delta', pendval-pstartval, cd_budgetunits 533 535 ENDIF 534 536 100 FORMAT(a19,3(a18,"=",es14.7,x,a2,:,","),a12,i8) … … 545 547 ! 546 548 IF (nn_verbose_level == 0) RETURN 547 WRITE(numicb,200) cd_budgetstr // ' check:', & 548 & cd_startstr, pstartval, cd_budgetunits, & 549 & cd_endstr, pendval, cd_budgetunits, & 550 & 'error', (pendval-pstartval)/((pendval+pstartval)+1e-30), 'nd' 549 IF(numicb.NE.-1) & 550 WRITE(numicb,200) cd_budgetstr // ' check:', & 551 & cd_startstr, pstartval, cd_budgetunits, & 552 & cd_endstr, pendval, cd_budgetunits, & 553 & 'error', (pendval-pstartval)/((pendval+pstartval)+1e-30), 'nd' 551 554 200 FORMAT(a19,10(a18,"=",es14.7,x,a2,:,",")) 552 555 ! … … 568 571 & MAX( 1.e-30, MAX( ABS( pendval - pstartval ) , ABS( pinval - poutval ) ) ) 569 572 ! 570 WRITE(numicb,200) cd_budgetstr // ' budget:', & 571 & cd_instr // ' in', pinval, cd_budgetunits, & 572 & cd_outstr // ' out', poutval, cd_budgetunits, & 573 & 'Delta ' // cd_delstr, pinval-poutval, cd_budgetunits, & 574 & 'error', zval, 'nd' 573 IF(numicb.NE.-1) & 574 WRITE(numicb,200) cd_budgetstr // ' budget:', & 575 & cd_instr // ' in', pinval, cd_budgetunits, & 576 & cd_outstr // ' out', poutval, cd_budgetunits, & 577 & 'Delta ' // cd_delstr, pinval-poutval, cd_budgetunits, & 578 & 'error', zval, 'nd' 575 579 200 FORMAT(a19,3(a18,"=",es14.7,x,a2,:,","),a8,"=",es10.3,x,a2) 576 580 ! … … 586 590 ! 587 591 IF (nn_verbose_level == 0) RETURN 588 WRITE(numicb,100) cd_budgetstr // ' state:', & 589 & cd_startstr // ' start', pstartval, & 590 & cd_endstr // ' end', pendval, & 591 & cd_delstr // 'Delta', pendval-pstartval 592 IF(numicb.NE.-1) & 593 WRITE(numicb,100) cd_budgetstr // ' state:', & 594 & cd_startstr // ' start', pstartval, & 595 & cd_endstr // ' end', pendval, & 596 & cd_delstr // 'Delta', pendval-pstartval 592 597 100 FORMAT(a19,3(a18,"=",i14,x,:,",")) 593 598 ! … … 604 609 ! 605 610 IF (nn_verbose_level == 0) RETURN 606 WRITE(numicb,200) cd_budgetstr // ' budget:', & 607 & cd_instr // ' in', pinval, & 608 & cd_outstr // ' out', poutval, & 609 & 'Delta ' // cd_delstr, pinval-poutval, & 610 & 'error', ( ( pendval - pstartval ) - ( pinval - poutval ) ) 611 IF(numicb.NE.-1) & 612 WRITE(numicb,200) cd_budgetstr // ' budget:', & 613 & cd_instr // ' in', pinval, & 614 & cd_outstr // ' out', poutval, & 615 & 'Delta ' // cd_delstr, pinval-poutval, & 616 & 'error', ( ( pendval - pstartval ) - ( pinval - poutval ) ) 611 617 200 FORMAT(a19,10(a18,"=",i14,x,:,",")) 612 618 ! -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbdyn.F90
r10888 r10948 372 372 ! ! check the speed and acceleration limits 373 373 IF (nn_verbose_level > 0) THEN 374 IF( ABS( zuveln ) > pp_vel_lim .OR. ABS( zvveln ) > pp_vel_lim ) & 375 WRITE(numicb,'("pe=",i3,x,a)') narea,'Dump triggered by excessive velocity' 376 IF( ABS( pax ) > pp_accel_lim .OR. ABS( pay ) > pp_accel_lim ) & 377 WRITE(numicb,'("pe=",i3,x,a)') narea,'Dump triggered by excessive acceleration' 374 IF( ABS( zuveln ) > pp_vel_lim .OR. ABS( zvveln ) > pp_vel_lim ) THEN 375 IF(numicb.NE.-1) THEN 376 WRITE(numicb,'("pe=",i3,x,a)') narea,'Dump triggered by excessive velocity' 377 ELSE 378 WRITE(*,'("pe=",i3,x,a)') narea,'Dump triggered by excessive velocity' 379 ENDIF 380 ENDIF 381 IF( ABS( pax ) > pp_accel_lim .OR. ABS( pay ) > pp_accel_lim ) THEN 382 IF(numicb.NE.-1) THEN 383 WRITE(numicb,'("pe=",i3,x,a)') narea,'Dump triggered by excessive acceleration' 384 ELSE 385 WRITE(*,'("pe=",i3,x,a)') narea,'Dump triggered by excessive acceleration' 386 ENDIF 387 ENDIF 378 388 ENDIF 379 389 ! -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbini.F90
r10888 r10948 89 89 ! ! note that we choose to do this on all processors since we cannot 90 90 ! ! predict where icebergs will be ahead of time 91 IF( nn_verbose_level > 0) THEN 91 numicb=-1 92 IF( nn_verbose_level > 0 .AND. nprint>0) THEN 92 93 CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 94 ELSE 95 IF(lwp) CALL ctl_opn( numicb, 'icebergs.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 93 96 ENDIF 94 97 … … 200 203 ENDIF 201 204 ! 202 IF( nn_verbose_level > 0 ) THEN205 IF( nn_verbose_level > 0 .AND. numicb.NE.-1 ) THEN 203 206 WRITE(numicb,*) 'processor ', narea 204 207 WRITE(numicb,*) 'jpi, jpj ', jpi, jpj … … 262 265 CALL iom_close( inum ) ! close file 263 266 ! 264 IF( nn_verbose_level > 0 ) THEN267 IF( nn_verbose_level > 0 .AND. numicb.NE.-1 ) THEN 265 268 WRITE(numicb,*) 266 269 WRITE(numicb,*) ' calving read in a file' … … 359 362 ibergs = icb_utl_count() 360 363 CALL mpp_sum('icbini', ibergs) 361 IF( nn_verbose_level > 0 ) THEN364 IF( nn_verbose_level > 0 .AND. numicb.NE.-1 ) THEN 362 365 WRITE(numicb,'(a,i6,a)') 'diamonds, icb_ini_gen: ',ibergs,' were generated' 363 366 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icblbc.F90
r10888 r10948 194 194 ENDIF 195 195 196 IF( nn_verbose_level >= 2 ) THEN196 IF( nn_verbose_level >= 2 .AND. numicb .NE. -1) THEN 197 197 WRITE(numicb,*) 'processor west : ', ipe_W 198 198 WRITE(numicb,*) 'processor east : ', ipe_E … … 237 237 this => this%next 238 238 ibergs_to_send_e = ibergs_to_send_e + 1 239 IF( nn_verbose_level >= 4 ) THEN239 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 240 240 WRITE(numicb,*) 'bergstep ',nktberg,' packing berg ',tmpberg%number(:),' for transfer to east' 241 241 CALL flush( numicb ) … … 250 250 this => this%next 251 251 ibergs_to_send_w = ibergs_to_send_w + 1 252 IF( nn_verbose_level >= 4 ) THEN252 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 253 253 WRITE(numicb,*) 'bergstep ',nktberg,' packing berg ',tmpberg%number(:),' for transfer to west' 254 254 CALL flush( numicb ) … … 264 264 END DO 265 265 ENDIF 266 IF( nn_verbose_level >= 3 ) THEN266 IF( nn_verbose_level >= 3 .AND. numicb .NE. -1) THEN 267 267 WRITE(numicb,*) 'bergstep ',nktberg,' send ew: ', ibergs_to_send_e, ibergs_to_send_w 268 268 CALL flush(numicb) … … 298 298 ibergs_rcvd_from_w = INT( zwebergs(2) ) 299 299 END SELECT 300 IF( nn_verbose_level >= 3 ) THEN300 IF( nn_verbose_level >= 3 .AND. numicb .NE. -1 ) THEN 301 301 WRITE(numicb,*) 'bergstep ',nktberg,' recv ew: ', ibergs_rcvd_from_w, ibergs_rcvd_from_e 302 302 CALL flush(numicb) … … 312 312 IF( ibergs_to_send_e > 0 .AND. l_isend ) CALL mpi_wait( iml_req1, iml_stat, iml_err ) 313 313 DO i = 1, ibergs_rcvd_from_e 314 IF( nn_verbose_level >= 4 ) THEN314 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 315 315 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_e%data(16,i)),' from east' 316 316 CALL flush( numicb ) … … 332 332 IF( ibergs_to_send_e > 0 .AND. l_isend ) CALL mpi_wait( iml_req3, iml_stat, iml_err ) 333 333 DO i = 1, ibergs_rcvd_from_e 334 IF( nn_verbose_level >= 4 ) THEN334 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 335 335 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_e%data(16,i)),' from east' 336 336 CALL flush( numicb ) … … 339 339 END DO 340 340 DO i = 1, ibergs_rcvd_from_w 341 IF( nn_verbose_level >= 4 ) THEN341 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 342 342 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_w%data(16,i)),' from west' 343 343 CALL flush( numicb ) … … 353 353 IF( ibergs_to_send_w > 0 .AND. l_isend ) CALL mpi_wait( iml_req4, iml_stat, iml_err ) 354 354 DO i = 1, ibergs_rcvd_from_w 355 IF( nn_verbose_level >= 4 ) THEN355 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 356 356 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_w%data(16,i)),' from west' 357 357 CALL flush( numicb ) … … 375 375 this => this%next 376 376 ibergs_to_send_n = ibergs_to_send_n + 1 377 IF( nn_verbose_level >= 4 ) THEN377 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 378 378 WRITE(numicb,*) 'bergstep ',nktberg,' packing berg ',tmpberg%number(:),' for transfer to north' 379 379 CALL flush( numicb ) … … 385 385 this => this%next 386 386 ibergs_to_send_s = ibergs_to_send_s + 1 387 IF( nn_verbose_level >= 4 ) THEN387 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 388 388 WRITE(numicb,*) 'bergstep ',nktberg,' packing berg ',tmpberg%number(:),' for transfer to south' 389 389 CALL flush( numicb ) … … 396 396 END DO 397 397 ENDIF 398 if( nn_verbose_level >= 3 ) then398 if( nn_verbose_level >= 3 .AND. numicb .NE. -1 ) then 399 399 write(numicb,*) 'bergstep ',nktberg,' send ns: ', ibergs_to_send_n, ibergs_to_send_s 400 400 call flush(numicb) … … 429 429 ibergs_rcvd_from_s = INT( zsnbergs(2) ) 430 430 END SELECT 431 if( nn_verbose_level >= 3 ) then431 if( nn_verbose_level >= 3 .AND. numicb .NE. -1) then 432 432 write(numicb,*) 'bergstep ',nktberg,' recv ns: ', ibergs_rcvd_from_s, ibergs_rcvd_from_n 433 433 call flush(numicb) … … 443 443 IF( ibergs_to_send_n > 0 .AND. l_isend ) CALL mpi_wait( iml_req1, iml_stat, iml_err ) 444 444 DO i = 1, ibergs_rcvd_from_n 445 IF( nn_verbose_level >= 4 ) THEN445 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1 ) THEN 446 446 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_n%data(16,i)),' from north' 447 447 CALL flush( numicb ) … … 463 463 IF( ibergs_to_send_n > 0 .AND. l_isend ) CALL mpi_wait( iml_req3, iml_stat, iml_err ) 464 464 DO i = 1, ibergs_rcvd_from_n 465 IF( nn_verbose_level >= 4 ) THEN465 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 466 466 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_n%data(16,i)),' from north' 467 467 CALL flush( numicb ) … … 470 470 END DO 471 471 DO i = 1, ibergs_rcvd_from_s 472 IF( nn_verbose_level >= 4 ) THEN472 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 473 473 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_s%data(16,i)),' from south' 474 474 CALL flush( numicb ) … … 484 484 IF( ibergs_to_send_s > 0 .AND. l_isend ) CALL mpi_wait( iml_req4, iml_stat, iml_err ) 485 485 DO i = 1, ibergs_rcvd_from_s 486 IF( nn_verbose_level >= 4 ) THEN486 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 487 487 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_s%data(16,i)),' from south' 488 488 CALL flush( numicb ) … … 497 497 i = ( ibergs_rcvd_from_n + ibergs_rcvd_from_s + ibergs_rcvd_from_e + ibergs_rcvd_from_w ) - & 498 498 ( ibergs_to_send_n + ibergs_to_send_s + ibergs_to_send_e + ibergs_to_send_w ) 499 IF( ibergs_end-(ibergs_start+i) .NE. 0 ) THEN499 IF( ibergs_end-(ibergs_start+i) .NE. 0 .AND. numicb .NE. -1) THEN 500 500 WRITE( numicb,* ) 'send_bergs_to_other_pes: net change in number of icebergs' 501 501 WRITE( numicb,1000) 'send_bergs_to_other_pes: ibergs_end=', & … … 532 532 IF( npolj /= 0 .AND. jpni > 1 ) CALL icb_lbc_mpp_nfld( ) 533 533 534 IF( nn_verbose_level > 0 ) THEN534 IF( nn_verbose_level > 0 .AND. numicb .NE. -1) THEN 535 535 i = 0 536 536 this => first_berg … … 544 544 ijne .GT. mjg(nicbej)) THEN 545 545 i = i + 1 546 WRITE(numicb,*) 'berg lost in halo: ', this%number(:),iine,ijne 547 WRITE(numicb,*) ' ', nimpp, njmpp 548 WRITE(numicb,*) ' ', nicbdi, nicbei, nicbdj, nicbej 549 CALL flush( numicb ) 546 IF(numicb .NE. -1) THEN 547 WRITE(numicb,*) 'berg lost in halo: ', this%number(:),iine,ijne 548 WRITE(numicb,*) ' ', nimpp, njmpp 549 WRITE(numicb,*) ' ', nicbdi, nicbei, nicbdj, nicbej 550 CALL flush( numicb ) 551 ENDIF 550 552 ENDIF 551 553 this => this%next … … 553 555 CALL mpp_sum('icblbc', i) 554 556 IF( i .GT. 0 ) THEN 555 WRITE( numicb,'(a,i4)') 'send_bergs_to_other_pes: # of bergs outside computational domain = ',i 557 IF(numicb .NE. -1) THEN 558 WRITE( numicb,'(a,i4)') 'send_bergs_to_other_pes: # of bergs outside computational domain = ',i 559 ELSE 560 WRITE( *,'(a,i4)') 'send_bergs_to_other_pes: # of bergs outside computational domain = ',i 561 ENDIF 556 562 CALL ctl_stop('send_bergs_to_other_pes: there are bergs still in halos!') 557 563 ENDIF ! root_pe … … 656 662 IF( nicbfldproc(jjn) .eq. INT(znbergs(1)) ) EXIT 657 663 END DO 658 IF( jjn .GT. jpni .AND. nn_verbose_level > 0 ) write(numicb,*) 'ICB ERROR'664 IF( jjn .GT. jpni .AND. nn_verbose_level > 0 .AND. numicb .NE. -1 ) write(numicb,*) 'ICB ERROR' 659 665 nicbfldexpect(jjn) = INT( znbergs(2) ) 660 666 !IF ( nicbfldexpect(jjn) .GT. 0 .AND. nn_verbose_level > 0 ) write(numicb,*) 'ICB expecting ',nicbfldexpect(jjn),' from ', nicbfldproc(jjn) … … 711 717 tmpberg => this 712 718 ibergs_to_send = ibergs_to_send + 1 713 IF( nn_verbose_level >= 4 ) THEN719 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 714 720 WRITE(numicb,*) 'bergstep ',nktberg,' packing berg ',tmpberg%number(:),' for north fold' 715 721 CALL flush( numicb ) … … 724 730 END DO 725 731 ENDIF 726 if( nn_verbose_level >= 3 ) then732 if( nn_verbose_level >= 3 .AND. numicb .NE. -1) then 727 733 write(numicb,*) 'bergstep ',nktberg,' send nfld: ', ibergs_to_send 728 734 call flush(numicb) … … 755 761 ! 756 762 DO jk = 1, ibergs_to_rcv 757 IF( nn_verbose_level >= 4 ) THEN763 IF( nn_verbose_level >= 4 .AND. numicb .NE. -1) THEN 758 764 WRITE(numicb,*) 'bergstep ',nktberg,' unpacking berg ',INT(ibuffer_f%data(16,jk)),' from north fold' 759 765 CALL flush( numicb ) -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbrst.F90
r10897 r10948 138 138 ! Sanity checks 139 139 jn = icb_utl_count() 140 IF ( lwp .AND. n n_verbose_level >=0 ) &140 IF ( lwp .AND. nprint > 0 ) & 141 141 WRITE(numout,'(2(a,i5))') 'icebergs, read_restart_bergs: # bergs =',jn,' on PE',narea-1 142 142 IF( lk_mpp ) THEN … … 145 145 CALL mpp_sum('icbrst', jn) 146 146 ENDIF 147 IF( lwp ) WRITE(numout,'(a,i5,a,i5,a)') 'icebergs, icb_rst_read: there were',ibergs_in_file, & 148 & ' bergs in the restart file and', jn,' bergs have been read' 147 IF( lwp .AND. nprint > 0 ) & 148 WRITE(numout,'(a,i5,a,i5,a)') 'icebergs, icb_rst_read: there were',ibergs_in_file, & 149 & ' bergs in the restart file and', jn,' bergs have been read' 149 150 ! 150 151 ! Confirm that all areas have a suitable base for assigning new iceberg … … 177 178 ENDIF 178 179 ! 179 IF( lwp .AND. n n_verbose_level>= 0 ) WRITE(numout,'(a)') 'icebergs, icb_rst_read: completed'180 IF( lwp .AND. nprint >= 0 ) WRITE(numout,'(a)') 'icebergs, icb_rst_read: completed' 180 181 ! 181 182 END SUBROUTINE icb_rst_read … … 226 227 WRITE(cl_filename,'(A,"_icebergs_",A,"_restart.nc")') TRIM(cexper), TRIM(ADJUSTL(clkt)) 227 228 ENDIF 228 IF ( lwp .AND. n n_verbose_level >=0) WRITE(numout,'(2a)') 'icebergs, write_restart: creating ', &229 IF ( lwp .AND. nprint > 0) WRITE(numout,'(2a)') 'icebergs, write_restart: creating ', & 229 230 & TRIM(cl_path)//TRIM(cl_filename) 230 231 … … 361 362 ENDIF 362 363 ENDDO 363 IF( lwp ) WRITE(numout,*) 'file: ',TRIM(cl_path)//TRIM(cl_filename),' var: stored_ice written'364 IF( lwp .AND. nprint > 1 ) WRITE(numout,*) 'file: ',TRIM(cl_path)//TRIM(cl_filename),' var: stored_ice written' 364 365 365 366 nret = NF90_PUT_VAR( ncid, nkountid, num_bergs(:) ) … … 368 369 nret = NF90_PUT_VAR( ncid, nsheatid, berg_grid%stored_heat(:,:) ) 369 370 IF (nret .ne. NF90_NOERR) CALL ctl_stop('icebergs, write_restart: nf_put_var stored_heat failed') 370 IF( lwp ) WRITE(numout,*) 'file: ',TRIM(cl_path)//TRIM(cl_filename),' var: stored_heat written'371 IF( lwp .AND. nprint > 1 ) WRITE(numout,*) 'file: ',TRIM(cl_path)//TRIM(cl_filename),' var: stored_heat written' 371 372 372 373 nret = NF90_PUT_VAR( ncid, ncalvid , src_calving(:,:) ) … … 374 375 nret = NF90_PUT_VAR( ncid, ncalvhid, src_calving_hflx(:,:) ) 375 376 IF (nret .ne. NF90_NOERR) CALL ctl_stop('icebergs, write_restart: nf_put_var calving_hflx failed') 376 IF( lwp ) WRITE(numout,*) 'file: ',TRIM(cl_path)//TRIM(cl_filename),' var: calving written'377 IF( lwp .AND. nprint > 1 ) WRITE(numout,*) 'file: ',TRIM(cl_path)//TRIM(cl_filename),' var: calving written' 377 378 378 379 IF ( ASSOCIATED(first_berg) ) THEN … … 416 417 ! Sanity check 417 418 jn = icb_utl_count() 418 IF ( lwp .AND. n n_verbose_level >=0) &419 IF ( lwp .AND. nprint > 0) & 419 420 WRITE(numout,'(2(a,i5))') 'icebergs, icb_rst_write: # bergs =',jn,' on PE',narea-1 420 421 IF( lk_mpp ) THEN 421 422 CALL mpp_sum('icbrst', jn) 422 423 ENDIF 423 IF(lwp ) WRITE(numout,'(a,i5,a,i5,a)') 'icebergs, icb_rst_write: ', jn, &424 IF(lwp .AND. nprint >= 0 ) WRITE(numout,'(a,i5,a,i5,a)') 'icebergs, icb_rst_write: ', jn, & 424 425 & ' bergs in total have been written at timestep ', kt 425 426 ! -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbstp.F90
r10888 r10948 86 86 ! !* write out time 87 87 ll_verbose = .FALSE. 88 IF( nn_verbose_write > 0 .AND. MOD( kt-1 , nn_verbose_write ) == 0 ) ll_verbose = ( nn_verbose_level >= 0 ) 88 IF( nn_verbose_write > 0 .AND. MOD( kt-1 , nn_verbose_write ) == 0 ) & 89 ll_verbose = ( nn_verbose_level >= 0 ) .AND. (numicb /= -1) 89 90 ! 90 91 IF( ll_verbose ) WRITE(numicb,9100) nktberg, ndastp, nsec_day … … 163 164 IF(lwp) WRITE(numout,'(a,i6)') 'icebergs: icb_end complete', narea 164 165 ! 165 IF( nn_verbose_level > 0 ) THEN166 IF( nn_verbose_level > 0 .AND. numicb.NE.-1 ) THEN 166 167 CALL flush( numicb ) 167 168 CLOSE( numicb ) -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbtrj.F90
r10888 r10948 85 85 & TRIM(ADJUSTL(cldate_ini)), TRIM(ADJUSTL(cldate_end)) 86 86 ENDIF 87 IF( lwp .AND. n n_verbose_level >= 0) WRITE(numout,'(2a)') 'icebergs, icb_trj_init: creating ',TRIM(cl_filename)87 IF( lwp .AND. nprint > 2 ) WRITE(numout,'(2a)') 'icebergs, icb_trj_init: creating ',TRIM(cl_filename) 88 88 89 89 iret = NF90_CREATE( TRIM(cl_filename), NF90_CLOBBER, ntrajid ) … … 248 248 this => this%next 249 249 END DO 250 IF( lwp .AND. n n_verbose_level> 0 ) WRITE(numout,*) 'trajectory write to frame ', jn250 IF( lwp .AND. nprint > 0 ) WRITE(numout,*) 'trajectory write to frame ', jn 251 251 num_traj = jn 252 252 ! -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/ICB/icbutl.F90
r10888 r10948 648 648 IF (nn_verbose_level == 0) RETURN 649 649 pt => berg%current_point 650 WRITE(numicb, 9200) kt, berg%number(1), & 650 IF(numicb.NE.-1) THEN 651 WRITE(numicb, 9200) kt, berg%number(1), & 651 652 pt%xi, pt%yj, pt%lon, pt%lat, pt%uvel, pt%vvel, & 652 653 pt%uo, pt%vo, pt%ua, pt%va, pt%ui, pt%vi 653 CALL flush( numicb ) 654 CALL flush( numicb ) 655 ENDIF 654 656 9200 FORMAT(5x,i5,2x,i10,6(2x,2f10.4)) 655 657 ! … … 673 675 IF (nn_verbose_level == 0) RETURN 674 676 this => first_berg 675 IF( ASSOCIATED(this) ) THEN677 IF( ASSOCIATED(this) .AND. numicb.NE.-1 ) THEN 676 678 WRITE(numicb,'(a," pe=(",i3,")")' ) cd_label, narea 677 679 WRITE(numicb,'(a8,4x,a6,12x,a5,15x,a7,19x,a3,17x,a5,17x,a5,17x,a5)' ) & … … 685 687 inbergs = ibergs 686 688 CALL mpp_sum('icbutl', inbergs) 687 IF( ibergs > 0 ) WRITE(numicb,'(a," there are",i5," bergs out of",i6," on PE ",i4)') &689 IF( ibergs > 0 .AND. numicb.NE.-1 ) WRITE(numicb,'(a," there are",i5," bergs out of",i6," on PE ",i4)') & 688 690 & cd_label, ibergs, inbergs, narea 689 691 ! -
NEMO/branches/UKMO/NEMO_4.0_GO8_package_text_diagnostics/src/OCE/nemogcm.F90
r10888 r10948 295 295 CALL usr_def_nam( cltxt2, clnam, cn_cfg, nn_cfg, jpiglo, jpjglo, jpkglo, jperio ) 296 296 ENDIF 297 nprint = nn_print ! convert DOCTOR namelist names into OLD names 297 298 ! 298 299 ! … … 538 539 ENDIF 539 540 ! 540 nprint = nn_print ! convert DOCTOR namelist names into OLD names541 541 nictls = nn_ictls 542 542 nictle = nn_ictle
Note: See TracChangeset
for help on using the changeset viewer.