Changeset 10986
- Timestamp:
- 2019-05-16T15:23:56+02:00 (6 years ago)
- Location:
- NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE
- Files:
-
- 128 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/ASM/asmbkg.F90
r10888 r10986 82 82 ! 83 83 IF( .NOT. llok ) THEN 84 IF(lwp) WRITE(numout,*) ' Setting up assimilation background file '// TRIM( c_asmbkg ) 84 IF(lwp) THEN 85 WRITE(numout,*) ' Setting up assimilation background file '// TRIM( c_asmbkg ) 86 IF(lflush) CALL FLUSH(numout) 87 ENDIF 85 88 ! 86 89 ! ! Define the output file … … 90 93 zdate = REAL( ndastp ) 91 94 IF( ln_zdftke ) THEN ! read turbulent kinetic energy ( en ) 92 IF(lwp) WRITE(numout,*) ' Reading TKE (en) from restart...' 95 IF(lwp) THEN 96 WRITE(numout,*) ' Reading TKE (en) from restart...' 97 IF(lflush) CALL FLUSH(numout) 98 ENDIF 93 99 CALL tke_rst( nit000, 'READ' ) 94 100 ENDIF … … 120 126 ! 121 127 IF( .NOT. llok ) THEN 122 IF(lwp) WRITE(numout,*) ' Setting up assimilation background file '// TRIM( c_asmdin ) 128 IF(lwp) THEN 129 WRITE(numout,*) ' Setting up assimilation background file '// TRIM( c_asmdin ) 130 IF(lflush) CALL FLUSH(numout) 131 ENDIF 123 132 ! 124 133 ! ! Define the output file -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/ASM/asminc.F90
r10968 r10986 173 173 WRITE(numout,*) ' Logical switch for ensuring that the sa > salfixmin ln_salfix = ', ln_salfix 174 174 WRITE(numout,*) ' Minimum salinity after applying the increments salfixmin = ', salfixmin 175 IF(lflush) CALL FLUSH(numout) 175 176 ENDIF 176 177 … … 209 210 WRITE(numout,*) ' ditiaustr_date = ', ditiaustr_date 210 211 WRITE(numout,*) ' ditiaufin_date = ', ditiaufin_date 212 IF(lflush) CALL FLUSH(numout) 211 213 ENDIF 212 214 … … 311 313 WRITE(numout,*) ' Time-integrated weight = ', ztotwgt 312 314 WRITE(numout,*) ' ===================================' 315 IF(lflush) CALL FLUSH(numout) 313 316 ENDIF 314 317 … … 347 350 WRITE(numout,*) 'asm_inc_init : Assimilation increments valid between dates ', z_inc_dateb,' and ', z_inc_datef 348 351 WRITE(numout,*) '~~~~~~~~~~~~' 352 IF(lflush) CALL FLUSH(numout) 349 353 ENDIF 350 354 ! … … 462 466 WRITE(numout,*) ' ==>>> Assimilation background state valid at : ', zdate_bkg 463 467 WRITE(numout,*) 468 IF(lflush) CALL FLUSH(numout) 464 469 ENDIF 465 470 ! … … 491 496 ENDIF 492 497 ! 493 IF(lwp) WRITE(numout,*) ' ==>>> Euler time step switch is ', neuler 498 IF(lwp) THEN 499 WRITE(numout,*) ' ==>>> Euler time step switch is ', neuler 500 IF(lflush) CALL FLUSH(numout) 501 ENDIF 494 502 ! 495 503 IF( lk_asminc ) THEN !== data assimilation ==! … … 542 550 WRITE(numout,*) 'tra_asm_inc : Tracer IAU at time step = ', kt,' with IAU weight = ', wgtiau(it) 543 551 WRITE(numout,*) '~~~~~~~~~~~~' 552 IF(lflush) CALL FLUSH(numout) 544 553 ENDIF 545 554 ! … … 657 666 WRITE(numout,*) 'dyn_asm_inc : Dynamics IAU at time step = ', kt,' with IAU weight = ', wgtiau(it) 658 667 WRITE(numout,*) '~~~~~~~~~~~~' 668 IF(lflush) CALL FLUSH(numout) 659 669 ENDIF 660 670 ! … … 728 738 & kt,' with IAU weight = ', wgtiau(it) 729 739 WRITE(numout,*) '~~~~~~~~~~~~' 740 IF(lflush) CALL FLUSH(numout) 730 741 ENDIF 731 742 ! … … 845 856 WRITE(numout,*) 'seaice_asm_inc : sea ice conc IAU at time step = ', kt,' with IAU weight = ', wgtiau(it) 846 857 WRITE(numout,*) '~~~~~~~~~~~~' 858 IF(lflush) CALL FLUSH(numout) 847 859 ENDIF 848 860 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/BDY/bdydta.F90
r10968 r10986 449 449 !!--------------------------------------------------------------------------- 450 450 ! 451 IF(lwp) WRITE(numout,*) 452 IF(lwp) WRITE(numout,*) 'bdy_dta_ini : initialization of data at the open boundaries' 453 IF(lwp) WRITE(numout,*) '~~~~~~~~~~' 454 IF(lwp) WRITE(numout,*) '' 451 IF(lwp) THEN 452 WRITE(numout,*) 453 WRITE(numout,*) 'bdy_dta_ini : initialization of data at the open boundaries' 454 WRITE(numout,*) '~~~~~~~~~~' 455 WRITE(numout,*) '' 456 IF(lflush) CALL FLUSH(numout) 457 ENDIF 455 458 456 459 ! Set nn_dta … … 485 488 ENDIF 486 489 #endif 487 IF(lwp) WRITE(numout,*) 'Maximum number of files to open =', nb_bdy_fld(jbdy) 490 IF(lwp) THEN 491 WRITE(numout,*) 'Maximum number of files to open =', nb_bdy_fld(jbdy) 492 IF(lflush) CALL FLUSH(numout) 493 ENDIF 488 494 END DO 489 495 … … 532 538 533 539 IF( dta%ll_ssh ) THEN 534 if(lwp) write(numout,*) '++++++ reading in ssh field' 540 IF(lwp) THEN 541 write(numout,*) '++++++ reading in ssh field' 542 IF(lflush) CALL FLUSH(numout) 543 ENDIF 535 544 jfld = jfld + 1 536 545 blf_i(jfld) = bn_ssh … … 543 552 544 553 IF( dta%ll_u2d .and. .not. ln_full_vel_array(jbdy) ) THEN 545 if(lwp) write(numout,*) '++++++ reading in u2d field' 554 IF(lwp) THEN 555 write(numout,*) '++++++ reading in u2d field' 556 IF(lflush) CALL FLUSH(numout) 557 ENDIF 546 558 jfld = jfld + 1 547 559 blf_i(jfld) = bn_u2d … … 554 566 555 567 IF( dta%ll_v2d .and. .not. ln_full_vel_array(jbdy) ) THEN 556 if(lwp) write(numout,*) '++++++ reading in v2d field' 568 IF(lwp) THEN 569 write(numout,*) '++++++ reading in v2d field' 570 IF(lflush) CALL FLUSH(numout) 571 ENDIF 557 572 jfld = jfld + 1 558 573 blf_i(jfld) = bn_v2d … … 572 587 573 588 IF( dta%ll_u3d .OR. ( ln_full_vel_array(jbdy) .and. dta%ll_u2d ) ) THEN 574 if(lwp) write(numout,*) '++++++ reading in u3d field' 589 IF(lwp) THEN 590 write(numout,*) '++++++ reading in u3d field' 591 IF(lflush) CALL FLUSH(numout) 592 ENDIF 575 593 jfld = jfld + 1 576 594 blf_i(jfld) = bn_u3d … … 583 601 584 602 IF( dta%ll_v3d .OR. ( ln_full_vel_array(jbdy) .and. dta%ll_v2d ) ) THEN 585 if(lwp) write(numout,*) '++++++ reading in v3d field' 603 IF(lwp) THEN 604 write(numout,*) '++++++ reading in v3d field' 605 IF(lflush) CALL FLUSH(numout) 606 ENDIF 586 607 jfld = jfld + 1 587 608 blf_i(jfld) = bn_v3d … … 599 620 600 621 IF( dta%ll_tem ) THEN 601 if(lwp) write(numout,*) '++++++ reading in tem field' 622 IF(lwp) THEN 623 write(numout,*) '++++++ reading in tem field' 624 IF(lflush) CALL FLUSH(numout) 625 ENDIF 602 626 jfld = jfld + 1 603 627 blf_i(jfld) = bn_tem … … 609 633 610 634 IF( dta%ll_sal ) THEN 611 if(lwp) write(numout,*) '++++++ reading in sal field' 635 IF(lwp) THEN 636 write(numout,*) '++++++ reading in sal field' 637 IF(lflush) CALL FLUSH(numout) 638 ENDIF 612 639 jfld = jfld + 1 613 640 blf_i(jfld) = bn_sal … … 732 759 write(numout,*) '++++++ dta%ll_tem = ',dta%ll_tem 733 760 write(numout,*) '++++++ dta%ll_sal = ',dta%ll_sal 761 IF(lflush) CALL FLUSH(numout) 734 762 endif 735 763 736 764 IF ( nn_dyn2d_dta(jbdy) == 0 .or. nn_dyn2d_dta(jbdy) == 2 ) THEN 737 if(lwp) write(numout,*) '++++++ dta%ssh/u2d/u3d allocated space' 765 IF(lwp) THEN 766 write(numout,*) '++++++ dta%ssh/u2d/u3d allocated space' 767 IF(lflush) CALL FLUSH(numout) 768 ENDIF 738 769 IF( dta%ll_ssh ) ALLOCATE( dta%ssh(nblen(1)) ) 739 770 IF( dta%ll_u2d ) ALLOCATE( dta%u2d(nblen(2)) ) … … 742 773 IF ( nn_dyn2d_dta(jbdy) == 1 .or. nn_dyn2d_dta(jbdy) == 3 ) THEN 743 774 IF( dta%ll_ssh ) THEN 744 if(lwp) write(numout,*) '++++++ dta%ssh pointing to fnow' 775 IF(lwp) THEN 776 write(numout,*) '++++++ dta%ssh pointing to fnow' 777 IF(lflush) CALL FLUSH(numout) 778 ENDIF 745 779 jfld = jfld + 1 746 780 dta%ssh => bf(jfld)%fnow(:,1,1) … … 748 782 IF ( dta%ll_u2d ) THEN 749 783 IF ( ln_full_vel_array(jbdy) ) THEN 750 if(lwp) write(numout,*) '++++++ dta%u2d allocated space' 784 IF(lwp) THEN 785 write(numout,*) '++++++ dta%u2d allocated space' 786 IF(lflush) CALL FLUSH(numout) 787 ENDIF 751 788 ALLOCATE( dta%u2d(nblen(2)) ) 752 789 ELSE 753 if(lwp) write(numout,*) '++++++ dta%u2d pointing to fnow' 790 IF(lwp) THEN 791 write(numout,*) '++++++ dta%u2d pointing to fnow' 792 IF(lflush) CALL FLUSH(numout) 793 ENDIF 754 794 jfld = jfld + 1 755 795 dta%u2d => bf(jfld)%fnow(:,1,1) … … 758 798 IF ( dta%ll_v2d ) THEN 759 799 IF ( ln_full_vel_array(jbdy) ) THEN 760 if(lwp) write(numout,*) '++++++ dta%v2d allocated space' 800 IF(lwp) THEN 801 write(numout,*) '++++++ dta%v2d allocated space' 802 IF(lflush) CALL FLUSH(numout) 803 ENDIF 761 804 ALLOCATE( dta%v2d(nblen(3)) ) 762 805 ELSE 763 if(lwp) write(numout,*) '++++++ dta%v2d pointing to fnow' 806 IF(lwp) THEN 807 write(numout,*) '++++++ dta%v2d pointing to fnow' 808 IF(lflush) CALL FLUSH(numout) 809 ENDIF 764 810 jfld = jfld + 1 765 811 dta%v2d => bf(jfld)%fnow(:,1,1) … … 769 815 770 816 IF ( nn_dyn3d_dta(jbdy) == 0 ) THEN 771 if(lwp) write(numout,*) '++++++ dta%u3d/v3d allocated space' 817 IF(lwp) THEN 818 write(numout,*) '++++++ dta%u3d/v3d allocated space' 819 IF(lflush) CALL FLUSH(numout) 820 ENDIF 772 821 IF( dta%ll_u3d ) ALLOCATE( dta_bdy(jbdy)%u3d(nblen(2),jpk) ) 773 822 IF( dta%ll_v3d ) ALLOCATE( dta_bdy(jbdy)%v3d(nblen(3),jpk) ) … … 776 825 & ( ln_full_vel_array(jbdy) .and. ( nn_dyn2d_dta(jbdy) == 1 .or. nn_dyn2d_dta(jbdy) == 3 ) ) ) THEN 777 826 IF ( dta%ll_u3d .or. ( ln_full_vel_array(jbdy) .and. dta%ll_u2d ) ) THEN 778 if(lwp) write(numout,*) '++++++ dta%u3d pointing to fnow' 827 IF(lwp) THEN 828 write(numout,*) '++++++ dta%u3d pointing to fnow' 829 IF(lflush) CALL FLUSH(numout) 830 ENDIF 779 831 jfld = jfld + 1 780 832 dta_bdy(jbdy)%u3d => bf(jfld)%fnow(:,1,:) 781 833 ENDIF 782 834 IF ( dta%ll_v3d .or. ( ln_full_vel_array(jbdy) .and. dta%ll_v2d ) ) THEN 783 if(lwp) write(numout,*) '++++++ dta%v3d pointing to fnow' 835 IF(lwp) THEN 836 write(numout,*) '++++++ dta%v3d pointing to fnow' 837 IF(lflush) CALL FLUSH(numout) 838 ENDIF 784 839 jfld = jfld + 1 785 840 dta_bdy(jbdy)%v3d => bf(jfld)%fnow(:,1,:) … … 788 843 789 844 IF( nn_tra_dta(jbdy) == 0 ) THEN 790 if(lwp) write(numout,*) '++++++ dta%tem/sal allocated space' 845 IF(lwp) THEN 846 write(numout,*) '++++++ dta%tem/sal allocated space' 847 IF(lflush) CALL FLUSH(numout) 848 ENDIF 791 849 IF( dta%ll_tem ) ALLOCATE( dta_bdy(jbdy)%tem(nblen(1),jpk) ) 792 850 IF( dta%ll_sal ) ALLOCATE( dta_bdy(jbdy)%sal(nblen(1),jpk) ) 793 851 ELSE 794 852 IF( dta%ll_tem ) THEN 795 if(lwp) write(numout,*) '++++++ dta%tem pointing to fnow' 853 IF(lwp) THEN 854 write(numout,*) '++++++ dta%tem pointing to fnow' 855 IF(lflush) CALL FLUSH(numout) 856 ENDIF 796 857 jfld = jfld + 1 797 858 dta_bdy(jbdy)%tem => bf(jfld)%fnow(:,1,:) 798 859 ENDIF 799 860 IF( dta%ll_sal ) THEN 800 if(lwp) write(numout,*) '++++++ dta%sal pointing to fnow' 861 IF(lwp) THEN 862 write(numout,*) '++++++ dta%sal pointing to fnow' 863 IF(lflush) CALL FLUSH(numout) 864 ENDIF 801 865 jfld = jfld + 1 802 866 dta_bdy(jbdy)%sal => bf(jfld)%fnow(:,1,:) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/BDY/bdyini.F90
r10968 r10986 91 91 ! ----------------------------------------- 92 92 IF ( ln_bdy ) THEN 93 IF(lwp) WRITE(numout,*) 94 IF(lwp) WRITE(numout,*) 'bdy_init : initialization of open boundaries' 95 IF(lwp) WRITE(numout,*) '~~~~~~~~' 93 IF(lwp) THEN 94 WRITE(numout,*) 95 WRITE(numout,*) 'bdy_init : initialization of open boundaries' 96 WRITE(numout,*) '~~~~~~~~' 97 IF(lflush) CALL FLUSH(numout) 98 ENDIF 96 99 ! 97 100 ! Open boundaries definition (arrays and masks) … … 105 108 ! 106 109 ELSE 107 IF(lwp) WRITE(numout,*) 108 IF(lwp) WRITE(numout,*) 'bdy_init : open boundaries not used (ln_bdy = F)' 109 IF(lwp) WRITE(numout,*) '~~~~~~~~' 110 IF(lwp) THEN 111 WRITE(numout,*) 112 WRITE(numout,*) 'bdy_init : open boundaries not used (ln_bdy = F)' 113 WRITE(numout,*) '~~~~~~~~' 114 IF(lflush) CALL FLUSH(numout) 115 ENDIF 110 116 ! 111 117 ENDIF … … 403 409 ENDIF 404 410 ENDIF 411 412 IF(lflush .AND. lwp) CALL FLUSH(numout) 405 413 406 414 ! ------------------------------------------------- … … 568 576 ! 569 577 ibr_max = MAXVAL( nbrdta(:,igrd,ib_bdy) ) 570 IF(lwp) WRITE(numout,*) 571 IF(lwp) WRITE(numout,*) ' Maximum rimwidth in file is ', ibr_max 572 IF(lwp) WRITE(numout,*) ' nn_rimwidth from namelist is ', nn_rimwidth(ib_bdy) 578 IF(lwp) THEN 579 WRITE(numout,*) 580 WRITE(numout,*) ' Maximum rimwidth in file is ', ibr_max 581 WRITE(numout,*) ' nn_rimwidth from namelist is ', nn_rimwidth(ib_bdy) 582 IF(lflush) CALL FLUSH(numout) 583 ENDIF 573 584 IF (ibr_max < nn_rimwidth(ib_bdy)) & 574 585 CALL ctl_stop( 'nn_rimwidth is larger than maximum rimwidth in file',cn_coords_file(ib_bdy) ) … … 1205 1216 IF( i_offset == 1 .and. zefl + zwfl == 2 ) THEN 1206 1217 icount = icount + 1 1207 IF(lwp) WRITE(numout,*) 'Problem with igrd = ',igrd,' at (global) nbi, nbj : ',mig(nbi),mjg(nbj) 1218 IF(lwp) THEN 1219 WRITE(numout,*) 'Problem with igrd = ',igrd,' at (global) nbi, nbj : ',mig(nbi),mjg(nbj) 1220 IF(lflush) CALL FLUSH(numout) 1221 ENDIF 1208 1222 ELSE 1209 1223 idx_bdy(ib_bdy)%flagu(ib,igrd) = -zefl + zwfl … … 1237 1251 ! This error check only works if you are using the bdyXmask arrays 1238 1252 IF( j_offset == 1 .and. znfl + zsfl == 2 ) THEN 1239 IF(lwp) WRITE(numout,*) 'Problem with igrd = ',igrd,' at (global) nbi, nbj : ',mig(nbi),mjg(nbj) 1253 IF(lwp) THEN 1254 WRITE(numout,*) 'Problem with igrd = ',igrd,' at (global) nbi, nbj : ',mig(nbi),mjg(nbj) 1255 IF(lflush) CALL FLUSH(numout) 1256 ENDIF 1240 1257 icount = icount + 1 1241 1258 ELSE … … 1273 1290 !!---------------------------------------------------------------------- 1274 1291 ! 1275 IF (lwp) WRITE(numout,*) ' ' 1276 IF (lwp) WRITE(numout,*) 'bdy_ctl_seg: Check analytical segments' 1277 IF (lwp) WRITE(numout,*) '~~~~~~~~~~~~' 1278 ! 1279 IF(lwp) WRITE(numout,*) 'Number of east segments : ', nbdysege 1280 IF(lwp) WRITE(numout,*) 'Number of west segments : ', nbdysegw 1281 IF(lwp) WRITE(numout,*) 'Number of north segments : ', nbdysegn 1282 IF(lwp) WRITE(numout,*) 'Number of south segments : ', nbdysegs 1292 IF (lwp) THEN 1293 WRITE(numout,*) ' ' 1294 WRITE(numout,*) 'bdy_ctl_seg: Check analytical segments' 1295 WRITE(numout,*) '~~~~~~~~~~~~' 1296 ! 1297 WRITE(numout,*) 'Number of east segments : ', nbdysege 1298 WRITE(numout,*) 'Number of west segments : ', nbdysegw 1299 WRITE(numout,*) 'Number of north segments : ', nbdysegn 1300 WRITE(numout,*) 'Number of south segments : ', nbdysegs 1301 IF(lflush) CALL FLUSH(numout) 1302 ENDIF 1283 1303 ! 1. Check bounds 1284 1304 !---------------- … … 1322 1342 ! 2. Look for segment crossings 1323 1343 !------------------------------ 1324 IF (lwp) WRITE(numout,*) '**Look for segments corners :' 1344 IF (lwp) THEN 1345 WRITE(numout,*) '**Look for segments corners :' 1346 IF(lflush) CALL FLUSH(numout) 1347 ENDIF 1325 1348 ! 1326 1349 itest = 0 ! corner number … … 1482 1505 ELSE 1483 1506 ! This is a corner 1484 IF(lwp) WRITE(numout,*) 'Found a South-West corner at (i,j): ', jpiwob(ib), jpjwdt(ib) 1507 IF(lwp) THEN 1508 WRITE(numout,*) 'Found a South-West corner at (i,j): ', jpiwob(ib), jpjwdt(ib) 1509 IF(lflush) CALL FLUSH(numout) 1510 ENDIF 1485 1511 CALL bdy_ctl_corn(npckgw(ib), icornw(ib,1)) 1486 1512 itest=itest+1 … … 1494 1520 ELSE 1495 1521 ! This is a corner 1496 IF(lwp) WRITE(numout,*) 'Found a North-West corner at (i,j): ', jpiwob(ib), jpjwft(ib) 1522 IF(lwp) THEN 1523 WRITE(numout,*) 'Found a North-West corner at (i,j): ', jpiwob(ib), jpjwft(ib) 1524 IF(lflush) CALL FLUSH(numout) 1525 ENDIF 1497 1526 CALL bdy_ctl_corn(npckgw(ib), icornw(ib,2)) 1498 1527 itest=itest+1 … … 1522 1551 ELSE 1523 1552 ! This is a corner 1524 IF(lwp) WRITE(numout,*) 'Found a South-East corner at (i,j): ', jpieob(ib)+1, jpjedt(ib) 1553 IF(lwp) THEN 1554 WRITE(numout,*) 'Found a South-East corner at (i,j): ', jpieob(ib)+1, jpjedt(ib) 1555 IF(lflush) CALL FLUSH(numout) 1556 ENDIF 1525 1557 CALL bdy_ctl_corn(npckge(ib), icorne(ib,1)) 1526 1558 itest=itest+1 … … 1534 1566 ELSE 1535 1567 ! This is a corner 1536 IF(lwp) WRITE(numout,*) 'Found a North-East corner at (i,j): ', jpieob(ib)+1, jpjeft(ib) 1568 IF(lwp) THEN 1569 WRITE(numout,*) 'Found a North-East corner at (i,j): ', jpieob(ib)+1, jpjeft(ib) 1570 IF(lflush) CALL FLUSH(numout) 1571 ENDIF 1537 1572 CALL bdy_ctl_corn(npckge(ib), icorne(ib,2)) 1538 1573 itest=itest+1 … … 1593 1628 END DO 1594 1629 ! 1595 IF ((itest==0).AND.(lwp)) WRITE(numout,*) 'NO open boundary corner found' 1630 IF ((itest==0).AND.(lwp)) THEN 1631 WRITE(numout,*) 'NO open boundary corner found' 1632 IF(lflush) CALL FLUSH(numout) 1633 ENDIF 1596 1634 ! 1597 1635 ! Other tests TBD: -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/BDY/bdytides.F90
r10968 r10986 82 82 !!---------------------------------------------------------------------- 83 83 ! 84 IF (nb_bdy>0) THEN 85 IF(lwp) WRITE(numout,*) 86 IF(lwp) WRITE(numout,*) 'bdytide_init : initialization of tidal harmonic forcing at open boundaries' 87 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 84 IF (nb_bdy>0 .AND. lwp) THEN 85 WRITE(numout,*) 86 WRITE(numout,*) 'bdytide_init : initialization of tidal harmonic forcing at open boundaries' 87 WRITE(numout,*) '~~~~~~~~~~~~' 88 IF(lflush) CALL FLUSH(numout) 88 89 ENDIF 89 90 … … 107 108 IF(lwm .AND. nprint > 2) WRITE ( numond, nambdy_tide ) 108 109 ! ! Parameter control and print 109 IF(lwp) WRITE(numout,*) ' '110 IF(lwp) WRITE(numout,*) ' Namelist nambdy_tide : tidal harmonic forcing at open boundaries'111 IF(lwp) WRITE(numout,*) ' read tidal data in 2d files: ', ln_bdytide_2ddta112 IF(lwp) WRITE(numout,*) ' assume complex conjugate : ', ln_bdytide_conj113 IF(lwp) WRITE(numout,*) ' Number of tidal components to read: ', nb_harmo114 IF(lwp) THEN115 110 IF(lwp) THEN 111 WRITE(numout,*) ' ' 112 WRITE(numout,*) ' Namelist nambdy_tide : tidal harmonic forcing at open boundaries' 113 WRITE(numout,*) ' read tidal data in 2d files: ', ln_bdytide_2ddta 114 WRITE(numout,*) ' assume complex conjugate : ', ln_bdytide_conj 115 WRITE(numout,*) ' Number of tidal components to read: ', nb_harmo 116 WRITE(numout,*) ' Tidal components: ' 116 117 DO itide = 1, nb_harmo 117 118 WRITE(numout,*) ' ', Wave(ntide(itide))%cname_tide 118 119 END DO 120 WRITE(numout,*) ' ' 121 IF(lflush) CALL FLUSH(numout) 119 122 ENDIF 120 IF(lwp) WRITE(numout,*) ' '121 123 122 124 ! Allocate space for tidal harmonics data - get size from OBC data arrays … … 312 314 WRITE(numout,*) 'bdytide_update : (re)Initialization of the tidal bdy forcing at kt=',kt 313 315 WRITE(numout,*) '~~~~~~~~~~~~~~ ' 316 IF(lflush) CALL FLUSH(numout) 314 317 ENDIF 315 318 ! … … 419 422 ! 420 423 IF(lwp) THEN 421 WRITE(numout,*) 422 WRITE(numout,*) 'bdy_tide_dta : Refresh nodal factors for tidal open bdy data at kt=',kt 423 WRITE(numout,*) '~~~~~~~~~~~~~~ ' 424 WRITE(numout,*) 425 WRITE(numout,*) 'bdy_tide_dta : Refresh nodal factors for tidal open bdy data at kt=',kt 426 WRITE(numout,*) '~~~~~~~~~~~~~~ ' 427 IF(lflush) CALL FLUSH(numout) 424 428 ENDIF 425 429 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/BDY/bdyvol.F90
r10888 r10986 163 163 164 164 165 IF(lwp) WRITE(numout,*) 166 IF(lwp) WRITE(numout,*)'bdy_vol : time step :', kt 167 IF(lwp) WRITE(numout,*)'~~~~~~~ ' 168 IF(lwp) WRITE(numout,*)' cumulate flux EMP =', z_cflxemp , ' (m3/s)' 169 IF(lwp) WRITE(numout,*)' total lateral surface of OBC =', bdysurftot, '(m2)' 170 IF(lwp) WRITE(numout,*)' correction velocity zubtpecor =', zubtpecor , '(m/s)' 171 IF(lwp) WRITE(numout,*)' cumulated transport ztranst =', ztranst , '(m3/s)' 165 IF(lwp) THEN 166 WRITE(numout,*) 167 WRITE(numout,*)'bdy_vol : time step :', kt 168 WRITE(numout,*)'~~~~~~~ ' 169 WRITE(numout,*)' cumulate flux EMP =', z_cflxemp , ' (m3/s)' 170 WRITE(numout,*)' total lateral surface of OBC =', bdysurftot, '(m2)' 171 WRITE(numout,*)' correction velocity zubtpecor =', zubtpecor , '(m/s)' 172 WRITE(numout,*)' cumulated transport ztranst =', ztranst , '(m3/s)' 173 IF(lflush) CALL FLUSH(numout) 174 ENDIF 172 175 END IF 173 176 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/C1D/c1d.F90
r10968 r10986 67 67 WRITE(numout,*) ' column longitude rn_lon1d = ', rn_lon1d 68 68 WRITE(numout,*) ' column localization in a grid ln_c1d_locpt = ', ln_c1d_locpt 69 IF(lflush) CALL FLUSH(numout) 69 70 ENDIF 70 71 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/C1D/dtauvd.F90
r10968 r10986 84 84 WRITE(numout,*) ' U & V current data not used' 85 85 ENDIF 86 IF(lflush) CALL FLUSH(numout) 86 87 ENDIF 87 88 ! ! no initialization when restarting … … 155 156 WRITE(numout,*) 156 157 WRITE(numout,*) 'dta_uvd: interpolate U & V current data onto the s- or mixed s-z-coordinate mesh' 158 IF(lflush) CALL FLUSH(numout) 157 159 ENDIF 158 160 ! … … 210 212 IF( .NOT. ln_uvd_dyndmp ) THEN !== deallocate U & V current structure ==! 211 213 ! !== (data used only for initialization) ==! 212 IF(lwp) WRITE(numout,*) 'dta_uvd: deallocate U & V current arrays as they are only used to initialize the run' 214 IF(lwp) THEN 215 WRITE(numout,*) 'dta_uvd: deallocate U & V current arrays as they are only used to initialize the run' 216 IF(lflush) CALL FLUSH(numout) 217 ENDIF 213 218 DEALLOCATE( sf_uvd(1)%fnow ) ! U current arrays in the structure 214 219 IF( sf_uvd(1)%ln_tint ) DEALLOCATE( sf_uvd(1)%fdta ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/C1D/dyncor_c1d.F90
r10888 r10986 48 48 !!---------------------------------------------------------------------- 49 49 50 IF(lwp) WRITE(numout,*) 51 IF(lwp) WRITE(numout,*) 'cor_c1d : Coriolis factor at T-point' 52 IF(lwp) WRITE(numout,*) '~~~~~~~' 50 IF(lwp) THEN 51 WRITE(numout,*) 52 WRITE(numout,*) 'cor_c1d : Coriolis factor at T-point' 53 WRITE(numout,*) '~~~~~~~' 54 IF(lflush) CALL FLUSH(numout) 55 ENDIF 53 56 54 57 ! … … 68 71 !!---------------------------------------------------------------------- 69 72 ! 70 IF( kt == nit000 ) THEN 71 IF(lwp) WRITE(numout,*) 72 IF(lwp) WRITE(numout,*) 'dyn_cor_c1d : total vorticity trend in 1D' 73 IF(lwp) WRITE(numout,*) '~~~~~~~~~~' 73 IF( kt == nit000 .AND. lwp) THEN 74 WRITE(numout,*) 75 WRITE(numout,*) 'dyn_cor_c1d : total vorticity trend in 1D' 76 WRITE(numout,*) '~~~~~~~~~~' 77 IF(lflush) CALL FLUSH(numout) 74 78 ENDIF 75 79 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/C1D/dyndmp.F90
r10968 r10986 98 98 WRITE(numout,*) ' Damping file name cn_resto = ', cn_resto 99 99 WRITE(numout,*) 100 IF(lflush) CALL FLUSH(numout) 100 101 ENDIF 101 102 ! … … 112 113 CALL ctl_stop(ctmp1) 113 114 END SELECT 115 IF(lwp .AND. lflush) CALL FLUSH(numout) 114 116 ! 115 117 IF( .NOT. ln_uvd_dyndmp ) THEN ! force the initialization of U & V current data for damping -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/CRS/crsdom.F90
r10888 r10986 2085 2085 WRITE(numout,*) ' njmpp_full = ', njmpp_full 2086 2086 WRITE(numout,*) 2087 IF(lflush) CALL FLUSH(numout) 2087 2088 ENDIF 2088 2089 … … 2147 2148 2148 2149 CASE ( 2 ) 2149 WRITE(numout,*) 'crs_init, jperio=2 not supported' 2150 IF(lwp) THEN 2151 WRITE(numout,*) 'crs_init, jperio=2 not supported' 2152 IF(lflush) CALL FLUSH(numout) 2153 ENDIF 2150 2154 2151 2155 CASE ( 5, 6 ) ! F-pivot at North Fold … … 2178 2182 2179 2183 CASE DEFAULT 2180 WRITE(numout,*) 'crs_init. Only jperio = 0, 1, 3, 4, 5, 6 supported' 2184 IF(lwp) THEN 2185 WRITE(numout,*) 'crs_init. Only jperio = 0, 1, 3, 4, 5, 6 supported' 2186 IF(lflush) CALL FLUSH(numout) 2187 ENDIF 2181 2188 2182 2189 END SELECT 2183 2190 2184 2191 CASE (1 ) 2185 WRITE(numout,*) 'crs_init. Equator-centered bins option not yet available' 2192 IF(lwp) THEN 2193 WRITE(numout,*) 'crs_init. Equator-centered bins option not yet available' 2194 IF(lflush) CALL FLUSH(numout) 2195 ENDIF 2186 2196 2187 2197 END SELECT … … 2250 2260 2251 2261 ! 2252 IF(lwp) WRITE(numout,*) 2253 IF(lwp) WRITE(numout,*) ' crsini : mbkt is ocean bottom k-index of T-, U-, V- and W-levels ' 2254 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~' 2262 IF(lwp) THEN 2263 WRITE(numout,*) 2264 WRITE(numout,*) ' crsini : mbkt is ocean bottom k-index of T-, U-, V- and W-levels ' 2265 WRITE(numout,*) ' ~~~~~~~~~~~~~' 2266 IF(lflush) CALL FLUSH(numout) 2267 ENDIF 2255 2268 ! 2256 2269 mbkt_crs(:,:) = MAX( mbathy_crs(:,:) , 1 ) ! bottom k-index of T-level (=1 over land) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/CRS/crsdomwri.F90
r10888 r10986 58 58 ! 59 59 ! 60 IF(lwp) WRITE(numout,*) 61 IF(lwp) WRITE(numout,*) 'crs_dom_wri : create NetCDF mesh and mask file' 62 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 60 IF(lwp) THEN 61 WRITE(numout,*) 62 WRITE(numout,*) 'crs_dom_wri : create NetCDF mesh and mask file' 63 WRITE(numout,*) '~~~~~~~~~~~' 64 IF(lflush) CALL FLUSH(numout) 65 ENDIF 63 66 64 67 clnam = 'mesh_mask_crs' ! filename (mesh and mask informations) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/CRS/crsini.F90
r10968 r10986 99 99 WRITE(numout,*) ' type of Kz coarsening (0,1,2) nn_crs_kz = ', nn_crs_kz 100 100 WRITE(numout,*) ' wn coarsened or computed using hdivn ln_crs_wn = ', ln_crs_wn 101 IF(lflush) CALL FLUSH(numout) 101 102 ENDIF 102 103 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/dia25h.F90
r10968 r10986 67 67 WRITE(numout,*) ' Namelist nam_dia25h : set 25h outputs ' 68 68 WRITE(numout,*) ' Switch for 25h diagnostics (T) or not (F) ln_dia25h = ', ln_dia25h 69 IF(lflush) CALL FLUSH(numout) 69 70 ENDIF 70 71 IF( .NOT. ln_dia25h ) RETURN … … 159 160 WRITE(numout,*) 'dia_wri_tide : Summing instantaneous hourly diagnostics at timestep ',kt 160 161 WRITE(numout,*) '~~~~~~~~~~~~ ' 162 IF(lflush) CALL FLUSH(numout) 161 163 ENDIF 162 164 … … 180 182 IF (lwp) THEN 181 183 WRITE(numout,*) 'dia_tide : Summed the following number of hourly values so far',cnt_25h 184 IF(lflush) CALL FLUSH(numout) 182 185 ENDIF 183 186 ! … … 190 193 WRITE(numout,*) 'dia_wri_tide : Writing 25 hour mean tide diagnostics at timestep', kt 191 194 WRITE(numout,*) '~~~~~~~~~~~~ ' 195 IF(lflush) CALL FLUSH(numout) 192 196 ENDIF 193 197 ! … … 208 212 ENDIF 209 213 ! 210 IF(lwp) WRITE(numout,*) 'dia_wri_tide : Mean calculated by dividing 25 hour sums and writing output' 214 IF(lwp) THEN 215 WRITE(numout,*) 'dia_wri_tide : Mean calculated by dividing 25 hour sums and writing output' 216 IF(lflush) CALL FLUSH(numout) 217 ENDIF 211 218 zmdi=1.e+20 !missing data indicator for masking 212 219 ! write tracers (instantaneous) … … 261 268 ENDIF 262 269 cnt_25h = 1 263 IF(lwp) WRITE(numout,*) 'dia_wri_tide : & 270 IF(lwp) THEN 271 WRITE(numout,*) 'dia_wri_tide : & 264 272 & After 25hr mean write, reset sum to current value and cnt_25h to one for overlapping average', cnt_25h 273 IF(lflush) CALL FLUSH(numout) 274 ENDIF 265 275 ENDIF ! cnt_25h .EQ. 25 .AND. MOD( kt, i_steps * 24) == 0 .AND. kt .NE. nn_it000 266 276 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diacfl.F90
r10888 r10986 142 142 WRITE(numout,*) ' Max Cv = ', rCv_max, ' at (i,j,k) = (',nCv_loc(1),nCv_loc(2),nCv_loc(3),') => dt/C = ', z2dt/rCv_max 143 143 WRITE(numout,*) ' Max Cw = ', rCw_max, ' at (i,j,k) = (',nCw_loc(1),nCw_loc(2),nCw_loc(3),') => dt/C = ', z2dt/rCw_max 144 IF(lflush) CALL FLUSH(numout) 144 145 ENDIF 145 146 ! … … 166 167 WRITE(numcfl,*) 'Timestep Direction Max C i j k' 167 168 WRITE(numcfl,*) '******************************************' 169 IF(lflush) CALL FLUSH(numout) 168 170 ENDIF 169 171 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diadct.F90
r10968 r10986 158 158 IF(nn_dct .GE. nn_dctwri .AND. MOD(nn_dct,nn_dctwri) .NE. 0) & 159 159 & CALL ctl_stop( 'diadct: nn_dct should be smaller and a multiple of nn_dctwri' ) 160 160 IF(lflush) CALL FLUSH(numout) 161 161 ENDIF 162 162 … … 222 222 WRITE(numout,*) "~~~~~~~~~~~~~~~~~~~~~~~~~" 223 223 WRITE(numout,*) "nb_sec = ",nb_sec 224 IF(lflush) CALL FLUSH(numout) 224 225 ENDIF 225 226 … … 241 242 IF( MOD(kt,nn_dctwri)==0 )THEN 242 243 243 IF( kt==nit000+nn_dctwri-1 )WRITE(numout,*)" diadct: average transports and write at kt = ",kt 244 IF( kt==nit000+nn_dctwri-1 ) THEN 245 WRITE(numout,*)" diadct: average transports and write at kt = ",kt 246 IF(lflush) CALL FLUSH(numout) 247 ENDIF 244 248 245 249 !! divide arrays by nn_dctwri/nn_dct to obtain average … … 321 325 DO jsec=1,nb_sec_max !loop on the nb_sec sections 322 326 323 IF ( jsec==nn_secdebug .OR. nn_secdebug==-1 ) & 324 & WRITE(numout,*)'debuging for section number: ',jsec 327 IF ( jsec==nn_secdebug .OR. nn_secdebug==-1 ) THEN 328 WRITE(numout,*)'debuging for section number: ',jsec 329 IF(lflush) CALL FLUSH(numout) 330 ENDIF 325 331 326 332 !initialization … … 341 347 IF( jsec .NE. isec ) CALL ctl_stop( cltmp ) 342 348 343 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )WRITE(numout,*)"isec ",isec 349 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 ) THEN 350 WRITE(numout,*)"isec ",isec 351 IF(lflush) CALL FLUSH(numout) 352 ENDIF 344 353 345 354 READ(numdct_in)secs(jsec)%name … … 376 385 WRITE(numout,clformat)" Temperature classes : ",secs(jsec)%ztem 377 386 WRITE(numout,clformat)" Depth classes : ",secs(jsec)%zlay 387 IF(lflush) CALL FLUSH(numout) 378 388 ENDIF 379 389 … … 398 408 WRITE(numout,*)' # I J ',jpt,coordtemp(jpt),directemp(jpt) 399 409 ENDDO 410 IF(lflush) CALL FLUSH(numout) 400 411 ENDIF 401 412 … … 434 445 WRITE(numout,*)' # I J : ',iiglo,ijglo 435 446 ENDDO 447 IF(lflush) CALL FLUSH(numout) 436 448 ENDIF 437 449 … … 468 480 ijglo = secs(jsec)%listPoint(jpt)%J + njmpp - 1 469 481 WRITE(numout,*)' # I J : ',iiglo,ijglo 470 CALL FLUSH(numout)482 IF(lflush) CALL FLUSH(numout) 471 483 ENDDO 472 484 ENDIF 473 485 474 486 ELSE ! iptglo = 0 475 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 ) &487 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 ) THEN 476 488 WRITE(numout,*)' No points for this section.' 489 IF(lflush) CALL FLUSH(numout) 490 ENDIF 477 491 ENDIF 478 492 … … 510 524 !---------------------------------------------------------------------------- 511 525 ! 512 IF( ld_debug )WRITE(numout,*)' -------------------------' 513 IF( ld_debug )WRITE(numout,*)' removepoints in listpoint' 526 IF( ld_debug ) THEN 527 WRITE(numout,*)' -------------------------' 528 WRITE(numout,*)' removepoints in listpoint' 529 IF(lflush) CALL FLUSH(numout) 530 ENDIF 514 531 515 532 !iextr=extremity of list_point that we verify … … 529 546 WRITE(numout,*)' ', cdind,' ',cdextr,' ',itest 530 547 WRITE(numout,*)' Actual number of points: ',sec%nb_point 548 IF(lflush) CALL FLUSH(numout) 531 549 ENDIF 532 550 … … 556 574 WRITE(numout,*)' Number of points after removepoints :',sec%nb_point 557 575 WRITE(numout,*)' sec%direction after removepoints :',sec%direction(1:sec%nb_point) 576 IF(lflush) CALL FLUSH(numout) 558 577 ENDIF 559 578 ! … … 592 611 !!-------------------------------------------------------- 593 612 ! 594 IF( ld_debug )WRITE(numout,*)' Compute transport' 613 IF( ld_debug ) THEN 614 WRITE(numout,*)' Compute transport' 615 IF(lflush) CALL FLUSH(numout) 616 ENDIF 595 617 596 618 !---------------------------! … … 626 648 IF( sec%slopeSection .GE. 9999. ) isgnv = 1 627 649 628 IF( ld_debug )write(numout,*)"sec%slopeSection isgnu isgnv ",sec%slopeSection,isgnu,isgnv 650 IF( ld_debug ) THEN 651 write(numout,*)"sec%slopeSection isgnu isgnv ",sec%slopeSection,isgnu,isgnv 652 IF(lflush) CALL FLUSH(numout) 653 ENDIF 629 654 630 655 !--------------------------------------! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diaharm.F90
r10968 r10986 81 81 WRITE(numout,*) 'dia_harm_init: Tidal harmonic analysis initialization' 82 82 WRITE(numout,*) '~~~~~~~ ' 83 IF(lflush) CALL FLUSH(numout) 83 84 ENDIF 84 85 ! … … 99 100 WRITE(numout,*) 'Last time step used for analysis: nitend_han= ', nitend_han 100 101 WRITE(numout,*) 'Time step frequency for harmonic analysis: nstep_han= ', nstep_han 102 IF(lflush) CALL FLUSH(numout) 101 103 ENDIF 102 104 … … 123 125 WRITE(numout,*) ' Namelist nam_diaharm' 124 126 WRITE(numout,*) ' nb_ana = ', nb_ana 125 CALL flush(numout)127 IF(lflush) CALL FLUSH(numout) 126 128 ENDIF 127 129 ! … … 148 150 CALL tide_harmo( ana_freq, vt, ut, ft, name, nb_ana ) 149 151 150 IF(lwp) WRITE(numout,*) 'Analysed frequency : ',nb_ana ,'Frequency ' 151 152 DO jh = 1, nb_ana 153 IF(lwp) WRITE(numout,*) ' : ',tname(jh),' ',ana_freq(jh) 154 END DO 152 IF(lwp) THEN 153 WRITE(numout,*) 'Analysed frequency : ',nb_ana ,'Frequency ' 154 DO jh = 1, nb_ana 155 WRITE(numout,*) ' : ',tname(jh),' ',ana_freq(jh) 156 END DO 157 IF(lflush) CALL FLUSH(numout) 158 ENDIF 155 159 156 160 ! Initialize temporary arrays: … … 228 232 !!-------------------------------------------------------------------- 229 233 ! 230 IF(lwp) WRITE(numout,*) 231 IF(lwp) WRITE(numout,*) 'anharmo_end: kt=nitend_han: Perform harmonic analysis' 232 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 234 IF(lwp) THEN 235 WRITE(numout,*) 236 WRITE(numout,*) 'anharmo_end: kt=nitend_han: Perform harmonic analysis' 237 WRITE(numout,*) '~~~~~~~~~~~~' 238 IF(lflush) CALL FLUSH(numout) 239 ENDIF 233 240 234 241 ztime_ini = nit000_han*rdt ! Initial time in seconds at the beginning of analysis … … 382 389 !!---------------------------------------------------------------------- 383 390 384 IF(lwp) WRITE(numout,*) ' ' 385 IF(lwp) WRITE(numout,*) 'dia_wri_harm : Write harmonic analysis results' 386 IF(lwp) WRITE(numout,*) ' ' 391 IF(lwp) THEN 392 WRITE(numout,*) ' ' 393 WRITE(numout,*) 'dia_wri_harm : Write harmonic analysis results' 394 WRITE(numout,*) ' ' 395 IF(lflush) CALL FLUSH(numout) 396 ENDIF 387 397 388 398 ! A) Elevation -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diahsb.F90
r10968 r10986 211 211 CALL iom_put( 'bgvole3t' , zdiff_v2 * 1.e-9 ) ! volume e3t drift (km3) 212 212 ! 213 IF( kt == nitend .AND. lwp ) THEN213 IF( kt == nitend .AND. lwp .AND. nprint > 0) THEN 214 214 WRITE(numout,*) 215 215 WRITE(numout,*) 'dia_hsb : last time step hsb diagnostics: at it= ', kt,' date= ', ndastp … … 219 219 WRITE(numout,*) ' volume ssh drift = ', zdiff_v1 * 1.e-9 , ' km^3' 220 220 WRITE(numout,*) ' volume e3t drift = ', zdiff_v2 * 1.e-9 , ' km^3' 221 IF(lflush) CALL FLUSH(numout) 221 222 ENDIF 222 223 ! … … 257 258 IF( ln_rstart ) THEN !* Read the restart file 258 259 ! 259 IF(lwp) WRITE(numout,*) 260 IF(lwp) WRITE(numout,*) ' dia_hsb_rst : read hsb restart at it= ', kt,' date= ', ndastp 261 IF(lwp) WRITE(numout,*) 260 IF(lwp) THEN 261 WRITE(numout,*) 262 WRITE(numout,*) ' dia_hsb_rst : read hsb restart at it= ', kt,' date= ', ndastp 263 WRITE(numout,*) 264 IF(lflush) CALL FLUSH(numout) 265 ENDIF 262 266 CALL iom_get( numror, 'frc_v', frc_v, ldxios = lrxios ) 263 267 CALL iom_get( numror, 'frc_t', frc_t, ldxios = lrxios ) … … 277 281 ENDIF 278 282 ELSE 279 IF(lwp) WRITE(numout,*) 280 IF(lwp) WRITE(numout,*) ' dia_hsb_rst : initialise hsb at initial state ' 281 IF(lwp) WRITE(numout,*) 283 IF(lwp) THEN 284 WRITE(numout,*) 285 WRITE(numout,*) ' dia_hsb_rst : initialise hsb at initial state ' 286 WRITE(numout,*) 287 ENDIF 282 288 surf_ini(:,:) = e1e2t(:,:) * tmask_i(:,:) ! initial ocean surface 283 289 ssh_ini(:,:) = sshn(:,:) ! initial ssh … … 310 316 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN ! Create restart file 311 317 ! ! ------------------- 312 IF(lwp .AND. nprint > 0) WRITE(numout,*) 313 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' dia_hsb_rst : write restart at it= ', kt,' date= ', ndastp 314 IF(lwp .AND. nprint > 0) WRITE(numout,*) 318 IF(lwp .AND. nprint > 0) THEN 319 WRITE(numout,*) 320 WRITE(numout,*) ' dia_hsb_rst : write restart at it= ', kt,' date= ', ndastp 321 WRITE(numout,*) 322 IF(lflush) CALL FLUSH(numout) 323 ENDIF 315 324 ! 316 325 IF( lwxios ) CALL iom_swap( cwxios_context ) … … 359 368 WRITE(numout,*) 'dia_hsb_init : heat and salt budgets diagnostics' 360 369 WRITE(numout,*) '~~~~~~~~~~~~ ' 370 IF(lflush) CALL FLUSH(numout) 361 371 ENDIF 362 372 REWIND( numnam_ref ) ! Namelist namhsb in reference namelist … … 371 381 WRITE(numout,*) ' Namelist namhsb :' 372 382 WRITE(numout,*) ' check the heat and salt budgets (T) or not (F) ln_diahsb = ', ln_diahsb 383 IF(lflush) CALL FLUSH(numout) 373 384 ENDIF 374 385 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diahth.F90
r10888 r10986 127 127 END IF 128 128 129 IF(lwp) WRITE(numout,*) 130 IF(lwp) WRITE(numout,*) 'dia_hth : diagnostics of the thermocline depth' 131 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 132 IF(lwp) WRITE(numout,*) 129 IF(lwp) THEN 130 WRITE(numout,*) 131 WRITE(numout,*) 'dia_hth : diagnostics of the thermocline depth' 132 WRITE(numout,*) '~~~~~~~ ' 133 WRITE(numout,*) 134 IF(lflush) CALL FLUSH(numout) 135 ENDIF 133 136 ENDIF 134 137 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diaptr.F90
r10968 r10986 407 407 WRITE(numout,*) ' Poleward heat & salt transport (T) or not (F) ln_diaptr = ', ln_diaptr 408 408 WRITE(numout,*) ' Global (F) or glo/Atl/Pac/Ind/Indo-Pac basins ln_subbas = ', ln_subbas 409 IF(lflush) CALL FLUSH(numout) 409 410 ENDIF 410 411 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diatmb.F90
r10968 r10986 56 56 WRITE(numout,*) ' Namelist nam_diatmb : set tmb outputs ' 57 57 WRITE(numout,*) ' Switch for TMB diagnostics (T) or not (F) ln_diatmb = ', ln_diatmb 58 IF(lflush) CALL FLUSH(numout) 58 59 ENDIF 59 60 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DIA/diawri.F90
r10888 r10986 430 430 INTEGER, INTENT( in ) :: kt ! ocean time-step index 431 431 ! 432 LOGICAL :: ll_print = .FALSE. ! =T print and flush numout433 432 CHARACTER (len=40) :: clhstnam, clop, clmx ! local names 434 433 INTEGER :: inum = 11 ! temporary logical unit … … 488 487 CALL ymds2ju( nyear, nmonth, nday, rdt, zjulian ) 489 488 zjulian = zjulian - adatrj ! set calendar origin to the beginning of the experiment 490 IF(lwp)WRITE(numout,*) 491 IF(lwp)WRITE(numout,*) 'Date 0 used :', nit000, ' YEAR ', nyear, & 489 IF(lwp) THEN 490 WRITE(numout,*) 491 WRITE(numout,*) 'Date 0 used :', nit000, ' YEAR ', nyear, & 492 492 & ' MONTH ', nmonth, ' DAY ', nday, 'Julian day : ', zjulian 493 IF(lwp)WRITE(numout,*) ' indexes of zoom = ', iimi, iima, ijmi, ijma, &493 WRITE(numout,*) ' indexes of zoom = ', iimi, iima, ijmi, ijma, & 494 494 ' limit storage in depth = ', ipk 495 496 ! WRITE root name in date.file for use by postpro 497 IF(lwp) THEN 495 IF(lflush) CALL FLUSH(numout) 496 ! WRITE root name in date.file for use by postpro 498 497 CALL dia_nam( clhstnam, nwrite,' ' ) 499 498 CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) … … 505 504 506 505 CALL dia_nam( clhstnam, nwrite, 'grid_T' ) 507 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 506 IF(lwp) THEN 507 WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 508 IF(lflush) CALL FLUSH(numout) 509 ENDIF 508 510 CALL histbeg( clhstnam, jpi, glamt, jpj, gphit, & ! Horizontal grid: glamt and gphit 509 511 & iimi, iima-iimi+1, ijmi, ijma-ijmi+1, & … … 541 543 542 544 CALL dia_nam( clhstnam, nwrite, 'grid_U' ) 543 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 545 IF(lwp) THEN 546 WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 547 IF(lflush) CALL FLUSH(numout) 548 ENDIF 544 549 CALL histbeg( clhstnam, jpi, glamu, jpj, gphiu, & ! Horizontal grid: glamu and gphiu 545 550 & iimi, iima-iimi+1, ijmi, ijma-ijmi+1, & … … 554 559 555 560 CALL dia_nam( clhstnam, nwrite, 'grid_V' ) ! filename 556 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 561 IF(lwp) THEN 562 WRITE(numout,*) " Name of NETCDF file ", clhstnam 563 IF(lflush) CALL FLUSH(numout) 564 ENDIF 557 565 CALL histbeg( clhstnam, jpi, glamv, jpj, gphiv, & ! Horizontal grid: glamv and gphiv 558 566 & iimi, iima-iimi+1, ijmi, ijma-ijmi+1, & … … 567 575 568 576 CALL dia_nam( clhstnam, nwrite, 'grid_W' ) ! filename 569 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 577 IF(lwp) THEN 578 WRITE(numout,*) " Name of NETCDF file ", clhstnam 579 IF(lflush) CALL FLUSH(numout) 580 ENDIF 570 581 CALL histbeg( clhstnam, jpi, glamt, jpj, gphit, & ! Horizontal grid: glamt and gphit 571 582 & iimi, iima-iimi+1, ijmi, ijma-ijmi+1, & … … 737 748 CALL histend( nid_W, snc4chunks=snc4set ) 738 749 739 IF(lwp) WRITE(numout,*) 740 IF(lwp) WRITE(numout,*) 'End of NetCDF Initialization' 741 IF(ll_print) CALL FLUSH(numout ) 750 IF(lwp) THEN 751 WRITE(numout,*) 752 WRITE(numout,*) 'End of NetCDF Initialization' 753 IF(lflush) CALL FLUSH(numout) 754 ENDIF 742 755 743 756 ENDIF … … 753 766 WRITE(numout,*) 'dia_wri : write model outputs in NetCDF files at ', kt, 'time-step' 754 767 WRITE(numout,*) '~~~~~~ ' 768 IF(lflush) CALL FLUSH(numout) 755 769 ENDIF 756 770 … … 887 901 !!---------------------------------------------------------------------- 888 902 ! 889 IF(lwp) WRITE(numout,*) 890 IF(lwp) WRITE(numout,*) 'dia_wri_state : single instantaneous ocean state' 891 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~ and forcing fields file created ' 892 IF(lwp) WRITE(numout,*) ' and named :', cdfile_name, '...nc' 903 IF(lwp) THEN 904 WRITE(numout,*) 905 WRITE(numout,*) 'dia_wri_state : single instantaneous ocean state' 906 WRITE(numout,*) '~~~~~~~~~~~~~ and forcing fields file created ' 907 WRITE(numout,*) ' and named :', cdfile_name, '...nc' 908 IF(lflush) CALL FLUSH(numout) 909 ENDIF 893 910 894 911 #if defined key_si3 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/closea.F90
r10888 r10986 97 97 !!---------------------------------------------------------------------- 98 98 ! 99 IF(lwp) WRITE(numout,*) 100 IF(lwp) WRITE(numout,*)'dom_clo : read in masks to define closed seas ' 101 IF(lwp) WRITE(numout,*)'~~~~~~~' 99 IF(lwp) THEN 100 WRITE(numout,*) 101 WRITE(numout,*)'dom_clo : read in masks to define closed seas ' 102 WRITE(numout,*)'~~~~~~~' 103 IF(lflush) CALL FLUSH(numout) 104 ENDIF 102 105 ! 103 106 ! read the closed seas masks (if they exist) from domain_cfg file (if it exists) … … 120 123 CALL mpp_max('closea', jncs) 121 124 IF( jncs > 0 ) THEN 122 IF( lwp ) WRITE(numout,*) 'Number of closed seas : ',jncs 125 IF( lwp ) THEN 126 WRITE(numout,*) 'Number of closed seas : ',jncs 127 IF(lflush) CALL FLUSH(numout) 128 ENDIF 123 129 ELSE 124 130 CALL ctl_stop( 'Problem with closea_mask field in domain_cfg file. Has no values > 0 so no closed seas defined.') 125 131 ENDIF 126 132 ELSE 127 IF( lwp ) WRITE(numout,*) 128 IF( lwp ) WRITE(numout,*) ' ==>>> closea_mask field not found in domain_cfg file.' 129 IF( lwp ) WRITE(numout,*) ' No closed seas defined.' 130 IF( lwp ) WRITE(numout,*) 133 IF( lwp ) THEN 134 WRITE(numout,*) 135 WRITE(numout,*) ' ==>>> closea_mask field not found in domain_cfg file.' 136 WRITE(numout,*) ' No closed seas defined.' 137 WRITE(numout,*) 138 IF(lflush) CALL FLUSH(numout) 139 ENDIF 131 140 l_sbc_clo = .false. 132 141 jncs = 0 … … 148 157 CALL mpp_max('closea', jncsr) 149 158 IF( jncsr > 0 ) THEN 150 IF( lwp ) WRITE(numout,*) 'Number of closed seas rnf mappings : ',jncsr 159 IF( lwp ) THEN 160 WRITE(numout,*) 'Number of closed seas rnf mappings : ',jncsr 161 IF(lflush) CALL FLUSH(numout) 162 ENDIF 151 163 ELSE 152 164 CALL ctl_stop( 'Problem with closea_mask_rnf field in domain_cfg file. Has no values > 0 so no closed seas rnf mappings defined.') 153 165 ENDIF 154 166 ELSE 155 IF( lwp ) WRITE(numout,*) 'closea_mask_rnf field not found in domain_cfg file. No closed seas rnf mappings defined.' 167 IF( lwp ) THEN 168 WRITE(numout,*) 'closea_mask_rnf field not found in domain_cfg file. No closed seas rnf mappings defined.' 169 IF(lflush) CALL FLUSH(numout) 170 ENDIF 156 171 jncsr = 0 157 172 ENDIF … … 168 183 CALL mpp_max('closea', jncse) 169 184 IF( jncse > 0 ) THEN 170 IF( lwp ) WRITE(numout,*) 'Number of closed seas empmr mappings : ',jncse 185 IF( lwp ) THEN 186 WRITE(numout,*) 'Number of closed seas empmr mappings : ',jncse 187 IF(lflush) CALL FLUSH(numout) 188 ENDIF 171 189 ELSE 172 190 CALL ctl_stop( 'Problem with closea_mask_empmr field in domain_cfg file. Has no values > 0 so no closed seas empmr mappings defined.') 173 191 ENDIF 174 192 ELSE 175 IF( lwp ) WRITE(numout,*) 'closea_mask_empmr field not found in domain_cfg file. No closed seas empmr mappings defined.' 193 IF( lwp ) THEN 194 WRITE(numout,*) 'closea_mask_empmr field not found in domain_cfg file. No closed seas empmr mappings defined.' 195 IF(lflush) CALL FLUSH(numout) 196 ENDIF 176 197 jncse = 0 177 198 ENDIF … … 182 203 ! 183 204 ELSE ! ln_read_cfg = .false. so no domain_cfg file 184 IF( lwp ) WRITE(numout,*) 'No domain_cfg file so no closed seas defined.' 205 IF( lwp ) THEN 206 WRITE(numout,*) 'No domain_cfg file so no closed seas defined.' 207 IF(lflush) CALL FLUSH(numout) 208 ENDIF 185 209 l_sbc_clo = .false. 186 210 l_clo_rnf = .false. … … 219 243 IF( kt == nit000 ) THEN ! Initialisation ! 220 244 ! !------------------! 221 IF(lwp) WRITE(numout,*) 222 IF(lwp) WRITE(numout,*)'sbc_clo : closed seas ' 223 IF(lwp) WRITE(numout,*)'~~~~~~~' 245 IF(lwp) THEN 246 WRITE(numout,*) 247 WRITE(numout,*)'sbc_clo : closed seas ' 248 WRITE(numout,*)'~~~~~~~' 249 IF(lflush) CALL FLUSH(numout) 250 ENDIF 224 251 225 252 ALLOCATE( surf(jncs+1) , STAT=ierr ) … … 267 294 ENDIF 268 295 ! 269 IF(lwp) WRITE(numout,*)' Closed sea surface areas (km2)' 270 DO jc = 1, jncs 271 IF(lwp) WRITE(numout,FMT='(1I3,5X,ES12.2)') jc, surf(jc) * 1.0e-6 272 END DO 273 IF(lwp) WRITE(numout,FMT='(A,ES12.2)') 'Global surface area excluding closed seas (km2): ', surf(jncs+1) * 1.0e-6 274 ! 275 IF(jncsr > 0) THEN 276 IF(lwp) WRITE(numout,*)' Closed sea target rnf surface areas (km2)' 277 DO jcr = 1, jncsr 278 IF(lwp) WRITE(numout,FMT='(1I3,5X,ES12.2)') jcr, surfr(jcr) * 1.0e-6 296 IF(lwp) THEN 297 WRITE(numout,*)' Closed sea surface areas (km2)' 298 DO jc = 1, jncs 299 WRITE(numout,FMT='(1I3,5X,ES12.2)') jc, surf(jc) * 1.0e-6 279 300 END DO 280 ENDIF 281 ! 282 IF(jncse > 0) THEN 283 IF(lwp) WRITE(numout,*)' Closed sea target empmr surface areas (km2)' 284 DO jce = 1, jncse 285 IF(lwp) WRITE(numout,FMT='(1I3,5X,ES12.2)') jce, surfe(jce) * 1.0e-6 286 END DO 301 WRITE(numout,FMT='(A,ES12.2)') 'Global surface area excluding closed seas (km2): ', surf(jncs+1) * 1.0e-6 302 ! 303 IF(jncsr > 0) THEN 304 WRITE(numout,*)' Closed sea target rnf surface areas (km2)' 305 DO jcr = 1, jncsr 306 WRITE(numout,FMT='(1I3,5X,ES12.2)') jcr, surfr(jcr) * 1.0e-6 307 END DO 308 ENDIF 309 ! 310 IF(jncse > 0) THEN 311 WRITE(numout,*)' Closed sea target empmr surface areas (km2)' 312 DO jce = 1, jncse 313 WRITE(numout,FMT='(1I3,5X,ES12.2)') jce, surfe(jce) * 1.0e-6 314 END DO 315 ENDIF 316 IF(lflush) CALL FLUSH(numout) 287 317 ENDIF 288 318 ENDIF … … 453 483 WRITE(numout,*) 'clo_bat : suppression of closed seas' 454 484 WRITE(numout,*) '~~~~~~~' 485 IF(lflush) CALL FLUSH(numout) 455 486 ENDIF 456 487 ! … … 461 492 id = iom_varid(inum, 'closea_mask', ldstop = .false.) 462 493 IF( id > 0 ) THEN 463 IF( lwp ) WRITE(numout,*) 'Suppressing closed seas in bathymetry based on closea_mask field,' 494 IF( lwp ) THEN 495 WRITE(numout,*) 'Suppressing closed seas in bathymetry based on closea_mask field,' 496 IF(lflush) CALL FLUSH(numout) 497 ENDIF 464 498 CALL iom_get ( inum, jpdom_data, 'closea_mask', zdata_in ) 465 499 closea_mask(:,:) = NINT(zdata_in(:,:)) … … 469 503 ENDWHERE 470 504 ELSE 471 IF( lwp ) WRITE(numout,*) 'No closea_mask field found in domain_cfg file. No suppression of closed seas.' 505 IF( lwp ) THEN 506 WRITE(numout,*) 'No closea_mask field found in domain_cfg file. No suppression of closed seas.' 507 IF(lflush) CALL FLUSH(numout) 508 ENDIF 472 509 ENDIF 473 510 ! … … 475 512 ! 476 513 ELSE 477 IF( lwp ) WRITE(numout,*) 'No domain_cfg file => no suppression of closed seas.' 514 IF( lwp ) THEN 515 WRITE(numout,*) 'No domain_cfg file => no suppression of closed seas.' 516 IF(lflush) CALL FLUSH(numout) 517 ENDIF 478 518 ENDIF 479 519 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/daymod.F90
r10968 r10986 134 134 135 135 ! control print 136 IF(lwp) WRITE(numout,'(a,i6,a,i2,a,i2,a,i8,a,i8,a,i8,a,i8)') & 136 IF(lwp) THEN 137 WRITE(numout,'(a,i6,a,i2,a,i2,a,i8,a,i8,a,i8,a,i8)') & 137 138 & ' =======>> 1/2 time step before the start of the run DATE Y/M/D = ', & 138 139 & nyear, '/', nmonth, '/', nday, ' nsec_day:', nsec_day, ' nsec_week:', nsec_week, ' & 139 140 & nsec_month:', nsec_month , ' nsec_year:' , nsec_year 141 IF(lflush) CALL FLUSH(numout) 142 ENDIF 140 143 141 144 ! Up to now, calendar parameters are related to the end of previous run (nit000-1) … … 269 272 CALL ymds2ju( nyear, 01, 01, 0.0, fjulstartyear ) 270 273 ! 271 IF(lwp .AND. nprint > 0) WRITE(numout,'(a,i8,a,i4.4,a,i2.2,a,i2.2,a,i3.3)') '======>> time-step =', kt, & 272 & ' New day, DATE Y/M/D = ', nyear, '/', nmonth, '/', nday, ' nday_year = ', nday_year 273 IF(lwp .AND. nprint > 0) WRITE(numout,'(a,i8,a,i7,a,i5)') ' nsec_year = ', nsec_year, & 274 IF(lwp .AND. nprint > 0) THEN 275 WRITE(numout,'(a,i8,a,i4.4,a,i2.2,a,i2.2,a,i3.3)') '======>> time-step =', kt, & 276 & ' New day, DATE Y/M/D = ', nyear, '/', nmonth, '/', nday, ' nday_year = ', nday_year 277 WRITE(numout,'(a,i8,a,i7,a,i5)') ' nsec_year = ', nsec_year, & 274 278 & ' nsec_month = ', nsec_month, ' nsec_day = ', nsec_day, ' nsec_week = ', nsec_week 279 IF(lflush) CALL FLUSH(numout) 280 ENDIF 275 281 ENDIF 276 282 … … 337 343 END SELECT 338 344 WRITE(numout,*) 345 IF(lflush) CALL FLUSH(numout) 339 346 ENDIF 340 347 ! Control of date … … 397 404 WRITE(numout,*) ' nn_time0 : ',nn_time0 398 405 WRITE(numout,*) 406 IF(lflush) CALL FLUSH(numout) 399 407 ENDIF 400 408 ! … … 406 414 WRITE(numout,*) 'rst_write : write oce restart file kt =', kt 407 415 WRITE(numout,*) '~~~~~~~' 416 IF(lflush) CALL FLUSH(numout) 408 417 ENDIF 409 418 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/domain.F90
r10968 r10986 112 112 WRITE(numout,*) ' Ocean model configuration used:' 113 113 WRITE(numout,*) ' cn_cfg = ', TRIM( cn_cfg ), ' nn_cfg = ', nn_cfg 114 IF(lflush) CALL FLUSH(numout) 114 115 ENDIF 115 116 lwxios = .FALSE. … … 129 130 IF(cdstr == 'SAS') THEN 130 131 IF(lrxios) THEN 131 IF(lwp) write(numout,*) 'Disable reading restart file using XIOS for SAS' 132 IF(lwp) THEN 133 write(numout,*) 'Disable reading restart file using XIOS for SAS' 134 IF(lflush) CALL FLUSH(numout) 135 ENDIF 132 136 lrxios = .FALSE. 133 137 ENDIF … … 203 207 WRITE(numout,*) '~~~~~~~~' 204 208 WRITE(numout,*) 209 IF(lflush) CALL FLUSH(numout) 205 210 ENDIF 206 211 ! … … 268 273 WRITE(numout,25) (mj1(jj),jj = 1,jpjglo) 269 274 ENDIF 275 IF(lflush) CALL FLUSH(numout) 270 276 ENDIF 271 277 25 FORMAT( 100(10x,19i4,/) ) … … 303 309 WRITE(numout,*) 'dom_nam : domain initialization through namelist read' 304 310 WRITE(numout,*) '~~~~~~~ ' 311 IF(lflush) CALL FLUSH(numout) 305 312 ENDIF 306 313 ! … … 349 356 WRITE(numout,*) " AGRIF: ln_xios_read will be ingored. See setting for parent" 350 357 ENDIF 358 IF(lflush) CALL FLUSH(numout) 351 359 ENDIF 352 360 … … 363 371 neuler = nn_euler 364 372 IF( neuler == 1 .AND. .NOT. ln_rstart ) THEN 365 IF(lwp) WRITE(numout,*) 366 IF(lwp) WRITE(numout,*)' ==>>> Start from rest (ln_rstart=F)' 367 IF(lwp) WRITE(numout,*)' an Euler initial time step is used : nn_euler is forced to 0 ' 373 IF(lwp) THEN 374 WRITE(numout,*) 375 WRITE(numout,*)' ==>>> Start from rest (ln_rstart=F)' 376 WRITE(numout,*)' an Euler initial time step is used : nn_euler is forced to 0 ' 377 IF(lflush) CALL FLUSH(numout) 378 ENDIF 368 379 neuler = 0 369 380 ENDIF … … 383 394 IF( Agrif_Root() ) THEN 384 395 #endif 385 IF(lwp) WRITE(numout,*) 396 IF(lwp) THEN 397 WRITE(numout,*) 398 IF(lflush) CALL FLUSH(numout) 399 ENDIF 386 400 SELECT CASE ( nleapy ) ! Choose calendar for IOIPSL 387 401 CASE ( 1 ) … … 395 409 IF(lwp) WRITE(numout,*) ' ==>>> The IOIPSL calendar is "360d", i.e. 360 days in a year' 396 410 END SELECT 411 IF(lflush .AND. lwp) CALL FLUSH(numout) 397 412 #if defined key_agrif 398 413 ENDIF … … 416 431 WRITE(numout,*) ' asselin time filter parameter rn_atfp = ', rn_atfp 417 432 WRITE(numout,*) ' online coarsening of dynamical fields ln_crs = ', ln_crs 433 IF(lflush) CALL FLUSH(numout) 418 434 ENDIF 419 435 ! … … 446 462 WRITE(numout,*) ' number of chunks in k-dimension nn_nchunks_k = ', nn_nchunks_k 447 463 WRITE(numout,*) ' apply netcdf4/hdf5 chunking & compression ln_nc4zip = ', ln_nc4zip 464 IF(lflush) CALL FLUSH(numout) 448 465 ENDIF 449 466 … … 506 523 WRITE(numout,"(14x,'e2t maxi: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2max, ima2(1), ima2(2) 507 524 WRITE(numout,"(14x,'e2t mini: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2min, imi2(1), imi2(2) 525 IF(lflush) CALL FLUSH(numout) 508 526 ENDIF 509 527 ! … … 597 615 !!---------------------------------------------------------------------- 598 616 ! 599 IF(lwp) WRITE(numout,*) 600 IF(lwp) WRITE(numout,*) 'cfg_write : create the domain configuration file (', TRIM(cn_domcfg_out),'.nc)' 601 IF(lwp) WRITE(numout,*) '~~~~~~~~~' 617 IF(lwp) THEN 618 WRITE(numout,*) 619 WRITE(numout,*) 'cfg_write : create the domain configuration file (', TRIM(cn_domcfg_out),'.nc)' 620 WRITE(numout,*) '~~~~~~~~~' 621 IF(lflush) CALL FLUSH(numout) 622 ENDIF 602 623 ! 603 624 ! ! ============================= ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/domhgr.F90
r10888 r10986 86 86 WRITE(numout,*) '~~~~~~~ ' 87 87 WRITE(numout,*) ' namcfg : read (=T) or user defined (=F) configuration ln_read_cfg = ', ln_read_cfg 88 IF(lflush) CALL FLUSH(numout) 88 89 ENDIF 89 90 ! 90 91 ! 91 92 IF( ln_read_cfg ) THEN !== read in mesh_mask.nc file ==! 92 IF(lwp) WRITE(numout,*) 93 IF(lwp) WRITE(numout,*) ' ==>>> read horizontal mesh in ', TRIM( cn_domcfg ), ' file' 93 IF(lwp) THEN 94 WRITE(numout,*) 95 WRITE(numout,*) ' ==>>> read horizontal mesh in ', TRIM( cn_domcfg ), ' file' 96 IF(lflush) CALL FLUSH(numout) 97 ENDIF 94 98 ! 95 99 CALL hgr_read ( glamt , glamu , glamv , glamf , & ! geographic position (required) … … 101 105 ! 102 106 ELSE !== User defined configuration ==! 103 IF(lwp) WRITE(numout,*) 104 IF(lwp) WRITE(numout,*) ' User defined horizontal mesh (usr_def_hgr)' 107 IF(lwp) THEN 108 WRITE(numout,*) 109 WRITE(numout,*) ' User defined horizontal mesh (usr_def_hgr)' 110 IF(lflush) CALL FLUSH(numout) 111 ENDIF 105 112 ! 106 113 CALL usr_def_hgr( glamt , glamu , glamv , glamf , & ! geographic position (required) … … 116 123 ! 117 124 IF( iff == 0 ) THEN ! Coriolis parameter has not been defined 118 IF(lwp) WRITE(numout,*) ' Coriolis parameter calculated on the sphere from gphif & gphit' 125 IF(lwp) THEN 126 WRITE(numout,*) ' Coriolis parameter calculated on the sphere from gphif & gphit' 127 IF(lflush) CALL FLUSH(numout) 128 ENDIF 119 129 ff_f(:,:) = 2. * omega * SIN( rad * gphif(:,:) ) ! compute it on the sphere at f-point 120 130 ff_t(:,:) = 2. * omega * SIN( rad * gphit(:,:) ) ! - - - at t-point 121 131 ELSE 122 132 IF( ln_read_cfg ) THEN 123 IF(lwp) WRITE(numout,*) ' Coriolis parameter have been read in ', TRIM( cn_domcfg ), ' file' 133 IF(lwp) THEN 134 WRITE(numout,*) ' Coriolis parameter have been read in ', TRIM( cn_domcfg ), ' file' 135 IF(lflush) CALL FLUSH(numout) 136 ENDIF 124 137 ELSE 125 IF(lwp) WRITE(numout,*) ' Coriolis parameter have been set in usr_def_hgr routine' 138 IF(lwp) THEN 139 WRITE(numout,*) ' Coriolis parameter have been set in usr_def_hgr routine' 140 IF(lflush) CALL FLUSH(numout) 141 ENDIF 126 142 ENDIF 127 143 ENDIF … … 138 154 e1e2f (:,:) = e1f(:,:) * e2f(:,:) ; r1_e1e2f(:,:) = 1._wp / e1e2f(:,:) 139 155 IF( ie1e2u_v == 0 ) THEN ! u- & v-surfaces have not been defined 140 IF(lwp) WRITE(numout,*) ' u- & v-surfaces calculated as e1 e2 product' 156 IF(lwp .AND. nprint > 1) THEN 157 WRITE(numout,*) ' u- & v-surfaces calculated as e1 e2 product' 158 IF(lflush) CALL FLUSH(numout) 159 ENDIF 141 160 e1e2u (:,:) = e1u(:,:) * e2u(:,:) ! compute them 142 161 e1e2v (:,:) = e1v(:,:) * e2v(:,:) 143 162 ELSE 144 IF(lwp) WRITE(numout,*) ' u- & v-surfaces have been read in "mesh_mask" file:' 145 IF(lwp) WRITE(numout,*) ' grid size reduction in strait(s) is used' 163 IF(lwp) THEN 164 WRITE(numout,*) ' u- & v-surfaces have been read in "mesh_mask" file:' 165 WRITE(numout,*) ' grid size reduction in strait(s) is used' 166 IF(lflush) CALL FLUSH(numout) 167 ENDIF 146 168 ENDIF 147 169 r1_e1e2u(:,:) = 1._wp / e1e2u(:,:) ! compute their invert in any cases … … 185 207 WRITE(numout,*) ' hgr_read : read the horizontal coordinates in mesh_mask' 186 208 WRITE(numout,*) ' ~~~~~~~~ jpiglo = ', jpiglo, ' jpjglo = ', jpjglo, ' jpk = ', jpk 209 IF(lflush) CALL FLUSH(numout) 187 210 ENDIF 188 211 ! … … 211 234 IF( iom_varid( inum, 'ff_f', ldstop = .FALSE. ) > 0 .AND. & 212 235 & iom_varid( inum, 'ff_t', ldstop = .FALSE. ) > 0 ) THEN 213 IF(lwp) WRITE(numout,*) ' Coriolis factor at f- and t-points read in ', TRIM( cn_domcfg ), ' file' 236 IF(lwp) THEN 237 WRITE(numout,*) ' Coriolis factor at f- and t-points read in ', TRIM( cn_domcfg ), ' file' 238 IF(lflush) CALL FLUSH(numout) 239 ENDIF 214 240 CALL iom_get( inum, jpdom_data, 'ff_f' , pff_f , lrowattr=ln_use_jattr ) 215 241 CALL iom_get( inum, jpdom_data, 'ff_t' , pff_t , lrowattr=ln_use_jattr ) … … 220 246 ! 221 247 IF( iom_varid( inum, 'e1e2u', ldstop = .FALSE. ) > 0 ) THEN 222 IF(lwp) WRITE(numout,*) ' e1e2u & e1e2v read in ', TRIM( cn_domcfg ), ' file' 248 IF(lwp) THEN 249 WRITE(numout,*) ' e1e2u & e1e2v read in ', TRIM( cn_domcfg ), ' file' 250 IF(lflush) CALL FLUSH(numout) 251 ENDIF 223 252 CALL iom_get( inum, jpdom_data, 'e1e2u' , pe1e2u , lrowattr=ln_use_jattr ) 224 253 CALL iom_get( inum, jpdom_data, 'e1e2v' , pe1e2v , lrowattr=ln_use_jattr ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/dommsk.F90
r10968 r10986 119 119 WRITE(numout,*) ' lateral momentum boundary cond. rn_shlat = ',rn_shlat 120 120 WRITE(numout,*) ' consistency with analytical form ln_vorlat = ',ln_vorlat 121 IF(lflush) CALL FLUSH(numout) 121 122 ENDIF 122 123 ! … … 129 130 CALL ctl_stop( 'dom_msk: wrong value for rn_shlat (i.e. a negalive value). We stop.' ) 130 131 ENDIF 131 132 IF(lwp .AND. lflush) CALL FLUSH(numout) 132 133 ! Ocean/land mask at t-point (computed from ko_top and ko_bot) 133 134 ! ---------------------------- -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/domvvl.F90
r10968 r10986 120 120 !!---------------------------------------------------------------------- 121 121 ! 122 IF(lwp) WRITE(numout,*) 123 IF(lwp) WRITE(numout,*) 'dom_vvl_init : Variable volume activated' 124 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 122 IF(lwp) THEN 123 WRITE(numout,*) 124 WRITE(numout,*) 'dom_vvl_init : Variable volume activated' 125 WRITE(numout,*) '~~~~~~~~~~~~' 126 IF(lflush) CALL FLUSH(numout) 127 ENDIF 125 128 ! 126 129 CALL dom_vvl_ctl ! choose vertical coordinate (z_star, z_tilde or layer) … … 304 307 ! 305 308 IF( kt == nit000 ) THEN 306 IF(lwp) WRITE(numout,*) 307 IF(lwp) WRITE(numout,*) 'dom_vvl_sf_nxt : compute after scale factors' 308 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~' 309 IF(lwp) THEN 310 WRITE(numout,*) 311 WRITE(numout,*) 'dom_vvl_sf_nxt : compute after scale factors' 312 WRITE(numout,*) '~~~~~~~~~~~~~~' 313 IF(lflush) CALL FLUSH(numout) 314 ENDIF 309 315 ENDIF 310 316 … … 533 539 z_tmax = MAXVAL( tmask(:,:,1) * ABS( ssha(:,:) ) ) 534 540 CALL mpp_max( 'domvvl', z_tmax ) ! max over the global domain 535 IF( lwp ) WRITE(numout, *) kt,' MAXVAL(abs(ssha))) =', z_tmax 541 IF( lwp ) THEN 542 WRITE(numout, *) kt,' MAXVAL(abs(ssha))) =', z_tmax 543 IF(lflush) CALL FLUSH(numout) 544 ENDIF 536 545 END IF 537 546 … … 601 610 IF(lwp) WRITE(numout,*) 'dom_vvl_sf_swp : - time filter and swap of scale factors' 602 611 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~ - interpolate scale factors and compute depths for next time step' 612 IF(lflush) CALL FLUSH(numout) 603 613 ENDIF 604 614 ! … … 820 830 CALL iom_get( numror, jpdom_autoglo, 'e3t_n', e3t_n(:,:,:), ldxios = lrxios ) 821 831 ! needed to restart if land processor not computed 822 IF(lwp) write(numout,*) 'dom_vvl_rst : e3t_b and e3t_n found in restart files' 832 IF(lwp) THEN 833 write(numout,*) 'dom_vvl_rst : e3t_b and e3t_n found in restart files' 834 IF(lflush) CALL FLUSH(numout) 835 ENDIF 823 836 WHERE ( tmask(:,:,:) == 0.0_wp ) 824 837 e3t_n(:,:,:) = e3t_0(:,:,:) … … 829 842 ENDIF 830 843 ELSE IF( id1 > 0 ) THEN 831 IF(lwp) write(numout,*) 'dom_vvl_rst WARNING : e3t_n not found in restart files' 832 IF(lwp) write(numout,*) 'e3t_n set equal to e3t_b.' 833 IF(lwp) write(numout,*) 'neuler is forced to 0' 844 IF(lwp) THEN 845 write(numout,*) 'dom_vvl_rst WARNING : e3t_n not found in restart files' 846 write(numout,*) 'e3t_n set equal to e3t_b.' 847 write(numout,*) 'neuler is forced to 0' 848 IF(lflush) CALL FLUSH(numout) 849 ENDIF 834 850 CALL iom_get( numror, jpdom_autoglo, 'e3t_b', e3t_b(:,:,:), ldxios = lrxios ) 835 851 e3t_n(:,:,:) = e3t_b(:,:,:) 836 852 neuler = 0 837 853 ELSE IF( id2 > 0 ) THEN 838 IF(lwp) write(numout,*) 'dom_vvl_rst WARNING : e3t_b not found in restart files' 839 IF(lwp) write(numout,*) 'e3t_b set equal to e3t_n.' 840 IF(lwp) write(numout,*) 'neuler is forced to 0' 854 IF(lwp) THEN 855 write(numout,*) 'dom_vvl_rst WARNING : e3t_b not found in restart files' 856 write(numout,*) 'e3t_b set equal to e3t_n.' 857 write(numout,*) 'neuler is forced to 0' 858 IF(lflush) CALL FLUSH(numout) 859 ENDIF 841 860 CALL iom_get( numror, jpdom_autoglo, 'e3t_n', e3t_n(:,:,:), ldxios = lrxios ) 842 861 e3t_b(:,:,:) = e3t_n(:,:,:) 843 862 neuler = 0 844 863 ELSE 845 IF(lwp) write(numout,*) 'dom_vvl_rst WARNING : e3t_n not found in restart file' 846 IF(lwp) write(numout,*) 'Compute scale factor from sshn' 847 IF(lwp) write(numout,*) 'neuler is forced to 0' 864 IF(lwp) THEN 865 write(numout,*) 'dom_vvl_rst WARNING : e3t_n not found in restart file' 866 write(numout,*) 'Compute scale factor from sshn' 867 write(numout,*) 'neuler is forced to 0' 868 IF(lflush) CALL FLUSH(numout) 869 ENDIF 848 870 DO jk = 1, jpk 849 871 e3t_n(:,:,jk) = e3t_0(:,:,jk) * ( ht_0(:,:) + sshn(:,:) ) & … … 952 974 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN ! Create restart file 953 975 ! ! =================== 954 IF(lwp .AND. nprint > 0) WRITE(numout,*) '---- dom_vvl_rst ----' 976 IF(lwp .AND. nprint > 0) THEN 977 WRITE(numout,*) '---- dom_vvl_rst ----' 978 IF(lflush) CALL FLUSH(numout) 979 ENDIF 955 980 IF( lwxios ) CALL iom_swap( cwxios_context ) 956 981 ! ! --------- ! … … 1024 1049 ENDIF 1025 1050 WRITE(numout,*) ' debug prints flag ln_vvl_dbg = ', ln_vvl_dbg 1051 IF(lflush) CALL FLUSH(numout) 1026 1052 ENDIF 1027 1053 ! … … 1041 1067 IF( ln_vvl_layer ) WRITE(numout,*) ' ==>>> layer vertical coordinate is used' 1042 1068 IF( ln_vvl_ztilde_as_zstar ) WRITE(numout,*) ' ==>>> to emulate a zstar coordinate' 1069 IF(lflush) CALL FLUSH(numout) 1043 1070 ENDIF 1044 1071 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/domwri.F90
r10888 r10986 63 63 !!---------------------------------------------------------------------- 64 64 ! 65 IF(lwp) WRITE(numout,*) 66 IF(lwp) WRITE(numout,*) 'dom_wri : create NetCDF mesh and mask information file(s)' 67 IF(lwp) WRITE(numout,*) '~~~~~~~' 65 IF(lwp) THEN 66 WRITE(numout,*) 67 WRITE(numout,*) 'dom_wri : create NetCDF mesh and mask information file(s)' 68 WRITE(numout,*) '~~~~~~~' 69 IF(lflush) CALL FLUSH(numout) 70 ENDIF 68 71 69 72 clnam = 'mesh_mask' ! filename (mesh and mask informations) … … 283 286 WRITE(numout,*) 'dom_stiff : maximum grid stiffness ratio: ', zrxmax 284 287 WRITE(numout,*) '~~~~~~~~~' 288 IF(lflush) CALL FLUSH(numout) 285 289 ENDIF 286 290 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/domzgr.F90
r10968 r10986 80 80 WRITE(numout,*) 'dom_zgr : vertical coordinate' 81 81 WRITE(numout,*) '~~~~~~~' 82 IF(lflush) CALL FLUSH(numout) 82 83 ENDIF 83 84 … … 86 87 87 88 IF( ln_read_cfg ) THEN !== read in mesh_mask.nc file ==! 88 IF(lwp) WRITE(numout,*) 89 IF(lwp) WRITE(numout,*) ' ==>>> Read vertical mesh in ', TRIM( cn_domcfg ), ' file' 89 IF(lwp) THEN 90 WRITE(numout,*) 91 WRITE(numout,*) ' ==>>> Read vertical mesh in ', TRIM( cn_domcfg ), ' file' 92 IF(lflush) CALL FLUSH(numout) 93 ENDIF 90 94 ! 91 95 CALL zgr_read ( ln_zco , ln_zps , ln_sco, ln_isfcav, & … … 97 101 ! 98 102 ELSE !== User defined configuration ==! 99 IF(lwp) WRITE(numout,*) 100 IF(lwp) WRITE(numout,*) ' User defined vertical mesh (usr_def_zgr)' 103 IF(lwp) THEN 104 WRITE(numout,*) 105 WRITE(numout,*) ' User defined vertical mesh (usr_def_zgr)' 106 IF(lflush) CALL FLUSH(numout) 107 ENDIF 101 108 ! 102 109 CALL usr_def_zgr( ln_zco , ln_zps , ln_sco, ln_isfcav, & … … 127 134 WRITE(numout,*) ' s- or hybrid z-s-coordinate ln_sco = ', ln_sco 128 135 WRITE(numout,*) ' ice shelf cavities ln_isfcav = ', ln_isfcav 136 IF(lflush) CALL FLUSH(numout) 129 137 ENDIF 130 138 … … 163 171 & ' uw', MAXVAL( e3uw_0(:,:,:) ), ' vw', MAXVAL( e3vw_0(:,:,:) ), & 164 172 & ' w ', MAXVAL( e3w_0(:,:,:) ) 173 IF(lflush) CALL FLUSH(numout) 165 174 ENDIF 166 175 ! … … 199 208 WRITE(numout,*) ' zgr_read : read the vertical coordinates in ', TRIM( cn_domcfg ), ' file' 200 209 WRITE(numout,*) ' ~~~~~~~~' 210 IF(lflush) CALL FLUSH(numout) 201 211 ENDIF 202 212 ! … … 248 258 WRITE(numout, "(9x,' level gdept_1d gdepw_1d e3t_1d e3w_1d ')" ) 249 259 WRITE(numout, "(10x, i4, 4f9.2)" ) ( jk, pdept_1d(jk), pdepw_1d(jk), pe3t_1d(jk), pe3w_1d(jk), jk = 1, jpk ) 260 IF(lflush) CALL FLUSH(numout) 250 261 ENDIF 251 262 ENDIF … … 286 297 !!---------------------------------------------------------------------- 287 298 ! 288 IF(lwp) WRITE(numout,*) 289 IF(lwp) WRITE(numout,*) ' zgr_top_bot : ocean top and bottom k-index of T-, U-, V- and W-levels ' 290 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~' 299 IF(lwp) THEN 300 WRITE(numout,*) 301 WRITE(numout,*) ' zgr_top_bot : ocean top and bottom k-index of T-, U-, V- and W-levels ' 302 WRITE(numout,*) ' ~~~~~~~~~~~' 303 IF(lflush) CALL FLUSH(numout) 304 ENDIF 291 305 ! 292 306 mikt(:,:) = MAX( k_top(:,:) , 1 ) ! top ocean k-index of T-level (=1 over land) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/dtatsd.F90
r10968 r10986 87 87 WRITE(numout,*) ' ===>> T & S data not used' 88 88 ENDIF 89 IF(lflush) CALL FLUSH(numout) 89 90 ENDIF 90 91 ! … … 184 185 WRITE(numout,*) 185 186 WRITE(numout,*) 'dta_tsd: interpolates T & S data onto the s- or mixed s-z-coordinate mesh' 187 IF(lflush) CALL FLUSH(numout) 186 188 ENDIF 187 189 ! … … 243 245 IF( .NOT.ln_tsd_dmp ) THEN !== deallocate T & S structure ==! 244 246 ! (data used only for initialisation) 245 IF(lwp .AND. nprint > 1) WRITE(numout,*) 'dta_tsd: deallocte T & S arrays as they are only use to initialize the run' 247 IF(lwp .AND. nprint > 1) THEN 248 WRITE(numout,*) 'dta_tsd: deallocte T & S arrays as they are only use to initialize the run' 249 IF(lflush) CALL FLUSH(numout) 250 ENDIF 246 251 DEALLOCATE( sf_tsd(jp_tem)%fnow ) ! T arrays in the structure 247 252 IF( sf_tsd(jp_tem)%ln_tint ) DEALLOCATE( sf_tsd(jp_tem)%fdta ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/iscplhsb.F90
r10888 r10986 170 170 WRITE(numout,*) ' ',ji,' ',jj,' ',jk,' ',narea 171 171 WRITE(numout,*) ' we are now looking for the closest wet cell on the horizontal ' 172 IF(lflush) CALL FLUSH(numout) 172 173 ENDIF 173 174 ! We deal with these points later. -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/iscplini.F90
r10968 r10986 83 83 WRITE(numout,*) ' coupling time step = ', rdt_iscpl 84 84 WRITE(numout,*) ' number of call of the extrapolation loop = ', nn_drown 85 IF(lflush) CALL FLUSH(numout) 85 86 ENDIF 86 87 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/istate.F90
r10888 r10986 63 63 !!---------------------------------------------------------------------- 64 64 ! 65 IF(lwp) WRITE(numout,*) 66 IF(lwp) WRITE(numout,*) 'istate_init : Initialization of the dynamics and tracers' 67 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 65 IF(lwp) THEN 66 WRITE(numout,*) 67 WRITE(numout,*) 'istate_init : Initialization of the dynamics and tracers' 68 WRITE(numout,*) '~~~~~~~~~~~' 69 IF(lflush) CALL FLUSH(numout) 70 ENDIF 68 71 69 72 !!gm Why not include in the first call of dta_tsd ? -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DOM/phycst.F90
r10888 r10986 132 132 WRITE(numout,*) 133 133 WRITE(numout,*) ' smallest real computer value rsmall = ', rsmall 134 IF(lflush) CALL FLUSH(numout) 134 135 ENDIF 135 136 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/divhor.F90
r10888 r10986 72 72 IF(lwp) WRITE(numout,*) 'div_hor : horizontal velocity divergence ' 73 73 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 74 IF(lflush) CALL FLUSH(numout) 74 75 ENDIF 75 76 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynadv.F90
r10968 r10986 102 102 WRITE(numout,*) 'dyn_adv_init : choice/control of the momentum advection scheme' 103 103 WRITE(numout,*) '~~~~~~~~~~~~' 104 IF(lflush) CALL FLUSH(numout) 104 105 ENDIF 105 106 ! … … 119 120 WRITE(numout,*) ' flux form: 2nd order centred scheme ln_dynadv_cen2 = ', ln_dynadv_cen2 120 121 WRITE(numout,*) ' 3rd order UBS scheme ln_dynadv_ubs = ', ln_dynadv_ubs 122 IF(lflush) CALL FLUSH(numout) 121 123 ENDIF 122 124 … … 141 143 CASE( np_FLX_ubs ) ; WRITE(numout,*) ' ==>>> flux form : UBS scheme is used' 142 144 END SELECT 145 IF(lflush) CALL FLUSH(numout) 143 146 ENDIF 144 147 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynadv_cen2.F90
r10888 r10986 57 57 WRITE(numout,*) 'dyn_adv_cen2 : 2nd order flux form momentum advection' 58 58 WRITE(numout,*) '~~~~~~~~~~~~' 59 IF(lflush) CALL FLUSH(numout) 59 60 ENDIF 60 61 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynadv_ubs.F90
r10888 r10986 82 82 IF(lwp) WRITE(numout,*) 'dyn_adv_ubs : UBS flux form momentum advection' 83 83 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 84 IF(lflush) CALL FLUSH(numout) 84 85 ENDIF 85 86 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynhpg.F90
r10968 r10986 170 170 WRITE(numout,*) ' s-coord. (Density Jacobian: Cubic polynomial) ln_hpg_djc = ', ln_hpg_djc 171 171 WRITE(numout,*) ' s-coord. (Pressure Jacobian: Cubic polynomial) ln_hpg_prj = ', ln_hpg_prj 172 IF(lflush) CALL FLUSH(numout) 172 173 ENDIF 173 174 ! … … 211 212 END SELECT 212 213 WRITE(numout,*) 214 IF(lflush) CALL FLUSH(numout) 213 215 ENDIF 214 216 ! … … 218 220 ELSE !--- set an ice shelf load 219 221 ! 220 IF(lwp) WRITE(numout,*) 221 IF(lwp) WRITE(numout,*) ' ice shelf case: set the ice-shelf load' 222 IF(lwp) THEN 223 WRITE(numout,*) 224 WRITE(numout,*) ' ice shelf case: set the ice-shelf load' 225 IF(lflush) CALL FLUSH(numout) 226 ENDIF 222 227 ALLOCATE( zts_top(jpi,jpj,jpts) , zrhd(jpi,jpj,jpk) , zrhdtop_isf(jpi,jpj) , ziceload(jpi,jpj) ) 223 228 ! … … 279 284 !!---------------------------------------------------------------------- 280 285 ! 281 IF( kt == nit000 ) THEN 282 IF(lwp) WRITE(numout,*) 283 IF(lwp) WRITE(numout,*) 'dyn:hpg_zco : hydrostatic pressure gradient trend' 284 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ z-coordinate case ' 286 IF( kt == nit000 .AND. lwp) THEN 287 WRITE(numout,*) 288 WRITE(numout,*) 'dyn:hpg_zco : hydrostatic pressure gradient trend' 289 WRITE(numout,*) '~~~~~~~~~~~ z-coordinate case ' 290 IF(lflush) CALL FLUSH(numout) 285 291 ENDIF 286 292 … … 340 346 !!---------------------------------------------------------------------- 341 347 ! 342 IF( kt == nit000 ) THEN 343 IF(lwp) WRITE(numout,*) 344 IF(lwp) WRITE(numout,*) 'dyn:hpg_zps : hydrostatic pressure gradient trend' 345 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ z-coordinate with partial steps - vector optimization' 348 IF( kt == nit000 .AND. lwp) THEN 349 WRITE(numout,*) 350 WRITE(numout,*) 'dyn:hpg_zps : hydrostatic pressure gradient trend' 351 WRITE(numout,*) '~~~~~~~~~~~ z-coordinate with partial steps - vector optimization' 352 IF(lflush) CALL FLUSH(numout) 346 353 ENDIF 347 354 … … 439 446 IF( ln_wd_il ) ALLOCATE(zcpx(jpi,jpj), zcpy(jpi,jpj)) 440 447 ! 441 IF( kt == nit000 ) THEN 442 IF(lwp) WRITE(numout,*) 443 IF(lwp) WRITE(numout,*) 'dyn:hpg_sco : hydrostatic pressure gradient trend' 444 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, OPA original scheme used' 448 IF( kt == nit000 .AND. lwp) THEN 449 WRITE(numout,*) 450 WRITE(numout,*) 'dyn:hpg_sco : hydrostatic pressure gradient trend' 451 WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, OPA original scheme used' 452 IF(lflush) CALL FLUSH(numout) 445 453 ENDIF 446 454 ! … … 726 734 END IF 727 735 728 IF( kt == nit000 ) THEN 729 IF(lwp) WRITE(numout,*) 730 IF(lwp) WRITE(numout,*) 'dyn:hpg_djc : hydrostatic pressure gradient trend' 731 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, density Jacobian with cubic polynomial scheme' 736 IF( kt == nit000 .AND. lwp) THEN 737 WRITE(numout,*) 738 WRITE(numout,*) 'dyn:hpg_djc : hydrostatic pressure gradient trend' 739 WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, density Jacobian with cubic polynomial scheme' 740 IF(lflush) CALL FLUSH(numout) 732 741 ENDIF 733 742 … … 960 969 !!---------------------------------------------------------------------- 961 970 ! 962 IF( kt == nit000 ) THEN 963 IF(lwp) WRITE(numout,*) 964 IF(lwp) WRITE(numout,*) 'dyn:hpg_prj : hydrostatic pressure gradient trend' 965 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, cubic spline pressure Jacobian' 971 IF( kt == nit000 .AND. lwp) THEN 972 WRITE(numout,*) 973 WRITE(numout,*) 'dyn:hpg_prj : hydrostatic pressure gradient trend' 974 WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, cubic spline pressure Jacobian' 975 IF(lflush) CALL FLUSH(numout) 966 976 ENDIF 967 977 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynkeg.F90
r10888 r10986 84 84 IF( ln_timing ) CALL timing_start('dyn_keg') 85 85 ! 86 IF( kt == nit000 ) THEN 87 IF(lwp) WRITE(numout,*) 88 IF(lwp) WRITE(numout,*) 'dyn_keg : kinetic energy gradient trend, scheme number=', kscheme 89 IF(lwp) WRITE(numout,*) '~~~~~~~' 86 IF( kt == nit000 .AND. lwp) THEN 87 WRITE(numout,*) 88 WRITE(numout,*) 'dyn_keg : kinetic energy gradient trend, scheme number=', kscheme 89 WRITE(numout,*) '~~~~~~~' 90 IF(lflush) CALL FLUSH(numout) 90 91 ENDIF 91 92 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynldf.F90
r10888 r10986 106 106 CASE( np_blp ) ; WRITE(numout,*) ' ==>>> iso-level bi-laplacian operator' 107 107 END SELECT 108 IF(lflush) CALL FLUSH(numout) 108 109 ENDIF 109 110 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynldf_iso.F90
r10888 r10986 114 114 ! 115 115 IF( kt == nit000 ) THEN 116 IF(lwp) WRITE(numout,*) 117 IF(lwp) WRITE(numout,*) 'dyn_ldf_iso : iso-neutral laplacian diffusive operator or ' 118 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate horizontal diffusive operator' 116 IF(lwp) THEN 117 WRITE(numout,*) 118 WRITE(numout,*) 'dyn_ldf_iso : iso-neutral laplacian diffusive operator or ' 119 WRITE(numout,*) '~~~~~~~~~~~ s-coordinate horizontal diffusive operator' 120 IF(lflush) CALL FLUSH(numout) 121 ENDIF 119 122 ! ! allocate dyn_ldf_bilap arrays 120 123 IF( dyn_ldf_iso_alloc() /= 0 ) CALL ctl_stop('STOP', 'dyn_ldf_iso: failed to allocate arrays') -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynldf_lap_blp.F90
r10888 r10986 62 62 WRITE(numout,*) 'dyn_ldf : iso-level harmonic (laplacian) operator, pass=', kpass 63 63 WRITE(numout,*) '~~~~~~~ ' 64 IF(lflush) CALL FLUSH(numout) 64 65 ENDIF 65 66 ! … … 129 130 IF(lwp) WRITE(numout,*) 'dyn_ldf_blp : bilaplacian operator momentum ' 130 131 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 132 IF(lflush) CALL FLUSH(numout) 131 133 ENDIF 132 134 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynnxt.F90
r10888 r10986 106 106 IF( l_trddyn ) ALLOCATE( zua(jpi,jpj,jpk) , zva(jpi,jpj,jpk) ) 107 107 ! 108 IF( kt == nit000 ) THEN 109 IF(lwp) WRITE(numout,*) 110 IF(lwp) WRITE(numout,*) 'dyn_nxt : time stepping' 111 IF(lwp) WRITE(numout,*) '~~~~~~~' 108 IF( kt == nit000 .AND. lwp) THEN 109 WRITE(numout,*) 110 WRITE(numout,*) 'dyn_nxt : time stepping' 111 WRITE(numout,*) '~~~~~~~' 112 IF(lflush) CALL FLUSH(numout) 112 113 ENDIF 113 114 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynspg.F90
r10968 r10986 198 198 WRITE(numout,*) 'dyn_spg_init : choice of the surface pressure gradient scheme' 199 199 WRITE(numout,*) '~~~~~~~~~~~~' 200 IF(lflush) CALL FLUSH(numout) 200 201 ENDIF 201 202 ! … … 213 214 WRITE(numout,*) ' Explicit free surface ln_dynspg_exp = ', ln_dynspg_exp 214 215 WRITE(numout,*) ' Free surface with time splitting ln_dynspg_ts = ', ln_dynspg_ts 216 IF(lflush) CALL FLUSH(numout) 215 217 ENDIF 216 218 ! ! Control of surface pressure gradient scheme options … … 229 231 IF( nspg == np_TS ) WRITE(numout,*) ' ==>>> free surface with time splitting scheme' 230 232 IF( nspg == np_NO ) WRITE(numout,*) ' ==>>> No surface surface pressure gradient trend in momentum Eqs.' 233 IF(lflush) CALL FLUSH(numout) 231 234 ENDIF 232 235 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynspg_exp.F90
r10888 r10986 61 61 ! 62 62 IF( kt == nit000 ) THEN 63 IF(lwp) WRITE(numout,*) 64 IF(lwp) WRITE(numout,*) 'dyn_spg_exp : surface pressure gradient trend' 65 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ (explicit free surface)' 63 IF(lwp) THEN 64 WRITE(numout,*) 65 WRITE(numout,*) 'dyn_spg_exp : surface pressure gradient trend' 66 WRITE(numout,*) '~~~~~~~~~~~ (explicit free surface)' 67 IF(lflush) CALL FLUSH(numout) 68 ENDIF 66 69 ! 67 70 spgu(:,:) = 0._wp ; spgv(:,:) = 0._wp 68 71 ! 69 IF( .NOT.ln_linssh .AND. lwp ) WRITE(numout,*) ' non linear free surface: spg is included in dynhpg' 72 IF( .NOT.ln_linssh .AND. lwp ) THEN 73 WRITE(numout,*) ' non linear free surface: spg is included in dynhpg' 74 IF(lflush) CALL FLUSH(numout) 75 ENDIF 70 76 ENDIF 71 77 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynspg_ts.F90
r10968 r10986 197 197 IF( kt == nit000 ) THEN !* initialisation 198 198 ! 199 IF(lwp) WRITE(numout,*) 200 IF(lwp) WRITE(numout,*) 'dyn_spg_ts : surface pressure gradient trend' 201 IF(lwp) WRITE(numout,*) '~~~~~~~~~~ free surface with time splitting' 202 IF(lwp) WRITE(numout,*) 199 IF(lwp) THEN 200 WRITE(numout,*) 201 WRITE(numout,*) 'dyn_spg_ts : surface pressure gradient trend' 202 WRITE(numout,*) '~~~~~~~~~~ free surface with time splitting' 203 WRITE(numout,*) 204 IF(lflush) CALL FLUSH(numout) 205 ENDIF 203 206 ! 204 207 IF( neuler == 0 ) ll_init=.TRUE. … … 1422 1425 #endif 1423 1426 ELSE !* Start from rest 1424 IF(lwp) WRITE(numout,*) 1425 IF(lwp) WRITE(numout,*) ' ==>>> start from rest: set barotropic values to 0' 1427 IF(lwp) THEN 1428 WRITE(numout,*) 1429 WRITE(numout,*) ' ==>>> start from rest: set barotropic values to 0' 1430 IF(lflush) CALL FLUSH(numout) 1431 ENDIF 1426 1432 ub2_b (:,:) = 0._wp ; vb2_b (:,:) = 0._wp ! used in the 1st interpol of agrif 1427 1433 un_adv(:,:) = 0._wp ; vn_adv(:,:) = 0._wp ! used in the 1st interpol of agrif … … 1436 1442 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN ! Create restart file 1437 1443 ! ! ------------------- 1438 IF(lwp .AND. nprint > 0) WRITE(numout,*) '---- ts_rst ----' 1444 IF(lwp .AND. nprint > 0) THEN 1445 WRITE(numout,*) '---- ts_rst ----' 1446 IF(lflush) CALL FLUSH(numout) 1447 ENDIF 1439 1448 IF( lwxios ) CALL iom_swap( cwxios_context ) 1440 1449 CALL iom_rstput( kt, nitrst, numrow, 'ub2_b' , ub2_b (:,:), ldxios = lwxios ) … … 1494 1503 zcmax = zcmax * rdtbt 1495 1504 ! Print results 1496 IF(lwp) WRITE(numout,*) 1497 IF(lwp) WRITE(numout,*) 'dyn_spg_ts_init : split-explicit free surface' 1498 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~~' 1499 IF( ln_bt_auto ) THEN 1500 IF(lwp) WRITE(numout,*) ' ln_ts_auto =.true. Automatically set nn_baro ' 1501 IF(lwp) WRITE(numout,*) ' Max. courant number allowed: ', rn_bt_cmax 1502 ELSE 1503 IF(lwp) WRITE(numout,*) ' ln_ts_auto=.false.: Use nn_baro in namelist nn_baro = ', nn_baro 1504 ENDIF 1505 1506 IF(ln_bt_av) THEN 1507 IF(lwp) WRITE(numout,*) ' ln_bt_av =.true. ==> Time averaging over nn_baro time steps is on ' 1508 ELSE 1509 IF(lwp) WRITE(numout,*) ' ln_bt_av =.false. => No time averaging of barotropic variables ' 1510 ENDIF 1511 ! 1512 ! 1513 IF(ln_bt_fw) THEN 1514 IF(lwp) WRITE(numout,*) ' ln_bt_fw=.true. => Forward integration of barotropic variables ' 1515 ELSE 1516 IF(lwp) WRITE(numout,*) ' ln_bt_fw =.false.=> Centred integration of barotropic variables ' 1505 IF(lwp) THEN 1506 WRITE(numout,*) 1507 WRITE(numout,*) 'dyn_spg_ts_init : split-explicit free surface' 1508 WRITE(numout,*) '~~~~~~~~~~~~~~~' 1509 IF( ln_bt_auto ) THEN 1510 WRITE(numout,*) ' ln_ts_auto =.true. Automatically set nn_baro ' 1511 WRITE(numout,*) ' Max. courant number allowed: ', rn_bt_cmax 1512 ELSE 1513 WRITE(numout,*) ' ln_ts_auto=.false.: Use nn_baro in namelist nn_baro = ', nn_baro 1514 ENDIF 1515 1516 IF(ln_bt_av) THEN 1517 WRITE(numout,*) ' ln_bt_av =.true. ==> Time averaging over nn_baro time steps is on ' 1518 ELSE 1519 WRITE(numout,*) ' ln_bt_av =.false. => No time averaging of barotropic variables ' 1520 ENDIF 1521 ! 1522 ! 1523 IF(ln_bt_fw) THEN 1524 WRITE(numout,*) ' ln_bt_fw=.true. => Forward integration of barotropic variables ' 1525 ELSE 1526 WRITE(numout,*) ' ln_bt_fw =.false.=> Centred integration of barotropic variables ' 1527 ENDIF 1528 IF(lflush) CALL FLUSH(numout) 1517 1529 ENDIF 1518 1530 ! … … 1530 1542 END SELECT 1531 1543 ! 1532 IF(lwp) WRITE(numout,*) ' ' 1533 IF(lwp) WRITE(numout,*) ' nn_baro = ', nn_baro 1534 IF(lwp) WRITE(numout,*) ' Barotropic time step [s] is :', rdtbt 1535 IF(lwp) WRITE(numout,*) ' Maximum Courant number is :', zcmax 1536 ! 1537 IF(lwp) WRITE(numout,*) ' Time diffusion parameter rn_bt_alpha: ', rn_bt_alpha 1544 IF(lwp) THEN 1545 WRITE(numout,*) ' ' 1546 WRITE(numout,*) ' nn_baro = ', nn_baro 1547 WRITE(numout,*) ' Barotropic time step [s] is :', rdtbt 1548 WRITE(numout,*) ' Maximum Courant number is :', zcmax 1549 ! 1550 WRITE(numout,*) ' Time diffusion parameter rn_bt_alpha: ', rn_bt_alpha 1551 IF(lflush) CALL FLUSH(numout) 1552 ENDIF 1538 1553 IF ((ln_bt_av.AND.nn_bt_flt/=0).AND.(rn_bt_alpha>0._wp)) THEN 1539 1554 CALL ctl_stop( 'dynspg_ts ERROR: if rn_bt_alpha > 0, remove temporal averaging' ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynvor.F90
r10968 r10986 220 220 IF(lwp) WRITE(numout,*) 'dyn:vor_enT : vorticity term: t-point energy conserving scheme' 221 221 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 222 IF(lflush) CALL FLUSH(numout) 222 223 ENDIF 223 224 ! … … 352 353 !!---------------------------------------------------------------------- 353 354 ! 354 IF( kt == nit000 ) THEN 355 IF(lwp) WRITE(numout,*) 356 IF(lwp) WRITE(numout,*) 'dyn:vor_ene : vorticity term: energy conserving scheme' 357 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 355 IF( kt == nit000 .AND. lwp) THEN 356 WRITE(numout,*) 357 WRITE(numout,*) 'dyn:vor_ene : vorticity term: energy conserving scheme' 358 WRITE(numout,*) '~~~~~~~~~~~' 359 IF(lflush) CALL FLUSH(numout) 358 360 ENDIF 359 361 ! … … 460 462 !!---------------------------------------------------------------------- 461 463 ! 462 IF( kt == nit000 ) THEN 463 IF(lwp) WRITE(numout,*) 464 IF(lwp) WRITE(numout,*) 'dyn:vor_ens : vorticity term: enstrophy conserving scheme' 465 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 464 IF( kt == nit000 .AND. lwp) THEN 465 WRITE(numout,*) 466 WRITE(numout,*) 'dyn:vor_ens : vorticity term: enstrophy conserving scheme' 467 WRITE(numout,*) '~~~~~~~~~~~' 468 IF(lflush) CALL FLUSH(numout) 466 469 ENDIF 467 470 ! ! =============== … … 568 571 !!---------------------------------------------------------------------- 569 572 ! 570 IF( kt == nit000 ) THEN 571 IF(lwp) WRITE(numout,*) 572 IF(lwp) WRITE(numout,*) 'dyn:vor_een : vorticity term: energy and enstrophy conserving scheme' 573 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 573 IF( kt == nit000 .AND. lwp) THEN 574 WRITE(numout,*) 575 WRITE(numout,*) 'dyn:vor_een : vorticity term: energy and enstrophy conserving scheme' 576 WRITE(numout,*) '~~~~~~~~~~~' 577 IF(lflush) CALL FLUSH(numout) 574 578 ENDIF 575 579 ! … … 725 729 !!---------------------------------------------------------------------- 726 730 ! 727 IF( kt == nit000 ) THEN 728 IF(lwp) WRITE(numout,*) 729 IF(lwp) WRITE(numout,*) 'dyn:vor_een : vorticity term: energy and enstrophy conserving scheme' 730 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 731 IF( kt == nit000 .AND. lwp) THEN 732 WRITE(numout,*) 733 WRITE(numout,*) 'dyn:vor_een : vorticity term: energy and enstrophy conserving scheme' 734 WRITE(numout,*) '~~~~~~~~~~~' 735 IF(lflush) CALL FLUSH(numout) 731 736 ENDIF 732 737 ! … … 847 852 WRITE(numout,*) 'dyn_vor_init : vorticity term : read namelist and control the consistency' 848 853 WRITE(numout,*) '~~~~~~~~~~~~' 854 IF(lflush) CALL FLUSH(numout) 849 855 ENDIF 850 856 ! … … 867 873 WRITE(numout,*) ' mixed enstrophy/energy conserving scheme ln_dynvor_mix = ', ln_dynvor_mix 868 874 WRITE(numout,*) ' masked (=T) or unmasked(=F) vorticity ln_dynvor_msk = ', ln_dynvor_msk 875 IF(lflush) CALL FLUSH(numout) 869 876 ENDIF 870 877 … … 874 881 ! If energy, enstrophy or mixed advection of momentum in vector form change the value for masks 875 882 ! at angles with three ocean points and one land point 876 IF(lwp) WRITE(numout,*) 877 IF(lwp) WRITE(numout,*) ' change fmask value in the angles (T) ln_vorlat = ', ln_vorlat 883 IF(lwp) THEN 884 WRITE(numout,*) 885 WRITE(numout,*) ' change fmask value in the angles (T) ln_vorlat = ', ln_vorlat 886 IF(lflush) CALL FLUSH(numout) 887 ENDIF 878 888 IF( ln_vorlat .AND. ( ln_dynvor_ene .OR. ln_dynvor_ens .OR. ln_dynvor_mix ) ) THEN 879 889 DO jk = 1, jpk … … 951 961 CASE( np_MIX ) ; WRITE(numout,*) ' ==>>> mixed enstrophy/energy conserving scheme (MIX)' 952 962 END SELECT 963 IF(lflush) CALL FLUSH(numout) 953 964 ENDIF 954 965 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynzad.F90
r10888 r10986 66 66 IF(lwp) WRITE(numout,*) 67 67 IF(lwp) WRITE(numout,*) 'dyn_zad : 2nd order vertical advection scheme' 68 IF(lflush) CALL FLUSH(numout) 68 69 ENDIF 69 70 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/dynzdf.F90
r10888 r10986 82 82 ! 83 83 IF( kt == nit000 ) THEN !* initialization 84 IF(lwp) WRITE(numout,*) 85 IF(lwp) WRITE(numout,*) 'dyn_zdf_imp : vertical momentum diffusion implicit operator' 86 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ ' 84 IF(lwp) THEN 85 WRITE(numout,*) 86 WRITE(numout,*) 'dyn_zdf_imp : vertical momentum diffusion implicit operator' 87 WRITE(numout,*) '~~~~~~~~~~~ ' 88 IF(lflush) CALL FLUSH(numout) 89 ENDIF 87 90 ! 88 91 If( ln_linssh ) THEN ; r_vvl = 0._wp ! non-linear free surface indicator -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/sshwzv.F90
r10888 r10986 77 77 IF( ln_timing ) CALL timing_start('ssh_nxt') 78 78 ! 79 IF( kt == nit000 ) THEN 80 IF(lwp) WRITE(numout,*) 81 IF(lwp) WRITE(numout,*) 'ssh_nxt : after sea surface height' 82 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 79 IF( kt == nit000 .AND. lwp) THEN 80 WRITE(numout,*) 81 WRITE(numout,*) 'ssh_nxt : after sea surface height' 82 WRITE(numout,*) '~~~~~~~ ' 83 IF(lflush) CALL FLUSH(numout) 83 84 ENDIF 84 85 ! … … 152 153 ! 153 154 IF( kt == nit000 ) THEN 154 IF(lwp) WRITE(numout,*) 155 IF(lwp) WRITE(numout,*) 'wzv : now vertical velocity ' 156 IF(lwp) WRITE(numout,*) '~~~~~ ' 155 IF(lwp) THEN 156 WRITE(numout,*) 157 WRITE(numout,*) 'wzv : now vertical velocity ' 158 WRITE(numout,*) '~~~~~ ' 159 IF(lflush) CALL FLUSH(numout) 160 ENDIF 157 161 ! 158 162 wn(:,:,jpk) = 0._wp ! bottom boundary condition: w=0 (set once for all) … … 240 244 IF( ln_timing ) CALL timing_start('ssh_swp') 241 245 ! 242 IF( kt == nit000 ) THEN 243 IF(lwp) WRITE(numout,*) 244 IF(lwp) WRITE(numout,*) 'ssh_swp : Asselin time filter and swap of sea surface height' 245 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 246 IF( kt == nit000 .AND. lwp) THEN 247 WRITE(numout,*) 248 WRITE(numout,*) 'ssh_swp : Asselin time filter and swap of sea surface height' 249 WRITE(numout,*) '~~~~~~~ ' 250 IF(lflush) CALL FLUSH(numout) 246 251 ENDIF 247 252 ! !== Euler time-stepping: no filter, just swap ==! … … 294 299 ! 295 300 IF( kt == nit000 ) THEN 296 IF(lwp) WRITE(numout,*) 297 IF(lwp) WRITE(numout,*) 'wAimp : Courant number-based partitioning of now vertical velocity ' 298 IF(lwp) WRITE(numout,*) '~~~~~ ' 301 IF(lwp) THEN 302 WRITE(numout,*) 303 WRITE(numout,*) 'wAimp : Courant number-based partitioning of now vertical velocity ' 304 WRITE(numout,*) '~~~~~ ' 305 IF(lflush) CALL FLUSH(numout) 306 ENDIF 299 307 ! 300 308 Cu_adv(:,:,jpk) = 0._wp ! bottom value : Cu_adv=0 (set once for all) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/DYN/wet_dry.F90
r10968 r10986 104 104 WRITE(numout,*) ' cut off depth sbc for wd rn_wd_sbcdep = ', rn_wd_sbcdep 105 105 WRITE(numout,*) ' fraction to start sbc wgt rn_wd_sbcfra = ', rn_wd_sbcfra 106 IF(lflush) CALL FLUSH(numout) 106 107 ENDIF 107 108 IF( .NOT. ln_read_cfg ) THEN 108 IF(lwp) WRITE(numout,*) ' No configuration file so seting ssh_ref to zero ' 109 IF(lwp) THEN 110 WRITE(numout,*) ' No configuration file so seting ssh_ref to zero ' 111 IF(lflush) CALL FLUSH(numout) 112 ENDIF 109 113 ssh_ref=0._wp 110 114 ENDIF … … 266 270 !!gm 267 271 ! 268 IF(jflag == 1 .AND. lwp) WRITE(numout,*) 'Need more iterations in wad_lmt!!!' 272 IF(jflag == 1 .AND. lwp) THEN 273 WRITE(numout,*) 'Need more iterations in wad_lmt!!!' 274 IF(lflush) CALL FLUSH(numout) 275 ENDIF 269 276 ! 270 277 !IF( ln_rnf ) CALL sbc_rnf_div( hdivn ) ! runoffs (update hdivn field) … … 390 397 !!gm end 391 398 ! 392 IF( jflag == 1 .AND. lwp ) WRITE(numout,*) 'Need more iterations in wad_lmt_bt!!!' 399 IF( jflag == 1 .AND. lwp ) THEN 400 WRITE(numout,*) 'Need more iterations in wad_lmt_bt!!!' 401 IF(lflush) CALL FLUSH(numout) 402 ENDIF 393 403 ! 394 404 !IF( ln_rnf ) CALL sbc_rnf_div( hdivn ) ! runoffs (update hdivn field) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/FLO/flo4rk.F90
r10888 r10986 58 58 ! 59 59 IF( ierror /= 0 ) THEN 60 WRITE(numout,*) 'flo_4rk: allocation of workspace arrays failed' 60 IF(lwp) THEN 61 WRITE(numout,*) 'flo_4rk: allocation of workspace arrays failed' 62 IF(lflush) CALL FLUSH(numout) 63 ENDIF 61 64 ENDIF 62 65 63 66 64 IF( kt == nit000 ) THEN 65 IF(lwp) WRITE(numout,*) 66 IF(lwp) WRITE(numout,*) 'flo_4rk : compute Runge Kutta trajectories for floats ' 67 IF(lwp) WRITE(numout,*) '~~~~~~~' 67 IF( kt == nit000 .AND. lwp) THEN 68 WRITE(numout,*) 69 WRITE(numout,*) 'flo_4rk : compute Runge Kutta trajectories for floats ' 70 WRITE(numout,*) '~~~~~~~' 71 IF(lflush) CALL FLUSH(numout) 68 72 ENDIF 69 73 … … 114 118 ENDIF 115 119 END DO 120 121 IF(lflush .AND. lwp) CALL FLUSH(numout) 116 122 117 123 ! 4 steps of Runge-Kutta algorithme -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/FLO/floats.F90
r10968 r10986 84 84 !!--------------------------------------------------------------------- 85 85 ! 86 IF(lwp) WRITE(numout,*) 87 IF(lwp) WRITE(numout,*) 'flo_stp : call floats routine ' 88 IF(lwp) WRITE(numout,*) '~~~~~~~' 86 IF(lwp) THEN 87 WRITE(numout,*) 88 WRITE(numout,*) 'flo_stp : call floats routine ' 89 WRITE(numout,*) '~~~~~~~' 90 IF(lflush) CALL FLUSH(numout) 91 ENDIF 89 92 90 93 REWIND( numnam_ref ) ! Namelist namflo in reference namelist : Floats … … 109 112 WRITE(numout,*) ' Use of ariane convention ln_ariane = ', ln_ariane 110 113 WRITE(numout,*) ' ascii output (T) or netcdf output (F) ln_flo_ascii = ', ln_flo_ascii 111 114 IF(lflush) CALL FLUSH(numout) 112 115 ENDIF 113 116 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/FLO/floblk.F90
r10888 r10986 71 71 !!--------------------------------------------------------------------- 72 72 73 IF( kt == nit000 ) THEN 74 IF(lwp) WRITE(numout,*) 75 IF(lwp) WRITE(numout,*) 'flo_blk : compute Blanke trajectories for floats ' 76 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 73 IF( kt == nit000 .AND. lwp) THEN 74 WRITE(numout,*) 75 WRITE(numout,*) 'flo_blk : compute Blanke trajectories for floats ' 76 WRITE(numout,*) '~~~~~~~ ' 77 IF(lflush) CALL FLUSH(numout) 77 78 ENDIF 78 79 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/FLO/flodom.F90
r10888 r10986 59 59 ! Initialisation with the geographical position or restart 60 60 61 IF(lwp) WRITE(numout,*) 'flo_dom : compute initial position of floats' 62 IF(lwp) WRITE(numout,*) '~~~~~~~~' 63 IF(lwp) WRITE(numout,*) ' jpnfl = ',jpnfl 61 IF(lwp) THEN 62 WRITE(numout,*) 'flo_dom : compute initial position of floats' 63 WRITE(numout,*) '~~~~~~~~' 64 WRITE(numout,*) ' jpnfl = ',jpnfl 65 IF(lflush) CALL FLUSH(numout) 66 ENDIF 64 67 65 68 !-------------------------! … … 89 92 IF( jpnfl > jpnrstflo )THEN 90 93 91 IF(lwp) WRITE(numout,*) ' add new floats' 94 IF(lwp) THEN 95 WRITE(numout,*) ' add new floats' 96 IF(lflush) CALL FLUSH(numout) 97 ENDIF 92 98 93 99 IF( ln_ariane )THEN !Add new floats with ariane convention … … 145 151 DO jfl = kfl_start,kfl_end 146 152 READ(inum,*) flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),itrash 147 if(lwp)write(numout,*)'read:',jfl,flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),itrash ; call flush(numout) 153 IF(lwp) THEN 154 write(numout,*)'read:',jfl,flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),itrash 155 IF(lflush) CALL FLUSH(numout) 156 ENDIF 148 157 END DO 149 158 CLOSE(inum) … … 266 275 DO jfl = kfl_start,kfl_end 267 276 IF( idomfl(jfl) == 1 ) THEN 268 IF(lwp) WRITE(numout,*)'*****************************' 269 IF(lwp) WRITE(numout,*)'!!!!!!! WARNING !!!!!!!!!!' 270 IF(lwp) WRITE(numout,*)'*****************************' 271 IF(lwp) WRITE(numout,*)'The float number',jfl,'is out of the sea.' 272 IF(lwp) WRITE(numout,*)'geographical position',flxx(jfl),flyy(jfl),flzz(jfl) 273 IF(lwp) WRITE(numout,*)'index position',tpifl(jfl),tpjfl(jfl),tpkfl(jfl) 277 IF(lwp) THEN 278 WRITE(numout,*)'*****************************' 279 WRITE(numout,*)'!!!!!!! WARNING !!!!!!!!!!' 280 WRITE(numout,*)'*****************************' 281 WRITE(numout,*)'The float number',jfl,'is out of the sea.' 282 WRITE(numout,*)'geographical position',flxx(jfl),flyy(jfl),flzz(jfl) 283 WRITE(numout,*)'index position',tpifl(jfl),tpjfl(jfl),tpkfl(jfl) 284 IF(lflush) CALL FLUSH(numout) 285 ENDIF 274 286 ENDIF 275 287 END DO -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/FLO/florst.F90
r10888 r10986 67 67 WRITE(numout,*) 'flo_rst : write in restart_float file ' 68 68 WRITE(numout,*) '~~~~~~~ ' 69 IF(lflush) CALL FLUSH(numout) 69 70 ENDIF 70 71 … … 118 119 ENDIF 119 120 END DO 121 IF(lflush) CALL FLUSH(numout) 120 122 ENDIF 121 123 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/IOM/in_out_manager.F90
r10888 r10986 129 129 INTEGER :: nn_isplt !: number of processors following i 130 130 INTEGER :: nn_jsplt !: number of processors following j 131 LOGICAL :: ln_flush !: flush numout flag 131 132 ! 132 133 INTEGER :: nprint, nictls, nictle, njctls, njctle, isplt, jsplt !: OLD namelist names 134 LOGICAL :: lflush 133 135 134 136 INTEGER :: ijsplt = 1 !: nb of local domain = nb of processors -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/IOM/iom.F90
r10968 r10986 321 321 ENDIF 322 322 !set name of the restart file and enable available fields 323 if(lwp .AND. nprint > 1) WRITE(numout,*) 'Setting restart filename (for XIOS) to: ',rst_file 323 if(lwp .AND. nprint > 1) THEN 324 WRITE(numout,*) 'Setting restart filename (for XIOS) to: ',rst_file 325 IF(lflush) CALL FLUSH(numout) 326 ENDIF 324 327 CALL xios_get_handle("file_definition", filegroup_hdl ) 325 328 CALL xios_add_child(filegroup_hdl, file_hdl, 'rrestart') … … 346 349 scalar_ref = "grid_scalar", operation = "instant") 347 350 END SELECT 348 IF(lwp .AND. nprint > 1) WRITE(numout,*) 'XIOS read: ', TRIM(rst_rfields(i)%vname), ' enabled in ', TRIM(rst_file) 351 IF(lwp .AND. nprint > 1) THEN 352 WRITE(numout,*) 'XIOS read: ', TRIM(rst_rfields(i)%vname), ' enabled in ', TRIM(rst_file) 353 IF(lflush) CALL FLUSH(numout) 354 ENDIF 349 355 ENDIF 350 356 ENDIF … … 537 543 538 544 !set name of the restart file and enable available fields 539 IF(lwp .AND. nprint > 1) WRITE(numout,*) 'Setting restart filename (for XIOS write) to: ',cdrst_file 545 IF(lwp .AND. nprint > 1) THEN 546 WRITE(numout,*) 'Setting restart filename (for XIOS write) to: ',cdrst_file 547 IF(lflush) CALL FLUSH(numout) 548 ENDIF 540 549 CALL xios_get_handle("file_definition", filegroup_hdl ) 541 550 CALL xios_add_child(filegroup_hdl, file_hdl, 'wrestart') … … 543 552 CALL xios_set_file_attr( "wrestart", type="one_file", enabled=.TRUE.,& 544 553 mode="write", output_freq=xios_timestep) 545 if(lwp .AND. nprint > 1) write(numout,*) 'OPEN ', trim(cdrst_file), ' in one_file mode' 554 IF(lwp .AND. nprint > 1) THEN 555 write(numout,*) 'OPEN ', trim(cdrst_file), ' in one_file mode' 556 IF(lflush) CALL FLUSH(numout) 557 ENDIF 546 558 ELSE 547 559 CALL xios_set_file_attr( "wrestart", type="multiple_file", enabled=.TRUE.,& 548 560 mode="write", output_freq=xios_timestep) 549 if(lwp .AND. nprint > 1) write(numout,*) 'OPEN ', trim(cdrst_file), ' in multiple_file mode' 561 IF(lwp .AND. nprint > 1) THEN 562 write(numout,*) 'OPEN ', trim(cdrst_file), ' in multiple_file mode' 563 IF(lflush) CALL FLUSH(numout) 564 ENDIF 550 565 ENDIF 551 566 CALL xios_set_file_attr( "wrestart", name=trim(cdrst_file)) … … 824 839 iom_file(jf)%nfid = 0 ! free the id 825 840 IF( PRESENT(kiomid) ) kiomid = 0 ! return 0 as id to specify that the file was closed 826 IF(lwp .AND. nprint > 1) &841 IF(lwp .AND. nprint > 1) THEN 827 842 WRITE(numout,*) TRIM(clinfo)//' close file: '//TRIM(iom_file(jf)%name)//' ok' 843 IF(lflush) CALL FLUSH(numout) 844 ENDIF 828 845 ELSEIF( PRESENT(kiomid) ) THEN 829 846 WRITE(ctmp1,*) '--->', kiomid … … 942 959 ELSE 943 960 #if defined key_iomput 944 IF(lwp .AND. nprint > 1) WRITE(numout,*) 'XIOS RST READ (0D): ', trim(cdvar) 961 IF(lwp .AND. nprint > 1) THEN 962 WRITE(numout,*) 'XIOS RST READ (0D): ', trim(cdvar) 963 IF(lflush) CALL FLUSH(numout) 964 ENDIF 945 965 CALL iom_swap( TRIM(crxios_context) ) 946 966 CALL xios_recv_field( trim(cdvar), pvar) … … 1267 1287 1268 1288 IF( istop == nstop ) THEN ! no additional errors until this point... 1269 IF(lwp .AND. nprint > 1) &1289 IF(lwp .AND. nprint > 1) THEN 1270 1290 WRITE(numout,"(10x,' read ',a,' (rec: ',i6,') in ',a,' ok')") TRIM(cdvar), itime, TRIM(iom_file(kiomid)%name) 1291 IF(lflush) CALL FLUSH(numout) 1292 ENDIF 1271 1293 1272 1294 !--- overlap areas and extra hallows (mpp) … … 1298 1320 IF( PRESENT(pv_r3d) ) THEN 1299 1321 pv_r3d(:, :, :) = 0. 1300 if(lwp .AND. nprint > 1) write(numout,*) 'XIOS RST READ (3D): ',trim(cdvar) 1322 IF(lwp .AND. nprint > 1) THEN 1323 write(numout,*) 'XIOS RST READ (3D): ',trim(cdvar) 1324 IF(lflush) CALL FLUSH(numout) 1325 ENDIF 1301 1326 CALL xios_recv_field( trim(cdvar), pv_r3d) 1302 1327 IF(idom /= jpdom_unknown ) then … … 1305 1330 ELSEIF( PRESENT(pv_r2d) ) THEN 1306 1331 pv_r2d(:, :) = 0. 1307 if(lwp .AND. nprint > 1) write(numout,*) 'XIOS RST READ (2D): ', trim(cdvar) 1332 IF(lwp .AND. nprint > 1) THEN 1333 write(numout,*) 'XIOS RST READ (2D): ', trim(cdvar) 1334 IF(lflush) CALL FLUSH(numout) 1335 ENDIF 1308 1336 CALL xios_recv_field( trim(cdvar), pv_r2d) 1309 1337 IF(idom /= jpdom_unknown ) THEN … … 1312 1340 ELSEIF( PRESENT(pv_r1d) ) THEN 1313 1341 pv_r1d(:) = 0. 1314 if(lwp .AND. nprint > 1) write(numout,*) 'XIOS RST READ (1D): ', trim(cdvar) 1342 IF(lwp .AND. nprint > 1) THEN 1343 write(numout,*) 'XIOS RST READ (1D): ', trim(cdvar) 1344 IF(lflush) CALL FLUSH(numout) 1345 ENDIF 1315 1346 CALL xios_recv_field( trim(cdvar), pv_r1d) 1316 1347 ENDIF … … 1514 1545 #ifdef key_iomput 1515 1546 IF( kt == kwrite ) THEN 1516 IF(lwp .AND. nprint > 1) write(numout,*) 'RESTART: write (XIOS 0D) ',trim(cdvar) 1547 IF(lwp .AND. nprint > 1) THEN 1548 write(numout,*) 'RESTART: write (XIOS 0D) ',trim(cdvar) 1549 IF(lflush) CALL FLUSH(numout) 1550 ENDIF 1517 1551 CALL xios_send_field(trim(cdvar), pvar) 1518 1552 ENDIF … … 1544 1578 #ifdef key_iomput 1545 1579 IF( kt == kwrite ) THEN 1546 IF(lwp .AND. nprint > 1) write(numout,*) 'RESTART: write (XIOS 1D) ',trim(cdvar) 1580 IF(lwp .AND. nprint > 1) THEN 1581 write(numout,*) 'RESTART: write (XIOS 1D) ',trim(cdvar) 1582 IF(lflush) CALL FLUSH(numout) 1583 ENDIF 1547 1584 CALL xios_send_field(trim(cdvar), pvar) 1548 1585 ENDIF … … 1574 1611 #ifdef key_iomput 1575 1612 IF( kt == kwrite ) THEN 1576 IF(lwp .AND. nprint > 1) write(numout,*) 'RESTART: write (XIOS 2D) ',trim(cdvar) 1613 IF(lwp .AND. nprint > 1) THEN 1614 write(numout,*) 'RESTART: write (XIOS 2D) ',trim(cdvar) 1615 IF(lflush) CALL FLUSH(numout) 1616 ENDIF 1577 1617 CALL xios_send_field(trim(cdvar), pvar) 1578 1618 ENDIF … … 1604 1644 #ifdef key_iomput 1605 1645 IF( kt == kwrite ) THEN 1606 IF(lwp .AND. nprint > 1) write(numout,*) 'RESTART: write (XIOS 3D) ',trim(cdvar) 1646 IF(lwp .AND. nprint > 1) THEN 1647 write(numout,*) 'RESTART: write (XIOS 3D) ',trim(cdvar) 1648 IF(lflush) CALL FLUSH(numout) 1649 ENDIF 1607 1650 CALL xios_send_field(trim(cdvar), pvar) 1608 1651 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/IOM/iom_nf90.F90
r10968 r10986 88 88 ! !=========================! 89 89 IF( ldwrt ) THEN ! ... in write mode 90 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in WRITE mode' 90 IF(lwp .AND. nprint > 0) THEN 91 WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in WRITE mode' 92 IF(lflush) CALL FLUSH(numout) 93 ENDIF 91 94 IF( snc4set%luse ) THEN 92 95 CALL iom_nf90_check(NF90_OPEN( TRIM(cdname), NF90_WRITE , if90id ), clinfo) … … 96 99 CALL iom_nf90_check(NF90_SET_FILL( if90id, NF90_NOFILL, idmy ), clinfo) 97 100 ELSE ! ... in read mode 98 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in READ mode' 101 IF(lwp .AND. nprint > 0) THEN 102 WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in READ mode' 103 IF(lflush) CALL FLUSH(numout) 104 ENDIF 99 105 CALL iom_nf90_check(NF90_OPEN( TRIM(cdname), NF90_NOWRITE, if90id, chunksize = ichunk ), clinfo) 100 106 ENDIF … … 107 113 cdname = TRIM(cltmp) 108 114 ENDIF 109 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' create new file: '//TRIM(cdname)//' in WRITE mode' 115 IF(lwp .AND. nprint > 0) THEN 116 WRITE(numout,*) TRIM(clinfo)//' create new file: '//TRIM(cdname)//' in WRITE mode' 117 IF(lflush) CALL FLUSH(numout) 118 ENDIF 110 119 111 120 IF( llclobber ) THEN ; imode = IOR( NF90_64BIT_OFFSET, NF90_CLOBBER ) … … 113 122 ENDIF 114 123 IF( snc4set%luse ) THEN 115 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' creating file: '//TRIM(cdname)//' in hdf5 (netcdf4) mode' 124 IF(lwp .AND. nprint > 0) THEN 125 WRITE(numout,*) TRIM(clinfo)//' creating file: '//TRIM(cdname)//' in hdf5 (netcdf4) mode' 126 IF(lflush) CALL FLUSH(numout) 127 ENDIF 116 128 CALL GET_NF90_SYMBOL("NF90_HDF5", ihdf5) 117 129 IF( llclobber ) THEN ; imode = IOR(ihdf5, NF90_CLOBBER) … … 165 177 & len = iom_file(kiomid)%lenuld ), clinfo ) 166 178 ENDIF 167 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' ---> '//TRIM(cdname)//' OK' 179 IF(lwp .AND. nprint > 0) THEN 180 WRITE(numout,*) ' ---> '//TRIM(cdname)//' OK' 181 IF(lflush) CALL FLUSH(numout) 182 ENDIF 168 183 ELSE 169 184 kiomid = 0 ! return error flag … … 562 577 ! trick: defined to 0 to say that dimension variables are defined but not yet written 563 578 iom_file(kiomid)%dimsz(1, 1) = 0 564 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' define dimension variables done' 579 IF(lwp .AND. nprint > 1) THEN 580 WRITE(numout,*) TRIM(clinfo)//' define dimension variables done' 581 IF(lflush) CALL FLUSH(numout) 582 ENDIF 565 583 ENDIF 566 584 ! define the data if it is not already done … … 637 655 CALL iom_nf90_check(SET_NF90_DEF_VAR_CHUNKING(if90id, idvar, ichunkalg, ichunksz), clinfo) 638 656 CALL iom_nf90_check(SET_NF90_DEF_VAR_DEFLATE(if90id, idvar, ishuffle, ideflate, ideflate_level), clinfo) 639 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' chunked ok. Chunks sizes: ', ichunksz 640 ENDIF 641 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' defined ok' 657 IF(lwp .AND. nprint > 1) THEN 658 WRITE(numout,*) TRIM(clinfo)//' chunked ok. Chunks sizes: ', ichunksz 659 IF(lflush) CALL FLUSH(numout) 660 ENDIF 661 ENDIF 662 IF(lwp .AND. nprint > 1) THEN 663 WRITE(numout,*) TRIM(clinfo)//' defined ok' 664 IF(lflush) CALL FLUSH(numout) 665 ENDIF 642 666 ELSE 643 667 idvar = kvid … … 685 709 CALL iom_nf90_check( NF90_INQUIRE_DIMENSION( if90id, 3, len = iom_file(kiomid)%dimsz(1,3) ), clinfo ) 686 710 iom_file(kiomid)%dimsz(1 , 4) = 1 ! unlimited dimension 687 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' write dimension variables done' 711 IF(lwp .AND. nprint > 1) THEN 712 WRITE(numout,*) TRIM(clinfo)//' write dimension variables done' 713 IF(lflush) CALL FLUSH(numout) 714 ENDIF 688 715 ENDIF 689 716 ENDIF … … 703 730 IF( iom_file(kiomid)%luld(idvar) ) iom_file(kiomid)%dimsz(iom_file(kiomid)%ndims(idvar), idvar) & 704 731 & = iom_file(kiomid)%dimsz(iom_file(kiomid)%ndims(idvar), idvar) + 1 705 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' written ok' 732 IF(lwp .AND. nprint > 0) THEN 733 WRITE(numout,*) TRIM(clinfo)//' written ok' 734 IF(lflush) CALL FLUSH(numout) 735 ENDIF 706 736 ENDIF 707 737 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/IOM/prtctl.F90
r10888 r10986 493 493 zidom = zidom + ilcitl(ji,1) - nrecil 494 494 END DO 495 IF(lwp) WRITE(numout,*) 496 IF(lwp) WRITE(numout,*)' sum ilcitl(i,1) = ', zidom, ' jpiglo = ', jpiglo 495 IF(lwp) THEN 496 WRITE(numout,*) 497 WRITE(numout,*)' sum ilcitl(i,1) = ', zidom, ' jpiglo = ', jpiglo 498 IF(lflush) CALL FLUSH(numout) 499 ENDIF 497 500 498 501 zjdom = nrecjl … … 500 503 zjdom = zjdom + ilcjtl(1,jj) - nrecjl 501 504 END DO 502 IF(lwp) WRITE(numout,*)' sum ilcitl(1,j) = ', zjdom, ' jpjglo = ', jpjglo 503 IF(lwp) WRITE(numout,*) 505 IF(lwp) THEN 506 WRITE(numout,*)' sum ilcitl(1,j) = ', zjdom, ' jpjglo = ', jpjglo 507 WRITE(numout,*) 508 IF(lflush) CALL FLUSH(numout) 509 ENDIF 504 510 505 511 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/IOM/restart.F90
r10968 r10986 104 104 ENDIF 105 105 ENDIF 106 IF(lflush) CALL FLUSH(numout) 106 107 ENDIF 107 108 ! … … 211 212 IF ( snc4set%luse ) WRITE(numout,*) 'rst_read : configured with NetCDF4 support' 212 213 WRITE(numout,*) '~~~~~~~~' 214 IF(lflush) CALL FLUSH(numout) 213 215 ENDIF 214 216 lxios_sini = .FALSE. … … 223 225 crxios_context = 'nemo_rst' 224 226 IF( .NOT.lxios_set ) THEN 225 IF(lwp .AND. nprint > 0) WRITE(numout,*) 'Enable restart reading by XIOS' 227 IF(lwp .AND. nprint > 0) THEN 228 WRITE(numout,*) 'Enable restart reading by XIOS' 229 IF(lflush) CALL FLUSH(numout) 230 ENDIF 226 231 CALL iom_init( crxios_context, ld_tmppatch = .false. ) 227 232 lxios_set = .TRUE. … … 230 235 IF( TRIM(Agrif_CFixed()) /= '0' .AND. lrxios) THEN 231 236 CALL iom_init( crxios_context, ld_tmppatch = .false. ) 232 IF(lwp .AND. nprint > 0) WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 237 IF(lwp .AND. nprint > 0) THEN 238 WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 239 IF(lflush) CALL FLUSH(numout) 240 ENDIF 233 241 lxios_set = .TRUE. 234 242 ENDIF … … 264 272 IF( ln_diurnal ) CALL iom_get( numror, jpdom_autoglo, 'Dsst' , x_dsst, ldxios = lrxios ) 265 273 IF ( ln_diurnal_only ) THEN 266 IF(lwp) WRITE( numout, * ) & 267 & "rst_read:- ln_diurnal_only set, setting rhop=rau0" 274 IF(lwp) THEN 275 WRITE( numout, * ) "rst_read:- ln_diurnal_only set, setting rhop=rau0" 276 IF(lflush) CALL FLUSH(numout) 277 ENDIF 268 278 rhop = rau0 269 279 CALL iom_get( numror, jpdom_autoglo, 'tn' , w3d, ldxios = lrxios ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/LBC/lib_mpp.F90
r10968 r10986 617 617 ! -------------------------- 618 618 IF ( SIZE(todelay(idvar)%z1d) /= isz ) THEN ! Check dimension coherence 619 IF(lwp) WRITE(numout,*) ' WARNING: the nb of delayed variables in restart file is not the model one' 619 IF(lwp) THEN 620 WRITE(numout,*) ' WARNING: the nb of delayed variables in restart file is not the model one' 621 IF(lflush) CALL FLUSH(numout) 622 ENDIF 620 623 DEALLOCATE(todelay(idvar)%z1d) 621 624 ndelayid(idvar) = -1 ! do as if we had no restart … … 684 687 ! -------------------------- 685 688 IF ( SIZE(todelay(idvar)%z1d) /= isz ) THEN ! Check dimension coherence 686 IF(lwp) WRITE(numout,*) ' WARNING: the nb of delayed variables in restart file is not the model one' 689 IF(lwp) THEN 690 WRITE(numout,*) ' WARNING: the nb of delayed variables in restart file is not the model one' 691 IF(lflush) CALL FLUSH(numout) 692 ENDIF 687 693 DEALLOCATE(todelay(idvar)%z1d) 688 694 ndelayid(idvar) = -1 ! do as if we had no restart -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/LBC/mppini.F90
r10968 r10986 94 94 WRITE(numout,*) ' l_Iperio = ', l_Iperio, ' l_Jperio = ', l_Jperio 95 95 WRITE(numout,*) ' npolj = ', npolj , ' njmpp = ', njmpp 96 IF(lflush) CALL FLUSH(numout) 96 97 ENDIF 97 98 ! … … 189 190 WRITE(numout,*) '~~~~~~~~ ' 190 191 WRITE(numout,*) 192 IF(lflush) CALL FLUSH(numout) 191 193 ENDIF 192 194 IF( jpni < 1 .OR. jpnj < 1 ) THEN … … 211 213 WRITE(numout,9000) ' - has mpi subdomains with a maximum size of (jpi = ', iimax, ', jpj = ', ijmax, & 212 214 & ', jpi*jpj = ', iimax* ijmax, ')' 215 IF(lflush) CALL FLUSH(numout) 213 216 ENDIF 214 217 IF( iimax*ijmax < jpimax*jpjmax ) THEN ! chosen subdomain size is larger that the best subdomain size … … 264 267 ENDIF 265 268 WRITE(numout,*) 269 IF(lflush) CALL FLUSH(numout) 266 270 ENDIF 267 271 CALL mpp_init_bestpartition( mppsize, ldlist = .TRUE. ) ! must be done by all core … … 284 288 WRITE(numout,9003) ' Number of suppressed land subdomains = ', jpni*jpnj - inijmin 285 289 WRITE(numout,*) 290 IF(lflush) CALL FLUSH(numout) 286 291 ENDIF 287 292 ENDIF … … 337 342 WRITE(numout,*) ' sum ilci(i,1) = ', sum(ilci(:,1)), ' jpiglo = ', jpiglo 338 343 WRITE(numout,*) ' sum ilcj(1,j) = ', sum(ilcj(1,:)), ' jpjglo = ', jpjglo 344 IF(lflush) CALL FLUSH(numout) 339 345 ENDIF 340 346 … … 507 513 il1 = il1+ifreq 508 514 END DO 515 IF(lflush) CALL FLUSH(numout) 516 ENDIF 509 517 9400 FORMAT(' ***' ,20('*************',a3) ) 510 518 9403 FORMAT(' * ',20(' * ',a3) ) … … 512 520 9402 FORMAT(' ',i3,' * ',20(i3,' x',i3,' * ') ) 513 521 9404 FORMAT(' * ' ,20(' ',i3,' * ') ) 514 ENDIF515 522 516 523 ! just to save nono etc for all proc … … 647 654 WRITE(numout,*) ' nrecj = ', nrecj 648 655 WRITE(numout,*) ' nn_hls = ', nn_hls 656 IF(lflush) CALL FLUSH(numout) 649 657 ENDIF 650 658 … … 655 663 WRITE(numout,*) 656 664 WRITE(numout,*) ' ==>>> North fold boundary prepared for jpni >1' 665 IF(lflush) CALL FLUSH(numout) 657 666 ! additional prints in layout.dat 658 667 ENDIF … … 948 957 WRITE(numout, *) ' --------------------------------------', '-----', '--------------' 949 958 WRITE(numout,*) 959 IF(lflush) CALL FLUSH(numout) 950 960 END IF 951 961 iitarget = MINLOC( inbi0(:)*inbj0(:), mask = inbi0(:)*inbj0(:) >= knbij, dim = 1 ) … … 955 965 inbij = COUNT(llisoce) 956 966 DEALLOCATE( llisoce ) 957 IF(lwp) WRITE(numout,'(a, i5, a, i5, a, i4, a, i4, a, i9, a, i5, a, i5, a)') & 967 IF(lwp) THEN 968 WRITE(numout,'(a, i5, a, i5, a, i4, a, i4, a, i9, a, i5, a, i5, a)') & 958 969 & 'nb_cores ' , inbij,' oce + ', inbi0(ji)*inbj0(ji) - inbij & 959 970 & , ' land ( ', inbi0(ji),' x ', inbj0(ji), & 960 971 & ' ), nb_points ', iszi0(ji)*iszj0(ji),' ( ', iszi0(ji),' x ', iszj0(ji),' )' 972 IF(lflush) CALL FLUSH(numout) 973 ENDIF 961 974 END DO 962 975 DEALLOCATE( inbi0, inbj0, iszi0, iszj0 ) … … 1171 1184 WRITE(numout,*) ' ihals = ', ihals(1), ihals(2) 1172 1185 WRITE(numout,*) ' ihale = ', ihale(1), ihale(2) 1186 IF(lflush) CALL FLUSH(numout) 1173 1187 ENDIF 1174 1188 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/LDF/ldfc1d_c2d.F90
r10888 r10986 61 61 !!---------------------------------------------------------------------- 62 62 ! 63 IF(lwp) WRITE(numout,*) 64 IF(lwp) WRITE(numout,*) ' ldf_c1d : set a given profile to eddy mixing coefficients' 63 IF(lwp) THEN 64 WRITE(numout,*) 65 WRITE(numout,*) ' ldf_c1d : set a given profile to eddy mixing coefficients' 66 IF(lflush) CALL FLUSH(numout) 67 ENDIF 65 68 ! 66 69 ! initialization of the profile … … 134 137 !!---------------------------------------------------------------------- 135 138 ! 136 IF(lwp) WRITE(numout,*) 137 IF(lwp) WRITE(numout,*) ' ldf_c2d : aht = Ufac * max(e1,e2) with Ufac = ', pUfac, ' m/s' 139 IF(lwp) THEN 140 WRITE(numout,*) 141 WRITE(numout,*) ' ldf_c2d : aht = Ufac * max(e1,e2) with Ufac = ', pUfac, ' m/s' 142 IF(lflush) CALL FLUSH(numout) 143 ENDIF 138 144 ! 139 145 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/LDF/ldfdyn.F90
r10968 r10986 151 151 WRITE(numout,*) ' lower limit (default 1.0) rn_minfac = ', rn_minfac 152 152 WRITE(numout,*) ' upper limit (default 1.0) rn_maxfac = ', rn_maxfac 153 IF(lflush) CALL FLUSH(numout) 153 154 ENDIF 154 155 … … 224 225 END SELECT 225 226 WRITE(numout,*) 227 IF(lflush) CALL FLUSH(numout) 226 228 ENDIF 227 229 … … 233 235 ! 234 236 IF( ln_dynldf_OFF ) THEN 235 IF(lwp) WRITE(numout,*) ' ==>>> No viscous operator selected. ahmt and ahmf are not allocated' 237 IF(lwp) THEN 238 WRITE(numout,*) ' ==>>> No viscous operator selected. ahmt and ahmf are not allocated' 239 IF(lflush) CALL FLUSH(numout) 240 ENDIF 236 241 RETURN 237 242 ! … … 255 260 ! 256 261 CASE( 0 ) !== constant ==! 257 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity. = constant = ', zah0, cl_Units 262 IF(lwp) THEN 263 WRITE(numout,*) ' ==>>> eddy viscosity. = constant = ', zah0, cl_Units 264 IF(lflush) CALL FLUSH(numout) 265 ENDIF 258 266 ahmt(:,:,1:jpkm1) = zah0 259 267 ahmf(:,:,1:jpkm1) = zah0 260 268 ! 261 269 CASE( 10 ) !== fixed profile ==! 262 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F( depth )' 263 IF(lwp) WRITE(numout,*) ' surface viscous coef. = constant = ', zah0, cl_Units 270 IF(lwp) THEN 271 WRITE(numout,*) ' ==>>> eddy viscosity = F( depth )' 272 WRITE(numout,*) ' surface viscous coef. = constant = ', zah0, cl_Units 273 IF(lflush) CALL FLUSH(numout) 274 ENDIF 264 275 ahmt(:,:,1) = zah0 ! constant surface value 265 276 ahmf(:,:,1) = zah0 … … 267 278 ! 268 279 CASE ( -20 ) !== fixed horizontal shape read in file ==! 269 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F(i,j) read in eddy_viscosity.nc file' 280 IF(lwp) THEN 281 WRITE(numout,*) ' ==>>> eddy viscosity = F(i,j) read in eddy_viscosity.nc file' 282 IF(lflush) CALL FLUSH(numout) 283 ENDIF 270 284 CALL iom_open( 'eddy_viscosity_2D.nc', inum ) 271 285 CALL iom_get ( inum, jpdom_data, 'ahmt_2d', ahmt(:,:,1) ) … … 278 292 ! 279 293 CASE( 20 ) !== fixed horizontal shape ==! 280 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F( e1, e2 ) or F( e1^3, e2^3 ) (lap. or blp. case)' 281 IF(lwp) WRITE(numout,*) ' using a fixed viscous velocity = ', rn_Uv ,' m/s and Lv = Max(e1,e2)' 282 IF(lwp) WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 294 IF(lwp) THEN 295 WRITE(numout,*) ' ==>>> eddy viscosity = F( e1, e2 ) or F( e1^3, e2^3 ) (lap. or blp. case)' 296 WRITE(numout,*) ' using a fixed viscous velocity = ', rn_Uv ,' m/s and Lv = Max(e1,e2)' 297 WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 298 IF(lflush) CALL FLUSH(numout) 299 ENDIF 283 300 CALL ldf_c2d( 'DYN', zUfac , inn , ahmt, ahmf ) ! surface value proportional to scale factor^inn 284 301 ! 285 302 CASE( -30 ) !== fixed 3D shape read in file ==! 286 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F(i,j,k) read in eddy_viscosity_3D.nc file' 303 IF(lwp) THEN 304 WRITE(numout,*) ' ==>>> eddy viscosity = F(i,j,k) read in eddy_viscosity_3D.nc file' 305 IF(lflush) CALL FLUSH(numout) 306 ENDIF 287 307 CALL iom_open( 'eddy_viscosity_3D.nc', inum ) 288 308 CALL iom_get ( inum, jpdom_data, 'ahmt_3d', ahmt ) … … 291 311 ! 292 312 CASE( 30 ) !== fixed 3D shape ==! 293 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F( latitude, longitude, depth )' 294 IF(lwp) WRITE(numout,*) ' using a fixed viscous velocity = ', rn_Uv ,' m/s and Ld = Max(e1,e2)' 295 IF(lwp) WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 313 IF(lwp) THEN 314 WRITE(numout,*) ' ==>>> eddy viscosity = F( latitude, longitude, depth )' 315 WRITE(numout,*) ' using a fixed viscous velocity = ', rn_Uv ,' m/s and Ld = Max(e1,e2)' 316 WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 317 IF(lflush) CALL FLUSH(numout) 318 ENDIF 296 319 CALL ldf_c2d( 'DYN', zUfac , inn , ahmt, ahmf ) ! surface value proportional to scale factor^inn 297 320 CALL ldf_c1d( 'DYN', ahmt(:,:,1), ahmf(:,:,1), ahmt, ahmf ) ! reduction with depth 298 321 ! 299 322 CASE( 31 ) !== time varying 3D field ==! 300 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F( latitude, longitude, depth , time )' 301 IF(lwp) WRITE(numout,*) ' proportional to the local velocity : 1/2 |u|e (lap) or 1/12 |u|e^3 (blp)' 323 IF(lwp) THEN 324 WRITE(numout,*) ' ==>>> eddy viscosity = F( latitude, longitude, depth , time )' 325 WRITE(numout,*) ' proportional to the local velocity : 1/2 |u|e (lap) or 1/12 |u|e^3 (blp)' 326 IF(lflush) CALL FLUSH(numout) 327 ENDIF 302 328 ! 303 329 l_ldfdyn_time = .TRUE. ! will be calculated by call to ldf_dyn routine in step.F90 304 330 ! 305 331 CASE( 32 ) !== time varying 3D field ==! 306 IF(lwp) WRITE(numout,*) ' ==>>> eddy viscosity = F( latitude, longitude, depth , time )' 307 IF(lwp) WRITE(numout,*) ' proportional to the local deformation rate and gridscale (Smagorinsky)' 332 IF(lwp) THEN 333 WRITE(numout,*) ' ==>>> eddy viscosity = F( latitude, longitude, depth , time )' 334 WRITE(numout,*) ' proportional to the local deformation rate and gridscale (Smagorinsky)' 335 IF(lflush) CALL FLUSH(numout) 336 ENDIF 308 337 ! 309 338 l_ldfdyn_time = .TRUE. ! will be calculated by call to ldf_dyn routine in step.F90 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/LDF/ldfslp.F90
r10888 r10986 746 746 WRITE(numout,*) 'ldf_slp_init : direction of lateral mixing' 747 747 WRITE(numout,*) '~~~~~~~~~~~~' 748 IF(lflush) CALL FLUSH(numout) 748 749 ENDIF 749 750 ! … … 752 753 ! 753 754 IF( ln_traldf_triad ) THEN ! Griffies operator : triad of slopes 754 IF(lwp) WRITE(numout,*) ' ==>>> triad) operator (Griffies)' 755 IF(lwp) THEN 756 WRITE(numout,*) ' ==>>> triad) operator (Griffies)' 757 IF(lflush) CALL FLUSH(numout) 758 ENDIF 755 759 ALLOCATE( triadi_g(jpi,jpj,jpk,0:1,0:1) , triadj_g(jpi,jpj,jpk,0:1,0:1) , & 756 760 & triadi (jpi,jpj,jpk,0:1,0:1) , triadj (jpi,jpj,jpk,0:1,0:1) , & … … 760 764 ! 761 765 ELSE ! Madec operator : slopes at u-, v-, and w-points 762 IF(lwp) WRITE(numout,*) ' ==>>> iso operator (Madec)' 766 IF(lwp) THEN 767 WRITE(numout,*) ' ==>>> iso operator (Madec)' 768 IF(lflush) CALL FLUSH(numout) 769 ENDIF 763 770 ALLOCATE( omlmask(jpi,jpj,jpk) , & 764 771 & uslp(jpi,jpj,jpk) , uslpml(jpi,jpj) , wslpi(jpi,jpj,jpk) , wslpiml(jpi,jpj) , & -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/LDF/ldftra.F90
r10968 r10986 146 146 WRITE(numout,*) 'ldf_tra_init : lateral tracer diffusion' 147 147 WRITE(numout,*) '~~~~~~~~~~~~ ' 148 IF(lflush) CALL FLUSH(numout) 148 149 ENDIF 149 150 … … 180 181 WRITE(numout,*) ' lateral diffusive velocity (if cst) rn_Ud = ', rn_Ud, ' m/s' 181 182 WRITE(numout,*) ' lateral diffusive length (if cst) rn_Ld = ', rn_Ld, ' m' 183 IF(lflush) CALL FLUSH(numout) 182 184 ENDIF 183 185 ! … … 271 273 END SELECT 272 274 WRITE(numout,*) 275 IF(lflush) CALL FLUSH(numout) 273 276 ENDIF 274 277 … … 281 284 IF( ln_traldf_OFF ) THEN !== no explicit diffusive operator ==! 282 285 ! 283 IF(lwp) WRITE(numout,*) ' ==>>> No diffusive operator selected. ahtu and ahtv are not allocated' 286 IF(lwp) THEN 287 WRITE(numout,*) ' ==>>> No diffusive operator selected. ahtu and ahtv are not allocated' 288 IF(lflush) CALL FLUSH(numout) 289 ENDIF 284 290 RETURN 285 291 ! … … 304 310 ! 305 311 CASE( 0 ) !== constant ==! 306 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = constant = ', aht0, cl_Units 312 IF(lwp) THEN 313 WRITE(numout,*) ' ==>>> eddy diffusivity = constant = ', aht0, cl_Units 314 IF(lflush) CALL FLUSH(numout) 315 ENDIF 307 316 ahtu(:,:,1:jpkm1) = aht0 308 317 ahtv(:,:,1:jpkm1) = aht0 309 318 ! 310 319 CASE( 10 ) !== fixed profile ==! 311 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F( depth )' 312 IF(lwp) WRITE(numout,*) ' surface eddy diffusivity = constant = ', aht0, cl_Units 320 IF(lwp) THEN 321 WRITE(numout,*) ' ==>>> eddy diffusivity = F( depth )' 322 WRITE(numout,*) ' surface eddy diffusivity = constant = ', aht0, cl_Units 323 IF(lflush) CALL FLUSH(numout) 324 ENDIF 313 325 ahtu(:,:,1) = aht0 ! constant surface value 314 326 ahtv(:,:,1) = aht0 … … 316 328 ! 317 329 CASE ( -20 ) !== fixed horizontal shape and magnitude read in file ==! 318 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F(i,j) read in eddy_diffusivity.nc file' 330 IF(lwp) THEN 331 WRITE(numout,*) ' ==>>> eddy diffusivity = F(i,j) read in eddy_diffusivity.nc file' 332 IF(lflush) CALL FLUSH(numout) 333 ENDIF 319 334 CALL iom_open( 'eddy_diffusivity_2D.nc', inum ) 320 335 CALL iom_get ( inum, jpdom_data, 'ahtu_2D', ahtu(:,:,1) ) … … 327 342 ! 328 343 CASE( 20 ) !== fixed horizontal shape ==! 329 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F( e1, e2 ) or F( e1^3, e2^3 ) (lap or blp case)' 330 IF(lwp) WRITE(numout,*) ' using a fixed diffusive velocity = ', rn_Ud,' m/s and Ld = Max(e1,e2)' 331 IF(lwp) WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 344 IF(lwp) THEN 345 WRITE(numout,*) ' ==>>> eddy diffusivity = F( e1, e2 ) or F( e1^3, e2^3 ) (lap or blp case)' 346 WRITE(numout,*) ' using a fixed diffusive velocity = ', rn_Ud,' m/s and Ld = Max(e1,e2)' 347 WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 348 IF(lflush) CALL FLUSH(numout) 349 ENDIF 332 350 CALL ldf_c2d( 'TRA', zUfac , inn , ahtu, ahtv ) ! value proportional to scale factor^inn 333 351 ! 334 352 CASE( 21 ) !== time varying 2D field ==! 335 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F( latitude, longitude, time )' 336 IF(lwp) WRITE(numout,*) ' = F( growth rate of baroclinic instability )' 337 IF(lwp) WRITE(numout,*) ' min value = 0.2 * aht0 (with aht0= 1/2 rn_Ud*rn_Ld)' 338 IF(lwp) WRITE(numout,*) ' max value = aei0 (with aei0=1/2 rn_Ue*Le increased to aht0 within 20N-20S' 353 IF(lwp) THEN 354 WRITE(numout,*) ' ==>>> eddy diffusivity = F( latitude, longitude, time )' 355 WRITE(numout,*) ' = F( growth rate of baroclinic instability )' 356 WRITE(numout,*) ' min value = 0.2 * aht0 (with aht0= 1/2 rn_Ud*rn_Ld)' 357 WRITE(numout,*) ' max value = aei0 (with aei0=1/2 rn_Ue*Le increased to aht0 within 20N-20S' 358 IF(lflush) CALL FLUSH(numout) 359 ENDIF 339 360 ! 340 361 l_ldftra_time = .TRUE. ! will be calculated by call to ldf_tra routine in step.F90 … … 344 365 ! 345 366 CASE( -30 ) !== fixed 3D shape read in file ==! 346 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F(i,j,k) read in eddy_diffusivity.nc file' 367 IF(lwp) THEN 368 WRITE(numout,*) ' ==>>> eddy diffusivity = F(i,j,k) read in eddy_diffusivity.nc file' 369 IF(lflush) CALL FLUSH(numout) 370 ENDIF 347 371 CALL iom_open( 'eddy_diffusivity_3D.nc', inum ) 348 372 CALL iom_get ( inum, jpdom_data, 'ahtu_3D', ahtu ) … … 351 375 ! 352 376 CASE( 30 ) !== fixed 3D shape ==! 353 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F( latitude, longitude, depth )' 354 IF(lwp) WRITE(numout,*) ' using a fixed diffusive velocity = ', rn_Ud,' m/s and Ld = Max(e1,e2)' 355 IF(lwp) WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 377 IF(lwp) THEN 378 WRITE(numout,*) ' ==>>> eddy diffusivity = F( latitude, longitude, depth )' 379 WRITE(numout,*) ' using a fixed diffusive velocity = ', rn_Ud,' m/s and Ld = Max(e1,e2)' 380 WRITE(numout,*) ' maximum reachable coefficient (at the Equator) = ', zah_max, cl_Units, ' for e1=1°)' 381 IF(lflush) CALL FLUSH(numout) 382 ENDIF 356 383 CALL ldf_c2d( 'TRA', zUfac , inn , ahtu, ahtv ) ! surface value proportional to scale factor^inn 357 384 CALL ldf_c1d( 'TRA', ahtu(:,:,1), ahtv(:,:,1), ahtu, ahtv ) ! reduction with depth 358 385 ! 359 386 CASE( 31 ) !== time varying 3D field ==! 360 IF(lwp) WRITE(numout,*) ' ==>>> eddy diffusivity = F( latitude, longitude, depth , time )' 361 IF(lwp) WRITE(numout,*) ' proportional to the velocity : 1/2 |u|e or 1/12 |u|e^3' 387 IF(lwp) THEN 388 WRITE(numout,*) ' ==>>> eddy diffusivity = F( latitude, longitude, depth , time )' 389 WRITE(numout,*) ' proportional to the velocity : 1/2 |u|e or 1/12 |u|e^3' 390 IF(lflush) CALL FLUSH(numout) 391 ENDIF 362 392 ! 363 393 l_ldftra_time = .TRUE. ! will be calculated by call to ldf_tra routine in step.F90 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/OBS/obs_write.F90
r10888 r10986 186 186 WRITE(numout,*)'~~~~~~~~~~~~~' 187 187 WRITE(numout,*)'Writing '//TRIM(clfiletype)//' feedback file : ',TRIM(clfname) 188 IF(lflush) CALL FLUSH(numout) 188 189 ENDIF 189 190 … … 458 459 WRITE(numout,*)'~~~~~~~~~~~~~' 459 460 WRITE(numout,*)'Writing '//TRIM(surfdata%cvars(1))//' feedback file : ',TRIM(clfname) 461 IF(lflush) CALL FLUSH(numout) 460 462 ENDIF 461 463 … … 571 573 WRITE(numout,*) 'obs_wri_stats :' 572 574 WRITE(numout,*) '~~~~~~~~~~~~~~~' 575 IF(lflush) CALL FLUSH(numout) 573 576 ENDIF 574 577 … … 600 603 WRITE(numout,*) 'Overall RMS obs minus model of the good observations: ',sqrt( zsumx2/inumgoodobsmpp ) 601 604 WRITE(numout,*) '' 605 IF(lflush) CALL FLUSH(numout) 602 606 ENDIF 603 607 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/OBS/obsinter_h2d.h90
r10888 r10986 281 281 WRITE(numout,*)'Switching to great circle distance' 282 282 WRITE(numout,*) 283 IF(lflush) CALL FLUSH(numout) 283 284 ENDIF 284 285 CALL obs_int_h2d_ds1( kpk2, ikmax, & … … 1129 1130 WRITE(numout,*)' Iterations for i,j exceed max iteration count!' 1130 1131 WRITE(numout,*) 1132 IF(lflush) CALL FLUSH(numout) 1131 1133 1132 1134 ldfail = .TRUE. -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/cpl_oasis3.F90
r10888 r10986 157 157 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 158 158 ENDIF 159 IF(lwp) WRITE(numout,*) 160 IF(lwp) WRITE(numout,*) 'cpl_define : initialization in coupled ocean/atmosphere case' 161 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 162 IF(lwp) WRITE(numout,*) 159 IF(lwp) THEN 160 WRITE(numout,*) 161 WRITE(numout,*) 'cpl_define : initialization in coupled ocean/atmosphere case' 162 WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 163 WRITE(numout,*) 164 IF(lflush) CALL FLUSH(numout) 165 ENDIF 163 166 164 167 ncplmodel = kcplmodel … … 208 211 WRITE(numout,*) ' multiexchg: nldi, nlei, nimpp =', nldi, nlei, nimpp 209 212 WRITE(numout,*) ' multiexchg: nldj, nlej, njmpp =', nldj, nlej, njmpp 213 IF(lflush) CALL FLUSH(numout) 210 214 ENDIF 211 215 … … 243 247 END IF 244 248 #endif 245 IF( ln_ctl ) WRITE(numout,*) "Define", ji, jc, jm, " "//TRIM(zclname), " for ", OASIS_Out 249 IF( ln_ctl ) THEN 250 WRITE(numout,*) "Define", ji, jc, jm, " "//TRIM(zclname), " for ", OASIS_Out 251 IF(lflush) CALL FLUSH(numout) 252 ENDIF 246 253 CALL oasis_def_var (ssnd(ji)%nid(jc,jm), zclname, id_part , (/ 2, 1 /), & 247 254 & OASIS_Out , ishape , OASIS_REAL, nerror ) … … 288 295 END IF 289 296 #endif 290 IF( ln_ctl ) WRITE(numout,*) "Define", ji, jc, jm, " "//TRIM(zclname), " for ", OASIS_In 297 IF( ln_ctl ) THEN 298 WRITE(numout,*) "Define", ji, jc, jm, " "//TRIM(zclname), " for ", OASIS_In 299 IF(lflush) CALL FLUSH(numout) 300 ENDIF 291 301 CALL oasis_def_var (srcv(ji)%nid(jc,jm), zclname, id_part , (/ 2, 1 /), & 292 302 & OASIS_In , ishape , OASIS_REAL, nerror ) … … 361 371 WRITE(numout,*) ' - Sum value is ', SUM(pdata(:,:,jc)) 362 372 WRITE(numout,*) '****************' 373 IF(lflush) CALL FLUSH(numout) 363 374 ENDIF 364 375 ENDIF … … 420 431 & kinfo == OASIS_RecvOut .OR. kinfo == OASIS_FromRestOut 421 432 422 IF ( ln_ctl ) WRITE(numout,*) "llaction, kinfo, kstep, ivarid: " , llaction, kinfo, kstep, srcv(kid)%nid(jc,jm) 433 IF ( ln_ctl ) THEN 434 WRITE(numout,*) "llaction, kinfo, kstep, ivarid: " , llaction, kinfo, kstep, srcv(kid)%nid(jc,jm) 435 IF(lflush) CALL FLUSH(numout) 436 ENDIF 423 437 424 438 IF ( llaction ) THEN … … 442 456 WRITE(numout,*) ' - Sum value is ', SUM(pdata(:,:,jc)) 443 457 WRITE(numout,*) '****************' 458 IF(lflush) CALL FLUSH(numout) 444 459 ENDIF 445 460 -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/fldread.F90
r10968 r10986 304 304 & sd(jf)%nrec_b(1), sd(jf)%nrec_a(1), REAL(sd(jf)%nrec_b(2),wp)/rday, REAL(sd(jf)%nrec_a(2),wp)/rday 305 305 WRITE(numout, *) ' it_offset is : ',it_offset 306 IF(lflush) CALL FLUSH(numout) 306 307 ENDIF 307 308 ! temporal interpolation weights … … 315 316 WRITE(numout, clfmt) TRIM(sd(jf)%clvar), kt, REAL(isecsbc,wp)/rday, nyear, nmonth, nday, & 316 317 & sd(jf)%nrec_a(1), REAL(sd(jf)%nrec_b(2),wp)/rday, REAL(sd(jf)%nrec_a(2),wp)/rday 318 IF(lflush) CALL FLUSH(numout) 317 319 ENDIF 318 320 ENDIF … … 440 442 ! 441 443 clfmt = "(' fld_init : time-interpolation for ', a, ' read previous record = ', i6, ' at time = ', f7.2, ' days')" 442 IF(lwp .AND. nprint > 1) WRITE(numout, clfmt) TRIM(sdjf%clvar), sdjf%nrec_a(1), REAL(sdjf%nrec_a(2),wp)/rday 444 IF(lwp .AND. nprint > 1) THEN 445 WRITE(numout, clfmt) TRIM(sdjf%clvar), sdjf%nrec_a(1), REAL(sdjf%nrec_a(2),wp)/rday 446 IF(lflush) CALL FLUSH(numout) 447 ENDIF 443 448 ! 444 449 ENDIF … … 762 767 ENDIF 763 768 764 IF(lwp.AND. nprint > 1) WRITE(numout,*) 'Dim size for ', TRIM(clvar),' is ', ilendta 765 IF(lwp.AND. nprint > 1) WRITE(numout,*) 'Number of levels for ',TRIM(clvar),' is ', ipk 769 IF(lwp.AND. nprint > 1) THEN 770 WRITE(numout,*) 'Dim size for ', TRIM(clvar),' is ', ilendta 771 WRITE(numout,*) 'Number of levels for ',TRIM(clvar),' is ', ipk 772 IF(lflush) CALL FLUSH(numout) 773 ENDIF 766 774 ! 767 775 SELECT CASE( ipk ) … … 1174 1182 END DO 1175 1183 sd(ju)%rotn(jn) = .TRUE. ! vector was rotated 1176 IF( lwp .AND. kt == nit000 .AND. nprint > 1) WRITE(numout,*) & 1184 IF( lwp .AND. kt == nit000 .AND. nprint > 1) THEN 1185 WRITE(numout,*) & 1177 1186 & 'fld_read: vector pair ('//TRIM(sd(ju)%clvar)//', '//TRIM(sd(iv)%clvar)//') rotated on to model grid' 1187 IF(lflush) CALL FLUSH(numout) 1188 ENDIF 1178 1189 ENDIF 1179 1190 ENDIF … … 1340 1351 call flush(numout) 1341 1352 END DO 1353 IF(lflush) CALL FLUSH(numout) 1342 1354 ENDIF 1343 1355 ! … … 1411 1423 ENDIF 1412 1424 IF( ASSOCIATED(ref_wgts(kw)%data_wgt) ) WRITE(numout,*) ' allocated' 1425 IF(lflush) CALL FLUSH(numout) 1413 1426 END DO 1414 1427 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/geo2ocean.F90
r10888 r10986 69 69 ! 70 70 IF( lmust_init ) THEN ! at 1st call only: set gsin. & gcos. 71 IF(lwp) WRITE(numout,*) 72 IF(lwp) WRITE(numout,*) ' rot_rep: coordinate transformation : geographic <==> model (i,j)-components' 73 IF(lwp) WRITE(numout,*) ' ~~~~~~~~ ' 71 IF(lwp) THEN 72 WRITE(numout,*) 73 WRITE(numout,*) ' rot_rep: coordinate transformation : geographic <==> model (i,j)-components' 74 WRITE(numout,*) ' ~~~~~~~~ ' 75 IF(lflush) CALL FLUSH(numout) 76 ENDIF 74 77 ! 75 78 CALL angle( glamt, gphit, glamu, gphiu, glamv, gphiv, glamf, gphif ) ! initialization of the transformation … … 450 453 ! ----------------------------------------------- 451 454 IF( lmust_init ) THEN 452 IF(lwp) WRITE(numout,*) 453 IF(lwp) WRITE(numout,*) ' obs_rot : geographic <--> stretched' 454 IF(lwp) WRITE(numout,*) ' ~~~~~~~ coordinate transformation' 455 IF(lwp) THEN 456 WRITE(numout,*) 457 WRITE(numout,*) ' obs_rot : geographic <--> stretched' 458 WRITE(numout,*) ' ~~~~~~~ coordinate transformation' 459 IF(lflush) CALL FLUSH(numout) 460 ENDIF 455 461 CALL angle( glamt, gphit, glamu, gphiu, glamv, gphiv, glamf, gphif ) ! initialization of the transformation 456 462 lmust_init = .FALSE. -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcapr.F90
r10968 r10986 91 91 WRITE(numout,*) ' Namelist namsbc_apr : Atmospheric PRessure as extrenal forcing' 92 92 WRITE(numout,*) ' ref. pressure: global mean Patm (T) or a constant (F) ln_ref_apr = ', ln_ref_apr 93 IF(lflush) CALL FLUSH(numout) 93 94 ENDIF 94 95 ! … … 99 100 IF(lwp) WRITE(numout,*) ' Reference Patm used : ', rn_pref, ' N/m2' 100 101 ENDIF 102 IF(lwp .AND. lflush) CALL FLUSH(numout) 101 103 ! 102 104 r1_grau = 1.e0 / (grav * rau0) !* constant for optimization 103 105 ! 104 106 ! !* control check 105 IF ( ln_apr_obc ) THEN 106 IF(lwp) WRITE(numout,*) ' Inverse barometer added to OBC ssh data' 107 IF ( ln_apr_obc .AND. lwp) THEN 108 WRITE(numout,*) ' Inverse barometer added to OBC ssh data' 109 IF(lflush) CALL FLUSH(numout) 107 110 ENDIF 108 111 !jc: stop below should rather be a warning … … 155 158 ! !* Restart: read in restart file 156 159 IF( ln_rstart .AND. iom_varid( numror, 'ssh_ibb', ldstop = .FALSE. ) > 0 ) THEN 157 IF(lwp) WRITE(numout,*) 'sbc_apr: ssh_ibb read in the restart file' 160 IF(lwp .AND. nprint > 0) THEN 161 WRITE(numout,*) 'sbc_apr: ssh_ibb read in the restart file' 162 IF(lflush) CALL FLUSH(numout) 163 ENDIF 158 164 CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb, ldxios = lrxios ) ! before inv. barometer ssh 159 165 ! 160 166 ELSE !* no restart: set from nit000 values 161 IF(lwp) WRITE(numout,*) 'sbc_apr: ssh_ibb set to nit000 values' 167 IF(lwp .AND. nprint > 0) THEN 168 WRITE(numout,*) 'sbc_apr: ssh_ibb set to nit000 values' 169 IF(lflush) CALL FLUSH(numout) 170 ENDIF 162 171 ssh_ibb(:,:) = ssh_ib(:,:) 163 172 ENDIF … … 166 175 IF( lrst_oce ) THEN ! Write in the ocean restart file ! 167 176 ! ! ---------------------------------------- ! 168 IF(lwp) WRITE(numout,*) 169 IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 170 IF(lwp) WRITE(numout,*) '~~~~' 177 IF(lwp .AND. nprint > 0) THEN 178 WRITE(numout,*) 179 WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 180 WRITE(numout,*) '~~~~' 181 IF(lflush) CALL FLUSH(numout) 182 ENDIF 171 183 IF( lwxios ) CALL iom_swap( cwxios_context ) 172 184 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib, ldxios = lwxios ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcblk.F90
r10968 r10986 278 278 CASE( np_ECMWF ) ; WRITE(numout,*) ' ==>>> "ECMWF" algorithm (IFS cycle 31)' 279 279 END SELECT 280 IF(lflush) CALL FLUSH(numout) 280 281 ! 281 282 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbccpl.F90
r10968 r10986 330 330 WRITE(numout,*)' ln_usecplmask = ', ln_usecplmask 331 331 WRITE(numout,*)' nn_cats_cpl = ', nn_cats_cpl 332 IF(lflush) CALL FLUSH(numout) 332 333 ENDIF 333 334 … … 466 467 l_rnfcpl = .TRUE. ! -> no need to read runoffs in sbcrnf 467 468 ln_rnf = nn_components /= jp_iam_sas ! -> force to go through sbcrnf if not sas 468 IF(lwp) WRITE(numout,*) 469 IF(lwp) WRITE(numout,*) ' runoffs received from oasis -> force ln_rnf = ', ln_rnf 469 IF(lwp) THEN 470 WRITE(numout,*) 471 WRITE(numout,*) ' runoffs received from oasis -> force ln_rnf = ', ln_rnf 472 IF(lflush) CALL FLUSH(numout) 473 ENDIF 470 474 ENDIF 471 475 ! … … 476 480 IF( srcv(jpr_isf)%laction .AND. ln_isf ) THEN 477 481 l_isfcpl = .TRUE. ! -> no need to read isf in sbcisf 478 IF(lwp) WRITE(numout,*) 479 IF(lwp) WRITE(numout,*) ' iceshelf received from oasis ' 482 IF(lwp) THEN 483 WRITE(numout,*) 484 WRITE(numout,*) ' iceshelf received from oasis ' 485 IF(lflush) CALL FLUSH(numout) 486 ENDIF 480 487 ENDIF 481 488 ! … … 542 549 srcv(jpr_co2 )%laction = .TRUE. 543 550 l_co2cpl = .TRUE. 544 IF(lwp) WRITE(numout,*) 545 IF(lwp) WRITE(numout,*) ' Atmospheric pco2 received from oasis ' 546 IF(lwp) WRITE(numout,*) 551 IF(lwp) THEN 552 WRITE(numout,*) 553 WRITE(numout,*) ' Atmospheric pco2 received from oasis ' 554 WRITE(numout,*) 555 IF(lflush) CALL FLUSH(numout) 556 ENDIF 547 557 ENDIF 548 558 ! … … 666 676 WRITE(numout,*)' wind stress module' 667 677 WRITE(numout,*) 678 IF(lflush) CALL FLUSH(numout) 668 679 ENDIF 669 680 ENDIF … … 713 724 WRITE(numout,*)' fraction of solar net radiation absorbed in the first ocean level' 714 725 WRITE(numout,*) 726 IF(lflush) CALL FLUSH(numout) 715 727 ENDIF 716 728 ENDIF … … 980 992 WRITE(numout,*)' fraction of solar net radiation absorbed in the first ocean level' 981 993 WRITE(numout,*) 994 IF(lflush) CALL FLUSH(numout) 982 995 ENDIF 983 996 ENDIF … … 1020 1033 WRITE(numout,*)' wind stress U,V components' 1021 1034 WRITE(numout,*)' wind stress module' 1035 IF(lflush) CALL FLUSH(numout) 1022 1036 ENDIF 1023 1037 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcdcy.F90
r10888 r10986 97 97 WRITE(numout,*) '~~~~~~~' 98 98 WRITE(numout,*) 99 IF(lflush) CALL FLUSH(numout) 99 100 ENDIF 100 101 ! allocate sbcdcy arrays -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcflx.F90
r10968 r10986 169 169 WRITE(numout,*) ' day: ', ndastp , TRIM(sf(jf)%clvar), ' * ', zfact 170 170 END DO 171 IF(lflush) CALL FLUSH(numout) 171 172 ENDIF 172 173 ! -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcfwb.F90
r10968 r10986 83 83 IF( kn_fwb == 2 ) WRITE(numout,*) ' adjusted from previous year budget' 84 84 IF( kn_fwb == 3 ) WRITE(numout,*) ' fwf set to zero and spread out over erp area' 85 IF(lflush) CALL FLUSH(numout) 85 86 ENDIF 86 87 ! … … 121 122 fwfold = a_fwb ! current year freshwater budget correction 122 123 ! ! estimate from the previous year budget 123 IF(lwp)WRITE(numout,*) 124 IF(lwp)WRITE(numout,*)'sbc_fwb : year = ',iyear , ' freshwater budget correction = ', fwfold 125 IF(lwp)WRITE(numout,*)' year = ',iyear-1, ' freshwater budget read = ', a_fwb 126 IF(lwp)WRITE(numout,*)' year = ',iyear-2, ' freshwater budget read = ', a_fwb_b 124 IF(lwp) THEN 125 WRITE(numout,*) 126 WRITE(numout,*)'sbc_fwb : year = ',iyear , ' freshwater budget correction = ', fwfold 127 WRITE(numout,*)' year = ',iyear-1, ' freshwater budget read = ', a_fwb 128 WRITE(numout,*)' year = ',iyear-2, ' freshwater budget read = ', a_fwb_b 129 IF(lflush) CALL FLUSH(numout) 130 ENDIF 127 131 ENDIF 128 132 ! ! Update fwfold if new year start … … 200 204 WRITE(numout,*)' MIN(zerp_cor) = ', MINVAL(zerp_cor) 201 205 WRITE(numout,*)' MAX(zerp_cor) = ', MAXVAL(zerp_cor) 206 IF(lflush) CALL FLUSH(numout) 202 207 ENDIF 203 208 ENDIF -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcisf.F90
r10968 r10986 206 206 IF( ln_rstart .AND. & ! Restart: read in restart file 207 207 & iom_varid( numror, 'fwf_isf_b', ldstop = .FALSE. ) > 0 ) THEN 208 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' nit000-1 isf tracer content forcing fields read in the restart file' 208 IF(lwp .AND. nprint > 0) THEN 209 WRITE(numout,*) ' nit000-1 isf tracer content forcing fields read in the restart file' 210 IF(lflush) CALL FLUSH(numout) 211 ENDIF 209 212 CALL iom_get( numror, jpdom_autoglo, 'fwf_isf_b', fwfisf_b(:,:) , ldxios = lrxios ) ! before salt content isf_tsc trend 210 213 CALL iom_get( numror, jpdom_autoglo, 'isf_sc_b' , risf_tsc_b(:,:,jp_sal), ldxios = lrxios ) ! before salt content isf_tsc trend … … 217 220 ! 218 221 IF( lrst_oce ) THEN 219 IF(lwp .AND. nprint > 0) WRITE(numout,*) 220 IF(lwp .AND. nprint > 0) WRITE(numout,*) 'sbc : isf surface tracer content forcing fields written in ocean restart file ', & 222 IF(lwp .AND. nprint > 0) THEN 223 WRITE(numout,*) 224 WRITE(numout,*) 'sbc : isf surface tracer content forcing fields written in ocean restart file ', & 221 225 & 'at it= ', kt,' date= ', ndastp 222 IF(lwp .AND. nprint > 0) WRITE(numout,*) '~~~~' 226 WRITE(numout,*) '~~~~' 227 IF(lflush) CALL FLUSH(numout) 228 ENDIF 223 229 IF( lwxios ) CALL iom_swap( cwxios_context ) 224 230 CALL iom_rstput( kt, nitrst, numrow, 'fwf_isf_b', fwfisf(:,:) , ldxios = lwxios ) … … 285 291 IF(lwm .AND. nprint > 2) WRITE ( numond, namsbc_isf ) 286 292 287 IF(lwp) WRITE(numout,*) 288 IF(lwp) WRITE(numout,*) 'sbc_isf_init : heat flux of the ice shelf' 289 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 290 IF(lwp) WRITE(numout,*) ' Namelist namsbc_isf :' 291 IF(lwp) WRITE(numout,*) ' type ice shelf melting/freezing nn_isf = ', nn_isf 292 IF(lwp) WRITE(numout,*) ' bulk formulation (nn_isf=1 only) nn_isfblk = ', nn_isfblk 293 IF(lwp) WRITE(numout,*) ' thickness of the top boundary layer rn_hisf_tbl = ', rn_hisf_tbl 294 IF(lwp) WRITE(numout,*) ' gamma formulation nn_gammablk = ', nn_gammablk 295 IF(lwp) WRITE(numout,*) ' gammat coefficient rn_gammat0 = ', rn_gammat0 296 IF(lwp) WRITE(numout,*) ' gammas coefficient rn_gammas0 = ', rn_gammas0 297 IF(lwp) WRITE(numout,*) ' top drag coef. used (from namdrg_top) rn_Cd0 = ', r_Cdmin_top 293 IF(lwp) THEN 294 WRITE(numout,*) 295 WRITE(numout,*) 'sbc_isf_init : heat flux of the ice shelf' 296 WRITE(numout,*) '~~~~~~~~~~~~' 297 WRITE(numout,*) ' Namelist namsbc_isf :' 298 WRITE(numout,*) ' type ice shelf melting/freezing nn_isf = ', nn_isf 299 WRITE(numout,*) ' bulk formulation (nn_isf=1 only) nn_isfblk = ', nn_isfblk 300 WRITE(numout,*) ' thickness of the top boundary layer rn_hisf_tbl = ', rn_hisf_tbl 301 WRITE(numout,*) ' gamma formulation nn_gammablk = ', nn_gammablk 302 WRITE(numout,*) ' gammat coefficient rn_gammat0 = ', rn_gammat0 303 WRITE(numout,*) ' gammas coefficient rn_gammas0 = ', rn_gammas0 304 WRITE(numout,*) ' top drag coef. used (from namdrg_top) rn_Cd0 = ', r_Cdmin_top 305 IF(lflush) CALL FLUSH(numout) 306 ENDIF 298 307 299 308 … … 377 386 CALL ctl_stop( 'sbc_isf_init: wrong value of nn_isf' ) 378 387 END SELECT 388 IF(lwp .AND. lflush) CALL FLUSH(numout) 379 389 380 390 rhisf_tbl_0(:,:) = rhisf_tbl(:,:) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcmod.F90
r10968 r10986 105 105 WRITE(numout,*) 'sbc_init : surface boundary condition setting' 106 106 WRITE(numout,*) '~~~~~~~~ ' 107 IF(lflush) CALL FLUSH(numout) 107 108 ENDIF 108 109 ! … … 162 163 WRITE(numout,*) ' Stokes coriolis term ln_stcor = ', ln_stcor 163 164 WRITE(numout,*) ' neutral drag coefficient (CORE,NCAR) ln_cdgw = ', ln_cdgw 165 IF(lflush) CALL FLUSH(numout) 164 166 ENDIF 165 167 ! … … 207 209 CALL ctl_stop( 'sbc_init : unsupported value for nn_components' ) 208 210 END SELECT 211 IF(lwp .AND. lflush) CALL FLUSH(numout) 209 212 ! !* coupled options 210 213 IF( ln_cpl ) THEN … … 287 290 END SELECT 288 291 IF( ll_not_nemo ) WRITE(numout,*) ' + OASIS coupled SAS' 292 IF(lflush) CALL FLUSH(numout) 289 293 ENDIF 290 294 ! … … 303 307 WRITE(numout,*)" OPA-SAS coupled via OASIS : nn_fsbc re-defined from OASIS namcouple ", nn_fsbc 304 308 WRITE(numout,*) 309 IF(lflush) CALL FLUSH(numout) 305 310 ENDIF 306 311 ENDIF … … 495 500 IF( ln_rstart .AND. & !* Restart: read in restart file 496 501 & iom_varid( numror, 'utau_b', ldstop = .FALSE. ) > 0 ) THEN 497 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' nit000-1 surface forcing fields red in the restart file' 502 IF(lwp .AND. nprint > 0) THEN 503 WRITE(numout,*) ' nit000-1 surface forcing fields red in the restart file' 504 IF(lflush) CALL FLUSH(numout) 505 ENDIF 498 506 CALL iom_get( numror, jpdom_autoglo, 'utau_b', utau_b, ldxios = lrxios ) ! before i-stress (U-point) 499 507 CALL iom_get( numror, jpdom_autoglo, 'vtau_b', vtau_b, ldxios = lrxios ) ! before j-stress (V-point) … … 509 517 ENDIF 510 518 ELSE !* no restart: set from nit000 values 511 IF(lwp) WRITE(numout,*) ' nit000-1 surface forcing fields set to nit000' 519 IF(lwp .AND. nprint > 0) THEN 520 WRITE(numout,*) ' nit000-1 surface forcing fields set to nit000' 521 IF(lflush) CALL FLUSH(numout) 522 ENDIF 512 523 utau_b(:,:) = utau(:,:) 513 524 vtau_b(:,:) = vtau(:,:) … … 520 531 IF( lrst_oce ) THEN ! Write in the ocean restart file ! 521 532 ! ! ---------------------------------------- ! 522 IF(lwp .AND. nprint > 0) WRITE(numout,*) 523 IF(lwp .AND. nprint > 0) WRITE(numout,*) 'sbc : ocean surface forcing fields written in ocean restart file ', & 533 IF(lwp .AND. nprint > 0) THEN 534 WRITE(numout,*) 535 WRITE(numout,*) 'sbc : ocean surface forcing fields written in ocean restart file ', & 524 536 & 'at it= ', kt,' date= ', ndastp 525 IF(lwp .AND. nprint > 0) WRITE(numout,*) '~~~~' 537 WRITE(numout,*) '~~~~' 538 IF(lflush) CALL FLUSH(numout) 539 ENDIF 526 540 IF( lwxios ) CALL iom_swap( cwxios_context ) 527 541 CALL iom_rstput( kt, nitrst, numrow, 'utau_b' , utau, ldxios = lwxios ) -
NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/SBC/sbcrnf.F90
r10968 r10986 146 146 IF( ln_rstart .AND. & !* Restart: read in restart file 147 147 & iom_varid( numror, 'rnf_b', ldstop = .FALSE. ) > 0 ) THEN 148 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' nit000-1 runoff forcing fields red in the restart file', lrxios 148 IF(lwp .AND. nprint > 0) THEN 149 WRITE(numout,*) ' nit000-1 runoff forcing fields red in the restart file', lrxios 150 IF(lflush) CALL FLUSH(numout) 151 ENDIF 149 152 CALL iom_get( numror, jpdom_autoglo, 'rnf_b', rnf_b, ldxios = lrxios ) ! before runoff 150 153 CALL iom_get( numror, jpdom_autoglo, 'rnf_hc_b', rnf_tsc_b(:,:,jp_tem), ldxios = lrxios ) ! before heat content of runoff 151 154 CALL iom_get( numror, jpdom_autoglo, 'rnf_sc_b', rnf_tsc_b(:,:,jp_sal), ldxios = lrxios ) ! before salinity content of runoff 152 155 ELSE !* no restart: set from nit000 values 153 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' nit000-1 runoff forcing fields set to nit000' 156 IF(lwp .AND. nprint > 0) THEN 157 WRITE(numout,*) ' nit000-1 runoff forcing fields set to nit000' 158 IF(lflush) CALL FLUSH(numout) 159 ENDIF 154 160 rnf_b (:,: ) = rnf (:,: ) 155 161 rnf_tsc_b(:,:,:) = rnf_tsc(:,:,:) … … 159 165 IF( lrst_oce ) THEN ! Write in the ocean restart file ! 160 166 ! ! ---------------------------------------- ! 161 IF(lwp .AND. nprint > 0) WRITE(numout,*) 162 IF(lwp .AND. nprint > 0) WRITE(numout,*) 'sbcrnf : runoff forcing fields written in ocean restart file ', & 167 IF(lwp .AND. nprint > 0) THEN 168 WRITE(numout,*) 169 WRITE(numout,*) 'sbcrnf : runoff forcing fields written in ocean restart file ', & 163 170 & 'at it= ', kt,' date= ', ndastp 164 IF(lwp .AND. nprint > 0) WRITE(numout,*) '~~~~' 171 WRITE(numout,*) '~~~~' 172 IF(lflush) CALL FLUSH(numout) 173 ENDIF 165 174 IF( lwxios ) CALL iom_swap( cwxios_context ) 166 175 CALL iom_rstput( kt, nitrst, numrow, 'rnf_b' , rnf, ldxios = lwxios ) … … 284 293 WRITE(numout,*) ' depth of river mouth additional mixing rn_hrnf = ', rn_hrnf 285 294 WRITE(numout,*) ' multiplicative factor for runoff rn_rfact = ', rn_rfact 295 IF(lflush) CALL FLUSH(numout) 286 296 ENDIF 287 297 ! ! ================== … … 291 301 IF( .NOT. l_rnfcpl ) THEN 292 302 ALLOCATE( sf_rnf(1), STAT=ierror ) ! Create sf_rnf structure (runoff inflow) 293 IF(lwp) WRITE(numout,*) 294 IF(lwp) WRITE(numout,*) ' ==>>> runoffs inflow read in a file' 303 IF(lwp) THEN 304 WRITE(numout,*) 305 WRITE(numout,*) ' ==>>> runoffs inflow read in a file' 306 IF(lflush) CALL FLUSH(numout) 307 ENDIF 295 308 IF( ierror > 0 ) THEN 296 309 CALL ctl_stop( 'sbc_rnf_init: unable to allocate sf_rnf structure' ) ; RETURN … … 302 315 ! 303 316 IF( ln_rnf_tem ) THEN ! Create (if required) sf_t_rnf structure 304 IF(lwp) WRITE(numout,*) 305 IF(lwp) WRITE(numout,*) ' ==>>> runoffs temperatures read in a file' 317 IF(lwp) THEN 318 WRITE(numout,*) 319 WRITE(numout,*) ' ==>>> runoffs temperatures read in a file' 320 IF(lflush) CALL FLUSH(numout) 321 ENDIF 306 322 ALLOCATE( sf_t_rnf(1), STAT=ierror ) 307 323 IF( ierror > 0 ) THEN … … 314 330 ! 315 331 IF( ln_rnf_sal ) THEN ! Create (if required) sf_s_rnf and sf_t_rnf structures 316 IF(lwp) WRITE(numout,*) 317 IF(lwp) WRITE(numout,*) ' ==>>> runoffs salinities read in a file' 332 IF(lwp) THEN 333 WRITE(numout,*) 334 WRITE(numout,*) ' ==>>> runoffs salinities read in a file' 335 IF(lflush) CALL FLUSH(numout) 336 ENDIF 318 337 ALLOCATE( sf_s_rnf(1), STAT=ierror ) 319 338 IF( ierror > 0 ) THEN … … 326 345 ! 327 346 IF( ln_rnf_depth ) THEN ! depth of runoffs set from a file 328 IF(lwp) WRITE(numout,*) 329 IF(lwp) WRITE(numout,*) ' ==>>> runoffs depth read in a file' 347 IF(lwp) THEN 348 WRITE(numout,*) 349 WRITE(numout,*) ' ==>>> runoffs depth read in a file' 350 IF(lflush) CALL FLUSH(numout) 351 ENDIF 330 352 rn_dep_file = TRIM( cn_dir )//TRIM( sn_dep_rnf%clname ) 331 353 IF( .NOT. sn_dep_rnf%ln_clim ) THEN ; WRITE(rn_dep_file, '(a,"_y",i4)' ) TRIM( rn_dep_file ), nyear ! add year … … 363 385 ELSE IF( ln_rnf_depth_ini ) THEN ! runoffs applied at the surface 364 386 ! 365 IF(lwp) WRITE(numout,*) 366 IF(lwp) WRITE(numout,*) ' ==>>> depth of runoff computed once from max value of runoff' 367 IF(lwp) WRITE(numout,*) ' max value of the runoff climatologie (over global domain) rn_rnf_max = ', rn_rnf_max 368 IF(lwp) WRITE(numout,*) ' depth over which runoffs is spread rn_dep_max = ', rn_dep_max 369 IF(lwp) WRITE(numout,*) ' create (=1) a runoff depth file or not (=0) nn_rnf_depth_file = ', nn_rnf_depth_file 387 IF(lwp) THEN 388 WRITE(numout,*) 389 WRITE(numout,*) ' ==>>> depth of runoff computed once from max value of runoff' 390 WRITE(numout,*) ' max value of the runoff climatologie (over global domain) rn_rnf_max = ', rn_rnf_max 391 WRITE(numout,*) ' depth over which runoffs is spread rn_dep_max = ', rn_dep_max 392 WRITE(numout,*) ' create (=1) a runoff depth file or not (=0) nn_rnf_depth_file = ', nn_rnf_depth_file 393 IF(lflush) CALL FLUSH(numout) 394 ENDIF 370 395 371 396 CALL iom_open( TRIM( sn_rnf%clname ), inum ) ! open runoff file … … 417 442 ! 418 443 IF( nn_rnf_depth_file == 1 ) THEN ! save output nb levels for runoff 419 IF(lwp) WRITE(numout,*) ' ==>>> create runoff depht file' 444 IF(lwp) THEN 445 WRITE(numout,*) ' ==>>> create runoff depht file' 446 IF(lflush) CALL FLUSH(numout) 447 ENDIF 420 448 CALL iom_open ( TRIM( sn_dep_rnf%clname ), inum, ldwrt = .TRUE. ) 421 449 CALL iom_rstput( 0, 0, inum, 'rodepth', h_rnf ) … … 449 477 IF( ln_sco ) CALL ctl_warn( 'sbc_rnf_init: number of levels over which Kz is increased is computed for zco...' ) 450 478 ENDIF 451 IF(lwp) WRITE(numout,*) 452 IF(lwp) WRITE(numout,*) ' ==>>> Specific treatment used in vicinity of river mouths :' 453 IF(lwp) WRITE(numout,*) ' - Increase Kz in surface layers (if rn_hrnf > 0 )' 454 IF(lwp) WRITE(numout,*) ' by ', rn_avt_rnf,' m2/s over ', nkrnf, ' w-levels' 455 IF(lwp) WRITE(numout,*) ' - set to zero SSS damping (if ln_ssr=T)' 456 IF(lwp) WRITE(numout,*) ' - mixed upstream-centered (if ln_traadv_cen2=T)' 479 IF(lwp) THEN 480 WRITE(numout,*) 481 WRITE(numout,*) ' ==>>> Specific treatment used in vicinity of river mouths :' 482 WRITE(numout,*) ' - Increase Kz in surface layers (if rn_hrnf > 0 )' 483 WRITE(numout,*) ' by ', rn_avt_rnf,' m2/s over ', nkrnf, ' w-levels' 484 WRITE(numout,*) ' - set to zero SSS damping (if ln_ssr=T)' 485 WRITE(numout,*) ' - mixed upstream-centered (if ln_traadv_cen2=T)' 486 IF(lflush) CALL FLUSH(numout) 487 ENDIF 457 488 ! 458 489 CALL rnf_mouth ! set river mouth mask 459 490 ! 460 491 ELSE ! No treatment at river mouths 461 IF(lwp) WRITE(numout,*) 462 IF(lwp) WRITE(numout,*) ' ==>>> No specific treatment at river mouths' 492 IF(lwp) THEN 493 WRITE(numout,*) 494 WRITE(numout,*) ' ==>>> No specific treatment at river mouths' 495 IF(lflush) CALL FLUSH(numout) 496 ENDIF 463 497 rnfmsk (:,:) = 0._wp 464 498 rnfmsk_z(:) = 0._wp … … 499 533 !!---------------------------------------------------------------------- 500 534 ! 501 IF(lwp) WRITE(numout,*) 502 IF(lwp) WRITE(numout,*) ' rnf_mouth : river mouth mask'