Changeset 10774
- Timestamp:
- 2019-03-19T12:32:19+01:00 (6 years ago)
- Location:
- branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM
- Files:
-
- 132 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/CONFIG/SHARED/namelist_ref
r10746 r10774 1092 1092 sn_cfctl%procincr = 1 ! Increment for optional subsetting of areas [default:1] 1093 1093 sn_cfctl%ptimincr = 1 ! Timestep increment for writing time step progress info/solver.stat file 1094 nn_print = 0 ! level of print (0 no extra print) 1095 nn_ictls = 0 ! start i indice of control sum (use to compare mono versus 1096 nn_ictle = 0 ! end i indice of control sum multi processor runs 1097 nn_jctls = 0 ! start j indice of control over a subdomain) 1098 nn_jctle = 0 ! end j indice of control 1099 nn_isplt = 1 ! number of processors in i-direction 1100 nn_jsplt = 1 ! number of processors in j-direction 1101 nn_bench = 0 ! Bench mode (1/0): CAUTION use zero except for bench 1102 ! (no physical validity of the results) 1103 nn_timing = 0 ! timing by routine activated (=1) creates timing.output file, or not (=0) 1094 nn_print = 0 ! level of print (0 no extra print) 1095 ln_flush = .FALSE. ! flust numout after each print 1096 nn_ictls = 0 ! start i indice of control sum (use to compare mono versus 1097 nn_ictle = 0 ! end i indice of control sum multi processor runs 1098 nn_jctls = 0 ! start j indice of control over a subdomain) 1099 nn_jctle = 0 ! end j indice of control 1100 nn_isplt = 1 ! number of processors in i-direction 1101 nn_jsplt = 1 ! number of processors in j-direction 1102 nn_bench = 0 ! Bench mode (1/0): CAUTION use zero except for bench 1103 ! (no physical validity of the results) 1104 nn_timing = 0 ! timing by routine activated (=1) creates timing.output file, or not (=0) 1104 1105 / 1105 1106 !----------------------------------------------------------------------- -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ASM/asmbgc.F90
r10477 r10774 767 767 & TRIM( c_asmbal ) // ' at timestep = ', kt 768 768 ENDIF 769 770 IF(lwp .AND. lflush) CALL flush(numout) 769 771 770 772 END SUBROUTINE asm_bgc_bal_wri … … 1140 1142 ENDIF 1141 1143 ! 1144 IF(lwp .AND. lflush) CALL flush(numout) 1142 1145 END SUBROUTINE phyto2d_asm_inc 1143 1146 … … 1327 1330 ENDIF 1328 1331 ! 1332 IF(lwp .AND. lflush) CALL flush(numout) 1329 1333 END SUBROUTINE phyto3d_asm_inc 1330 1334 … … 1598 1602 ENDIF 1599 1603 ! 1604 IF(lwp .AND. lflush) CALL flush(numout) 1600 1605 END SUBROUTINE pco2_asm_inc 1601 1606 … … 1821 1826 #endif 1822 1827 ! 1828 IF(lwp .AND. lflush) CALL flush(numout) 1829 1823 1830 END SUBROUTINE ph_asm_inc 1824 1831 … … 2186 2193 ENDIF 2187 2194 ! 2195 IF(lwp .AND. lflush) CALL flush(numout) 2188 2196 END SUBROUTINE bgc3d_asm_inc 2189 2197 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90
r10149 r10774 183 183 ENDIF 184 184 ! 185 IF(lwp .AND. lflush) CALL flush(numout) 185 186 END SUBROUTINE asm_bkg_wri 186 187 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90
r10759 r10774 207 207 WRITE(numout,*) ' Choice of MLD for BGC assimilation mld_choice_bgc = ', mld_choice_bgc 208 208 WRITE(numout,*) ' Maximum absolute chlorophyll increment (<=0 = off) rn_maxchlinc = ', rn_maxchlinc 209 IF(lflush) CALL flush(numout) 209 210 ENDIF 210 211 … … 242 243 WRITE(numout,*) ' iitiaustr_date = ', iitiaustr_date 243 244 WRITE(numout,*) ' iitiaufin_date = ', iitiaufin_date 245 IF(lflush) CALL flush(numout) 244 246 ENDIF 245 247 … … 369 371 WRITE(numout,*) ' Time-integrated weight = ', ztotwgt 370 372 WRITE(numout,*) ' ===================================' 373 IF(lflush) CALL flush(numout) 371 374 ENDIF 372 375 … … 590 593 ENDIF 591 594 ! 595 IF(lflush) CALL flush(numout) 596 592 597 END SUBROUTINE asm_inc_init 593 598 … … 735 740 WRITE(numout,*) 'tra_asm_inc : Tracer IAU at time step = ', kt,' with IAU weight = ', wgtiau(it) 736 741 WRITE(numout,*) '~~~~~~~~~~~~' 742 IF(lflush) CALL flush(numout) 737 743 ENDIF 738 744 … … 864 870 & kt,' with IAU weight = ', wgtiau(it) 865 871 WRITE(numout,*) '~~~~~~~~~~~~' 872 IF(lflush) CALL flush(numout) 866 873 ENDIF 867 874 … … 940 947 & kt,' with IAU weight = ', wgtiau(it) 941 948 WRITE(numout,*) '~~~~~~~~~~~~' 949 IF(lflush) CALL flush(numout) 942 950 ENDIF 943 951 … … 1030 1038 & kt,' with IAU weight = ', wgtiau(it) 1031 1039 WRITE(numout,*) '~~~~~~~~~~~~' 1040 IF(lflush) CALL flush(numout) 1032 1041 ENDIF 1033 1042 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ASM/bias.F90
r10759 r10774 320 320 321 321 WRITE(numout,*) ' time step is = ',rdt,'you choose to write pcbias at nn_bias_itwrt = ',nn_bias_itwrt,'and end of iau is rday/rdt=',rday/rdt 322 IF(lflush) call flush(numout) 322 323 ENDIF 323 324 IF( .NOT. ln_bias ) RETURN … … 561 562 ENDWHERE 562 563 ENDIF 563 564 565 IF(lwp .AND. lflush) call flush(numout) 564 566 565 567 END SUBROUTINE bias_init … … 895 897 ENDIF 896 898 ENDIF 897 899 IF(lwp .AND. lflush) call flush(numout) 898 900 END SUBROUTINE tra_bias 899 901 … … 971 973 & rhd_pc, gru_pc , grv_pc ) 972 974 ENDIF 975 976 IF(lwp .AND. lflush) call flush(numout) 973 977 974 978 END SUBROUTINE dyn_bias … … 1005 1009 ENDIF 1006 1010 ! 1011 IF(lwp .AND. lflush) call flush(numout) 1012 1007 1013 END SUBROUTINE bias_opn 1008 1014 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/BDY/bdydta.F90
r10759 r10774 894 894 ENDDO ! ib_bdy 895 895 896 IF(lwp .AND. lflush) CALL flush(numout) 897 896 898 IF( nn_timing == 1 ) CALL timing_stop('bdy_dta_init') 897 899 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/BDY/bdyini.F90
r10759 r10774 110 110 IF( nn_timing == 1 ) CALL timing_start('bdy_init') 111 111 112 IF(lwp) WRITE(numout,*) 113 IF(lwp) WRITE(numout,*) 'bdy_init : initialization of open boundaries' 114 IF(lwp) WRITE(numout,*) '~~~~~~~~' 112 IF(lwp) THEN 113 WRITE(numout,*) 114 WRITE(numout,*) 'bdy_init : initialization of open boundaries' 115 WRITE(numout,*) '~~~~~~~~' 116 IF(lflush) CALL flush(numout) 117 ENDIF 115 118 ! 116 119 … … 1348 1351 ENDIF 1349 1352 1353 IF(lwp .AND. lflush) CALL flush(numout) 1354 1350 1355 CALL wrk_dealloc(jpi,jpj,zfmask) 1351 1356 … … 1722 1727 IF ((itest==0).AND.(lwp)) WRITE(numout,*) 'NO open boundary corner found' 1723 1728 ! 1729 IF(lwp. AND. lflush) CALL flush(numout) 1730 ! 1724 1731 ! Other tests TBD: 1725 1732 ! segments completly on land … … 1757 1764 IF(lwp) WRITE(numout,*) ' ========== have different open bdy schemes' 1758 1765 IF(lwp) WRITE(numout,*) 1766 IF(lflush) CALL flush(numout) 1759 1767 nstop = nstop + 1 1760 1768 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/BDY/bdytides.F90
r10759 r10774 99 99 IF(lwp) WRITE(numout,*) 'bdytide_init : initialization of tidal harmonic forcing at open boundaries' 100 100 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 101 IF(lflush) CALL flush(numout) 101 102 ENDIF 102 103 … … 120 121 IF(lwm .AND. nprint > 2) WRITE ( numond, nambdy_tide ) 121 122 ! ! Parameter control and print 122 IF(lwp) WRITE(numout,*) ' '123 IF(lwp) WRITE(numout,*) ' Namelist nambdy_tide : tidal harmonic forcing at open boundaries'124 IF(lwp) WRITE(numout,*) ' read tidal data in 2d files: ', ln_bdytide_2ddta125 IF(lwp) WRITE(numout,*) ' assume complex conjugate : ', ln_bdytide_conj126 IF(lwp) WRITE(numout,*) ' Number of tidal components to read: ', nb_harmo127 IF(lwp) THEN128 123 IF(lwp) THEN 124 WRITE(numout,*) ' ' 125 WRITE(numout,*) ' Namelist nambdy_tide : tidal harmonic forcing at open boundaries' 126 WRITE(numout,*) ' read tidal data in 2d files: ', ln_bdytide_2ddta 127 WRITE(numout,*) ' assume complex conjugate : ', ln_bdytide_conj 128 WRITE(numout,*) ' Number of tidal components to read: ', nb_harmo 129 WRITE(numout,*) ' Tidal components: ' 129 130 DO itide = 1, nb_harmo 130 131 WRITE(numout,*) ' ', Wave(ntide(itide))%cname_tide 131 132 END DO 132 ENDIF 133 IF(lwp) WRITE(numout,*) ' ' 133 WRITE(numout,*) ' ' 134 IF(lflush) CALL flush(numout) 135 ENDIF 134 136 135 137 ! Allocate space for tidal harmonics data - get size from OBC data arrays … … 333 335 WRITE(numout,*) 'bdytide_update : (re)Initialization of the tidal bdy forcing at kt=',kt 334 336 WRITE(numout,*) '~~~~~~~~~~~~~~ ' 337 IF(lflush) CALL flush(numout) 335 338 ENDIF 336 339 ! … … 448 451 WRITE(numout,*) 'bdy_tide_dta : Refresh nodal factors for tidal open bdy data at kt=',kt 449 452 WRITE(numout,*) '~~~~~~~~~~~~~~ ' 453 IF(lflush) CALL flush(numout) 450 454 ENDIF 451 455 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/BDY/bdyvol.F90
r9583 r10774 87 87 IF(lwp) WRITE(numout,*)'bdy_vol : Correction of velocities along unstructured OBC' 88 88 IF(lwp) WRITE(numout,*)'~~~~~~~' 89 IF(lflush) CALL flush(numout) 89 90 END IF 90 91 … … 164 165 IF(lwp) WRITE(numout,*)' correction velocity zubtpecor =', zubtpecor , '(m/s)' 165 166 IF(lwp) WRITE(numout,*)' cumulated transport ztranst =', ztranst , '(m3/s)' 167 IF(lflush) CALL flush(numout) 166 168 END IF 167 169 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/C1D/dyndmp.F90
r10759 r10774 100 100 WRITE(numout,*) ' Damping file name cn_resto = ', cn_resto 101 101 WRITE(numout,*) 102 IF(lflush) CALL flush(numout) 102 103 ENDIF 103 104 … … 128 129 CALL iom_close( imask ) 129 130 ENDIF 131 ! 132 IF(lwp .AND. lflush) CALL flush(numout) 130 133 ! 131 134 END SUBROUTINE dyn_dmp_init -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diadct.F90
r10759 r10774 185 185 transports_3d(:,:,:,:)=0.0 186 186 transports_2d(:,:,:) =0.0 187 187 ! 188 IF(lwp .AND. lflush) CALL flush(numout) 189 ! 188 190 IF( nn_timing == 1 ) CALL timing_stop('dia_dct_init') 189 191 ! … … 301 303 CALL wrk_dealloc( nb_sec_max,nb_type_class,nb_class_max , zsum ) 302 304 ENDIF 303 305 ! 306 IF(lwp .AND. lflush) CALL flush(numout) 307 ! 304 308 IF( nn_timing == 1 ) CALL timing_stop('dia_dct') 305 309 ! … … 503 507 504 508 nb_sec = jsec-1 !number of section read in the file 505 509 ! 510 IF(lwp .AND. lflush) CALL flush(numout) 511 506 512 CALL wrk_dealloc( nb_point_max, directemp ) 507 513 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diaharm.F90
r10759 r10774 160 160 ALLOCATE( ana_temp(jpi,jpj,2*nb_ana,3) ) 161 161 ana_temp(:,:,:,:) = 0._wp 162 163 IF(lwp .AND. lflush) CALL flush(numout) 162 164 163 165 END SUBROUTINE dia_harm_init … … 231 233 CALL wrk_alloc( jpi , jpj , jpmax_harmo , 2 , ana_amp ) 232 234 233 IF(lwp) WRITE(numout,*) 234 IF(lwp) WRITE(numout,*) 'anharmo_end: kt=nitend_han: Perform harmonic analysis' 235 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 235 IF(lwp) THEN 236 WRITE(numout,*) 237 WRITE(numout,*) 'anharmo_end: kt=nitend_han: Perform harmonic analysis' 238 WRITE(numout,*) '~~~~~~~~~~~~' 239 IF(lflush) CALL flush(numout) 240 ENDIF 236 241 237 242 ztime_ini = nit000_han*rdt ! Initial time in seconds at the beginning of analysis … … 400 405 #endif 401 406 IF(lwp) WRITE(numout,*) ' ' 407 IF(lwp .AND. lflush) CALL flush(numout) 402 408 403 409 ! A) Elevation -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diahth.F90
r9583 r10774 131 131 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 132 132 IF(lwp) WRITE(numout,*) 133 IF(lwp .AND. lflush) CALL flush(numout) 133 134 ENDIF 134 135 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diaptr.F90
r10759 r10774 478 478 WRITE(numout,*) ' Poleward heat & salt transport (T) or not (F) ln_diaptr = ', ln_diaptr 479 479 WRITE(numout,*) ' Global (F) or glo/Atl/Pac/Ind/Indo-Pac basins ln_subbas = ', ln_subbas 480 IF(lflush) CALL flush(numout) 480 481 ENDIF 481 482 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90
r10020 r10774 462 462 INTEGER, INTENT( in ) :: kt ! ocean time-step index 463 463 !! 464 LOGICAL :: ll_print = .FALSE. ! =T print and flush numout465 464 CHARACTER (len=40) :: clhstnam, clop, clmx ! local names 466 465 INTEGER :: inum = 11 ! temporary logical unit … … 489 488 ! ----------------- 490 489 491 ! local variable for debugging492 ll_print = .FALSE.493 ll_print = ll_print .AND. lwp494 495 490 ! Define frequency of output and means 496 491 zdt = rdt … … 532 527 IF(lwp)WRITE(numout,*) ' indexes of zoom = ', iimi, iima, ijmi, ijma, & 533 528 ' limit storage in depth = ', ipk 534 529 535 530 ! WRITE root name in date.file for use by postpro 536 531 IF(lwp) THEN … … 808 803 IF(lwp) WRITE(numout,*) 809 804 IF(lwp) WRITE(numout,*) 'End of NetCDF Initialization' 810 IF(l l_print) CALL FLUSH(numout)805 IF(lwp .AND. lflush) CALL flush(numout) 811 806 812 807 ENDIF … … 987 982 ! 988 983 IF( nn_timing == 1 ) CALL timing_stop('dia_wri') 984 ! 985 IF(lwp .AND. lflush) CALL flush(numout) 989 986 ! 990 987 END SUBROUTINE dia_wri -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/closea.F90
r6491 r10774 78 78 IF(lwp) WRITE(numout,*)'dom_clo : closed seas ' 79 79 IF(lwp) WRITE(numout,*)'~~~~~~~' 80 IF(lwp .AND. lflush) CALL flush(numout) 80 81 81 82 ! initial values … … 403 404 CALL lbc_lnk( emp , 'T', 1._wp ) 404 405 ! 406 IF(lwp .AND. lflush) CALL flush(numout) 407 ! 405 408 IF( nn_timing == 1 ) CALL timing_stop('sbc_clo') 406 409 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90
r10770 r10774 130 130 IF(lwp) WRITE(numout,'(a,i6,a,i2,a,i2,a,i8,a,i8)')' =======>> 1/2 time step before the start of the run DATE Y/M/D = ', & 131 131 & nyear, '/', nmonth, '/', nday, ' nsec_day:', nsec_day, ' nsec_week:', nsec_week 132 IF(lwp .AND. lflush) CALL flush(numout) 132 133 133 134 ! Up to now, calendar parameters are related to the end of previous run (nit000-1) … … 253 254 CALL ymds2ju( nyear, 01, 01, 0.0, fjulstartyear ) 254 255 ! 255 IF(lwp .AND. nprint > 0) WRITE(numout,'(a,i8,a,i4.4,a,i2.2,a,i2.2,a,i3.3)') '======>> time-step =', kt, & 256 IF(lwp .AND. nprint > 0) THEN 257 WRITE(numout,'(a,i8,a,i4.4,a,i2.2,a,i2.2,a,i3.3)') '======>> time-step =', kt, & 256 258 & ' New day, DATE Y/M/D = ', nyear, '/', nmonth, '/', nday, ' nday_year = ', nday_year 257 IF(lwp .AND. nprint > 0)WRITE(numout,'(a,i8,a,i7,a,i5)') ' nsec_year = ', nsec_year, &259 WRITE(numout,'(a,i8,a,i7,a,i5)') ' nsec_year = ', nsec_year, & 258 260 & ' nsec_month = ', nsec_month, ' nsec_day = ', nsec_day, ' nsec_week = ', nsec_week 261 IF(lflush) CALL flush(numout) 262 ENDIF 259 263 ENDIF 260 264 … … 321 325 CASE ( 2 ) ; WRITE(numout,*) ' nrstdt = 2 : calendar parameters read in restart' 322 326 END SELECT 323 WRITE(numout,*) 327 WRITE(numout,*) ' ' 328 IF(lflush) CALL flush(numout) 324 329 ENDIF 325 330 ! Control of date … … 353 358 WRITE(numout,*) ' number of elapsed days since the begining of run : ', adatrj 354 359 WRITE(numout,*) 360 IF(lflush) CALL flush(numout) 355 361 ENDIF 356 362 ! … … 361 367 WRITE(numout,*) 'rst_write : write oce restart file kt =', kt 362 368 WRITE(numout,*) '~~~~~~~' 369 IF(lflush) CALL flush(numout) 363 370 ENDIF 364 371 ! calendar control -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90
r10759 r10774 79 79 WRITE(numout,*) 'dom_init : domain initialization' 80 80 WRITE(numout,*) '~~~~~~~~' 81 IF(lflush) CALL flush(numout) 81 82 ENDIF 82 83 ! … … 193 194 WRITE(numout,*) ' overwrite an existing file ln_clobber = ', ln_clobber 194 195 WRITE(numout,*) ' NetCDF chunksize (bytes) nn_chunksz = ', nn_chunksz 196 IF(lflush) CALL flush(numout) 195 197 ENDIF 196 198 … … 293 295 WRITE(numout,*) ' ppkth2 = ', ppkth2 294 296 WRITE(numout,*) ' ppacr2 = ', ppacr2 297 IF(lflush) CALL flush(numout) 295 298 ENDIF 296 299 … … 319 322 WRITE(numout,*) ' Namelist namcla' 320 323 WRITE(numout,*) ' cross land advection nn_cla = ', nn_cla 324 IF(lflush) CALL flush(numout) 321 325 ENDIF 322 326 IF ( nn_cla .EQ. 1 ) THEN … … 346 350 WRITE(numout,*) ' number of chunks in k-dimension nn_nchunks_k = ', nn_nchunks_k 347 351 WRITE(numout,*) ' apply netcdf4/hdf5 chunking & compression ln_nc4zip = ', ln_nc4zip 352 IF(lflush) CALL flush(numout) 348 353 ENDIF 349 354 … … 406 411 WRITE(numout,"(14x,'e2t maxi: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2max, iima2, ijma2 407 412 WRITE(numout,"(14x,'e2t mini: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2min, iimi2, ijmi2 413 IF(lflush) CALL flush(numout) 408 414 ENDIF 409 415 ! … … 467 473 WRITE(numout,*) 'dom_stiff : maximum grid stiffness ratio: ', zrxmax 468 474 WRITE(numout,*) '~~~~~~~~~' 475 IF(lflush) CALL flush(numout) 469 476 ENDIF 470 477 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domcfg.F90
r10770 r10774 56 56 IF( jperio == 5 ) WRITE(numout,*) ' jperio= 5, north fold with F-point pivot' 57 57 IF( jperio == 6 ) WRITE(numout,*) ' jperio= 6, cyclic east-west and north fold with F-point pivot' 58 IF(lflush) CALL flush(numout) 58 59 ENDIF 59 60 ! … … 136 137 WRITE(numout,*) ' ending index' 137 138 WRITE(numout,25) (mj1(jj),jj = 1,jpjdta) 139 IF(lflush) CALL flush(numout) 138 140 ENDIF 139 141 25 FORMAT( 100(10x,19i4,/) ) … … 195 197 ENDIF 196 198 ! 199 IF(lwp .AND. lflush) CALL flush(numout) 200 ! 197 201 END SUBROUTINE dom_glo 198 202 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domhgr.F90
r10754 r10774 600 600 ENDIF 601 601 ! 602 IF(lwp .AND. lflush) CALL flush(numout) 603 ! 602 604 IF( nn_timing == 1 ) CALL timing_stop('dom_hgr') 603 605 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90
r10759 r10774 562 562 CALL wrk_dealloc( jpi, jpj, zwf ) 563 563 ! 564 IF(lwp .AND. lflush) CALL flush(numout) 565 ! 564 566 IF( nn_timing == 1 ) CALL timing_stop('dom_msk') 565 567 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domstp.F90
r6486 r10774 105 105 106 106 END SELECT 107 108 IF(lwp .AND. lflush) CALL flush(numout) 107 109 108 110 END SUBROUTINE dom_stp -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90
r10770 r10774 133 133 IF(lwp) WRITE(numout,*) 'dom_vvl_init : Variable volume activated' 134 134 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 135 IF(lwp .AND. lflush) CALL flush(numout) 135 136 136 137 ! choose vertical coordinate (z_star, z_tilde or layer) … … 292 293 IF(lwp) WRITE(numout,*) 'dom_vvl_sf_nxt : compute after scale factors' 293 294 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~' 295 IF(lflush) CALL flush(numout) 294 296 ENDIF 295 297 … … 525 527 IF( lk_mpp ) CALL mpp_max( z_tmax ) ! max over the global domain 526 528 IF( lwp ) WRITE(numout, *) kt,' MAXVAL(abs(ssha))) =', z_tmax 529 IF(lflush) CALL flush(numout) 527 530 END IF 528 531 … … 593 596 IF(lwp) WRITE(numout,*) 'dom_vvl_sf_swp : - time filter and swap of scale factors' 594 597 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~ - interpolate scale factors and compute depths for next time step' 598 IF(lflush) CALL flush(numout) 595 599 ENDIF 596 600 … … 866 870 neuler = 0 867 871 ENDIF 872 ! 873 IF(lwp .AND. lflush) CALL flush(numout) 868 874 ! ! ----------- ! 869 875 IF( ln_vvl_zstar ) THEN ! z_star case ! … … 1008 1014 ! IF( ln_vvl_kepe ) WRITE(numout,*) ' kinetic to potential energy transfer : option used' 1009 1015 ! IF( .NOT. ln_vvl_kepe ) WRITE(numout,*) ' kinetic to potential energy transfer : option not used' 1016 IF(lflush) CALL flush(numout) 1010 1017 ENDIF 1011 1018 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domwri.F90
r9830 r10774 90 90 IF(lwp) WRITE(numout,*) 'dom_wri : create NetCDF mesh and mask information file(s)' 91 91 IF(lwp) WRITE(numout,*) '~~~~~~~' 92 IF(lwp .AND. lflush) CALL flush(numout) 92 93 93 94 clnam0 = 'mesh_mask' ! filename (mesh and mask informations) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90
r10759 r10774 170 170 & ' w ', MAXVAL( e3w_0(:,:,:) ) 171 171 ENDIF 172 ! 173 IF(lwp .AND. lflush) CALL flush(numout) 172 174 ! 173 175 IF( nn_timing == 1 ) CALL timing_stop('dom_zgr') … … 265 267 ENDIF 266 268 ENDIF 269 IF(lflush) CALL flush(numout) 267 270 ENDIF 268 271 … … 338 341 WRITE(numout, "(9x,' level gdept_1d gdepw_1d e3t_1d e3w_1d ')" ) 339 342 WRITE(numout, "(10x, i4, 4f9.2)" ) ( jk, gdept_1d(jk), gdepw_1d(jk), e3t_1d(jk), e3w_1d(jk), jk = 1, jpk ) 343 IF(lflush) CALL flush(numout) 340 344 ENDIF 341 345 DO jk = 1, jpk ! control positivity … … 598 602 ENDIF 599 603 ! 604 IF(lwp .AND. lflush) CALL flush(numout) 605 ! 600 606 IF( nn_timing == 1 ) CALL timing_stop('zgr_bat') 601 607 ! … … 651 657 ! 652 658 ENDIF 659 ! 660 IF(lwp .AND. lflush) CALL flush(numout) 653 661 ! 654 662 END SUBROUTINE zgr_bat_zoom … … 789 797 CALL wrk_dealloc( jpi, jpj, zbathy ) 790 798 ! 799 IF(lwp .AND. lflush) CALL flush(numout) 800 ! 791 801 IF( nn_timing == 1 ) CALL timing_stop('zgr_bat_ctl') 792 802 ! … … 818 828 IF(lwp) WRITE(numout,*) ' zgr_bot_level : ocean bottom k-index of T-, U-, V- and W-levels ' 819 829 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~' 830 IF(lwp .AND. lflush) CALL flush(numout) 820 831 ! 821 832 mbkt(:,:) = MAX( mbathy(:,:) , 1 ) ! bottom k-index of T-level (=1 over land) … … 862 873 IF(lwp) WRITE(numout,*) ' zgr_top_level : ocean top k-index of T-, U-, V- and W-levels ' 863 874 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~' 875 IF(lwp .AND. lflush) CALL flush(numout) 864 876 ! 865 877 mikt(:,:) = MAX( misfdep(:,:) , 1 ) ! top k-index of T-level (=1) … … 1246 1258 WRITE(numout,*) 1247 1259 WRITE(numout,*) 'domzgr gdep3w(mbathy)' ; CALL prihre(zprt(:,:,6),jpi,jpj,1,jpi,1,1,jpj,1,1.e-3,numout) 1260 IF(lflush) CALL flush(numout) 1248 1261 ENDIF 1249 1262 ! … … 1273 1286 INTEGER :: id, jd, nprocd 1274 1287 INTEGER :: icompt, ibtest, ibtestim1, ibtestip1, ibtestjm1, ibtestjp1 ! (ISF) 1275 LOGICAL :: ll_print ! Allow control print for debugging1276 1288 REAL(wp) :: ze3tp , ze3wp ! Last ocean level thickness at T- and W-points 1277 1289 REAL(wp) :: zdepwp, zdepth ! Ajusted ocean depth to avoid too small e3t … … 1753 1765 ENDIF 1754 1766 1767 IF(lwp .AND. lflush) CALL flush(numout) 1768 1755 1769 CALL wrk_dealloc( jpi, jpj, zmask, zbathy, zrisfdep ) 1756 1770 CALL wrk_dealloc( jpi, jpj, zmisfdep, zmbathy ) … … 1855 1869 WRITE(numout,*) ' Offset for Zb rn_zb_b = ',rn_zb_b 1856 1870 WRITE(numout,*) ' Bottom cell (Zb) (m) = H*rn_zb_a + rn_zb_b' 1871 IF(lflush) CALL flush(numout) 1857 1872 ENDIF 1858 1873 … … 2236 2251 END DO 2237 2252 ! 2253 IF(lwp .AND. lflush) CALL flush(numout) 2254 ! 2238 2255 CALL wrk_dealloc( jpi, jpj, zenv, ztmp, zmsk, zri, zrj, zhbat , ztmpi1, ztmpi2, ztmpj1, ztmpj2 ) 2239 2256 ! … … 2547 2564 END DO 2548 2565 2566 IF(lwp .AND. lflush) CALL flush(numout) 2567 2549 2568 CALL wrk_dealloc( jpk, z_gsigw, z_gsigt, z_gsi3w ) 2550 2569 CALL wrk_dealloc( jpk, z_esigt, z_esigw ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/dtatsd.F90
r10770 r10774 93 93 WRITE(numout,*) ' T & S data not used' 94 94 ENDIF 95 IF(lflush) CALL flush(numout) 95 96 ENDIF 96 97 ! … … 216 217 WRITE(numout,*) 217 218 WRITE(numout,*) 'dta_tsd: interpolates T & S data onto the s- or mixed s-z-coordinate mesh' 219 IF(lflush) CALL flush(numout) 218 220 ENDIF 219 221 ! … … 294 296 CALL prihre( ptsd(:,:,jpkm1,jp_sal), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 295 297 WRITE(numout,*) 298 IF(lflush) CALL flush(numout) 296 299 ENDIF 297 300 ! … … 299 302 ! (data used only for initialisation) 300 303 IF(lwp) WRITE(numout,*) 'dta_tsd: deallocte T & S arrays as they are only use to initialize the run' 304 IF(lwp .AND. lflush) CALL flush(numout) 301 305 DEALLOCATE( sf_tsd(jp_tem)%fnow ) ! T arrays in the structure 302 306 IF( sf_tsd(jp_tem)%ln_tint ) DEALLOCATE( sf_tsd(jp_tem)%fdta ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/istate.F90
r6486 r10774 79 79 IF(lwp) WRITE(numout,*) 'istate_ini : Initialization of the dynamics and tracers' 80 80 IF(lwp) WRITE(numout,*) '~~~~~~~~~~' 81 IF(lwp .AND. lflush) CALL flush(numout) 81 82 82 83 CALL dta_tsd_init ! Initialisation of T & S input data … … 209 210 IF(lwp) WRITE(numout,*) 'istate_t_s : Philander s initial temperature profile' 210 211 IF(lwp) WRITE(numout,*) '~~~~~~~~~~ and constant salinity (',zsal,' psu)' 212 IF(lwp .AND. lflush) CALL flush(numout) 211 213 ! 212 214 DO jk = 1, jpk … … 359 361 ! 360 362 END SELECT 363 ! 364 IF(lwp .AND. lflush) CALL flush(numout) 361 365 ! 362 366 END SUBROUTINE istate_eel … … 443 447 ENDIF 444 448 ! 449 IF(lwp .AND. lflush) CALL flush(numout) 450 ! 445 451 END SUBROUTINE istate_gyre 446 452 … … 566 572 CALL wrk_dealloc( jpi, jpj, jpk, zprn) 567 573 ! 574 IF(lwp .AND. lflush) CALL flush(numout) 575 ! 568 576 END SUBROUTINE istate_uvg 569 577 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DOM/phycst.F90
r6488 r10774 207 207 WRITE(numout,*) 208 208 WRITE(numout,*) ' smallest real computer value rsmall = ', rsmall 209 IF(lflush) CALL flush(numout) 209 210 ENDIF 210 211 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/divcur.F90
r6487 r10774 104 104 IF(lwp) WRITE(numout,*) 'div_cur : horizontal velocity divergence and relative vorticity' 105 105 IF(lwp) WRITE(numout,*) '~~~~~~~ NOT optimal for auto-tasking case' 106 IF(lwp .AND. lflush) CALL flush(numout) 106 107 ENDIF 107 108 … … 285 286 IF(lwp) WRITE(numout,*) 'div_cur : horizontal velocity divergence and' 286 287 IF(lwp) WRITE(numout,*) '~~~~~~~ relative vorticity' 288 IF(lwp .AND. lflush) CALL flush(numout) 287 289 ENDIF 288 290 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynadv.F90
r10759 r10774 152 152 IF( nadv == 3 ) WRITE(numout,*) ' flux form : UBS scheme is used' 153 153 IF( nadv == -1 ) WRITE(numout,*) ' esopa test: use all advection formulation' 154 IF(lflush) CALL flush(numout) 154 155 ENDIF 155 156 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynadv_cen2.F90
r6486 r10774 66 66 WRITE(numout,*) 'dyn_adv_cen2 : 2nd order flux form momentum advection' 67 67 WRITE(numout,*) '~~~~~~~~~~~~' 68 IF(lflush) CALL flush(numout) 68 69 ENDIF 69 70 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynadv_ubs.F90
r6486 r10774 90 90 IF(lwp) WRITE(numout,*) 'dyn_adv_ubs : UBS flux form momentum advection' 91 91 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 92 IF(lwp .AND. lflush) CALL flush(numout) 92 93 ENDIF 93 94 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynhpg.F90
r10759 r10774 136 136 IF(lwp) THEN 137 137 WRITE(numout,*) " ! restore original density" 138 IF(lflush) CALL flush(numout) 138 139 ENDIF 139 140 rhd(:,:,:) = z_rhd_st(:,:,:) ! restore original density … … 190 191 WRITE(numout,*) ' s-coord. (Pressure Jacobian: Cubic polynomial) ln_hpg_prj = ', ln_hpg_prj 191 192 WRITE(numout,*) ' time stepping: centered (F) or semi-implicit (T) ln_dynhpg_imp = ', ln_dynhpg_imp 193 IF(lflush) CALL flush(numout) 192 194 ENDIF 193 195 ! … … 260 262 IF(lwp) WRITE(numout,*) 'dyn:hpg_zco : hydrostatic pressure gradient trend' 261 263 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ z-coordinate case ' 264 IF(lwp .AND. lflush) CALL flush(numout) 262 265 ENDIF 263 266 … … 325 328 IF(lwp) WRITE(numout,*) 'dyn:hpg_zps : hydrostatic pressure gradient trend' 326 329 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ z-coordinate with partial steps - vector optimization' 330 IF(lwp .AND. lflush) CALL flush(numout) 327 331 ENDIF 328 332 … … 423 427 IF(lwp) WRITE(numout,*) 'dyn:hpg_sco : hydrostatic pressure gradient trend' 424 428 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, OPA original scheme used' 429 IF(lwp .AND. lflush) CALL flush(numout) 425 430 ENDIF 426 431 … … 514 519 IF(lwp) WRITE(numout,*) 'dyn:hpg_isf : hydrostatic pressure gradient trend for ice shelf' 515 520 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, OPA original scheme used' 521 IF(lwp .AND. lflush) CALL flush(numout) 516 522 ENDIF 517 523 … … 768 774 IF(lwp) WRITE(numout,*) 'dyn:hpg_djc : hydrostatic pressure gradient trend' 769 775 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, density Jacobian with cubic polynomial scheme' 776 IF(lwp .AND. lflush) CALL flush(numout) 770 777 ENDIF 771 778 … … 1001 1008 IF(lwp) WRITE(numout,*) 'dyn:hpg_prj : hydrostatic pressure gradient trend' 1002 1009 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate case, cubic spline pressure Jacobian' 1010 IF(lwp .AND. lflush) CALL flush(numout) 1003 1011 ENDIF 1004 1012 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynkeg.F90
r6486 r10774 88 88 IF(lwp) WRITE(numout,*) 'dyn_keg : kinetic energy gradient trend, scheme number=', kscheme 89 89 IF(lwp) WRITE(numout,*) '~~~~~~~' 90 IF(lflush) CALL flush(numout) 90 91 ENDIF 91 92 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf.F90
r6486 r10774 100 100 IF(lwp) WRITE(numout,*) 'dyn_ldf : no lateral diffusion on momentum setup' 101 101 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 102 IF(lflush) CALL flush(numout) 102 103 ENDIF 103 104 END SELECT … … 139 140 WRITE(numout,*) ' horizontal (geopotential) ln_dynldf_hor = ', ln_dynldf_hor 140 141 WRITE(numout,*) ' iso-neutral ln_dynldf_iso = ', ln_dynldf_iso 142 IF(lflush) CALL flush(numout) 141 143 ENDIF 142 144 … … 229 231 IF( nldf == 4 ) WRITE(numout,*) ' laplacian and bilaplacian operators' 230 232 IF( nldf == 5 ) WRITE(numout,*) ' rotated laplacian and bilaplacian operators' 233 IF(lflush) CALL flush(numout) 231 234 ENDIF 232 235 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf_bilap.F90
r6486 r10774 90 90 WRITE(numout,*) 'dyn_ldf_bilap : iso-level bilaplacian operator' 91 91 WRITE(numout,*) '~~~~~~~~~~~~~' 92 IF(lwp .AND. lflush) CALL flush(numout) 92 93 ENDIF 93 94 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf_bilapg.F90
r8280 r10774 98 98 IF(lwp) WRITE(numout,*) 'dyn_ldf_bilapg : horizontal biharmonic operator in s-coordinate' 99 99 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~' 100 IF(lwp .AND. lflush) CALL flush(numout) 100 101 ! ! allocate dyn_ldf_bilapg arrays 101 102 IF( dyn_ldf_bilapg_alloc() /= 0 ) CALL ctl_stop('STOP', 'dyn_ldf_bilapg: failed to allocate arrays') … … 123 124 IF(lwp) WRITE(numout,*) ' max slop: u', SQRT( MAXVAL(uslp*uslp)), ' v ', SQRT(MAXVAL(vslp)), & 124 125 & ' wi', sqrt(MAXVAL(wslpi)) , ' wj', sqrt(MAXVAL(wslpj)) 126 IF(lwp .AND. lflush) CALL flush(numout) 125 127 endif 126 128 !!end -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf_iso.F90
r6486 r10774 127 127 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ s-coordinate horizontal diffusive operator' 128 128 ! ! allocate dyn_ldf_bilap arrays 129 IF(lflush) CALL flush(numout) 129 130 IF( dyn_ldf_iso_alloc() /= 0 ) CALL ctl_stop('STOP', 'dyn_ldf_iso: failed to allocate arrays') 130 131 ENDIF … … 151 152 IF(lwp) WRITE(numout,*) ' max slop: u', SQRT( MAXVAL(uslp*uslp)), ' v ', SQRT(MAXVAL(vslp)), & 152 153 & ' wi', sqrt(MAXVAL(wslpi)) , ' wj', sqrt(MAXVAL(wslpj)) 154 IF(lwp .AND. lflush) CALL flush(numout) 153 155 endif 154 156 !!end -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf_lap.F90
r6486 r10774 70 70 IF(lwp) WRITE(numout,*) 'dyn_ldf : iso-level harmonic (laplacian) operator' 71 71 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 72 IF(lflush) CALL flush(numout) 72 73 ENDIF 73 74 ! ! =============== -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynnept.F90
r10759 r10774 145 145 WRITE(numout,*) 146 146 ENDIF 147 IF(lflush) CALL flush(numout) 147 148 ENDIF 148 149 ! … … 304 305 CALL lbc_lnk( zunep, 'U', -1.0_wp ) 305 306 CALL lbc_lnk( zvnep, 'V', -1.0_wp ) 306 WRITE(numout,*) ' zunep: min, max = ', unemin,unemax 307 WRITE(numout,*) ' zvnep: min, max = ', vnemin,vnemax 308 WRITE(numout,*) 307 IF(lwp .AND. nprint > 0) THEN 308 WRITE(numout,*) ' zunep: min, max = ', unemin,unemax 309 WRITE(numout,*) ' zvnep: min, max = ', vnemin,vnemax 310 WRITE(numout,*) 311 ENDIF 309 312 310 313 !! Compute, once and for all, the horizontal divergence (zhdivnep) … … 328 331 END DO 329 332 END DO 330 WRITE(numout,*) ' zhdivnep: min, max = ', zhdivmin,zhdivmax 331 WRITE(numout,*) ' zmrotnep: min, max = ', zmrotmin,zmrotmax 332 WRITE(numout,*) 333 334 IF(lwp .AND. nprint > 0) THEN 335 WRITE(numout,*) ' zhdivnep: min, max = ', zhdivmin,zhdivmax 336 WRITE(numout,*) ' zmrotnep: min, max = ', zmrotmin,zmrotmax 337 WRITE(numout,*) 338 IF(lflush) CALL flush(numout) 339 ENDIF 333 340 334 341 !! Deallocate temporary workspace arrays, which are all local to … … 384 391 IF(lwp) WRITE(numout,*) 'horizontal velocity divergence and' 385 392 IF(lwp) WRITE(numout,*) 'relative vorticity of Neptune flow' 393 IF(lwp .AND. lflush) CALL flush(numout) 386 394 #if defined key_noslip_accurate 387 395 !!---------------------------------------------------------------------- -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynnxt.F90
r6487 r10774 119 119 IF(lwp) WRITE(numout,*) 'dyn_nxt : time stepping' 120 120 IF(lwp) WRITE(numout,*) '~~~~~~~' 121 IF(lflush) CALL flush(numout) 121 122 ENDIF 122 123 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg.F90
r6486 r10774 231 231 WRITE(numout,*) ' Free surface with time splitting lk_dynspg_ts = ', lk_dynspg_ts 232 232 WRITE(numout,*) ' Filtered free surface cst volume lk_dynspg_flt = ', lk_dynspg_flt 233 IF(lflush) CALL flush(numout) 233 234 ENDIF 234 235 … … 266 267 IF( nspg == 1 ) WRITE(numout,*) ' free surface with time splitting scheme' 267 268 IF( nspg == 2 ) WRITE(numout,*) ' filtered free surface' 269 IF(lflush) CALL flush(numout) 268 270 ENDIF 269 271 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_exp.F90
r9583 r10774 75 75 ! 76 76 IF( lk_vvl .AND. lwp ) WRITE(numout,*) ' lk_vvl=T : spg is included in dynhpg' 77 IF(lflush) CALL flush(numout) 77 78 ENDIF 78 79 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_flt.F90
r9321 r10774 120 120 IF(lwp) WRITE(numout,*) 'dyn_spg_flt : surface pressure gradient trend' 121 121 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ (free surface constant volume case)' 122 IF(lwp .AND. lflush) CALL flush(numout) 122 123 123 124 ! set to zero free surface specific arrays -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r10759 r10774 195 195 IF(lwp) WRITE(numout,*) '~~~~~~~~~~ free surface with time splitting' 196 196 IF(lwp) WRITE(numout,*) 197 IF(lflush) CALL flush(numout) 197 198 ! 198 199 IF (neuler==0) ll_init=.TRUE. … … 1161 1162 IF(lwp) WRITE(numout,*) ' Barotropic time step [s] is :', rdtbt 1162 1163 IF(lwp) WRITE(numout,*) ' Maximum Courant number is :', zcmax 1164 IF(lwp .AND. lflush) CALL flush(numout) 1163 1165 ! 1164 1166 IF ((.NOT.ln_bt_av).AND.(.NOT.ln_bt_fw)) THEN -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynvor.F90
r10759 r10774 234 234 IF(lwp) WRITE(numout,*) 'dyn:vor_ene : vorticity term: energy conserving scheme' 235 235 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 236 IF(lflush) CALL flush(numout) 236 237 ENDIF 237 238 … … 346 347 IF(lwp) WRITE(numout,*) 'dyn:vor_mix : vorticity term: mixed energy/enstrophy conserving scheme' 347 348 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 349 IF(lflush) CALL flush(numout) 348 350 ENDIF 349 351 … … 463 465 IF(lwp) WRITE(numout,*) 'dyn:vor_ens : vorticity term: enstrophy conserving scheme' 464 466 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 467 IF(lflush) CALL flush(numout) 465 468 ENDIF 466 469 … … 587 590 IF(lwp) WRITE(numout,*) 'dyn:vor_een : vorticity term: energy and enstrophy conserving scheme' 588 591 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 592 IF(lflush) CALL flush(numout) 589 593 #if ! defined key_vvl 590 594 IF( .NOT.ALLOCATED(ze3f) ) THEN … … 743 747 WRITE(numout,*) ' enstrophy and energy conserving scheme ln_dynvor_een = ', ln_dynvor_een 744 748 WRITE(numout,*) ' enstrophy and energy conserving scheme (old) ln_dynvor_een_old= ', ln_dynvor_een_old 749 IF(lflush) CALL flush(numout) 745 750 ENDIF 746 751 … … 798 803 IF( nvor == 3 ) WRITE(numout,*) ' vorticity scheme : energy and enstrophy conserving scheme' 799 804 IF( nvor == -1 ) WRITE(numout,*) ' esopa test: use all lateral physics options' 805 IF(lflush) CALL flush(numout) 800 806 ENDIF 801 807 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynzad.F90
r6486 r10774 74 74 IF(lwp)WRITE(numout,*) 75 75 IF(lwp)WRITE(numout,*) 'dyn_zad : arakawa advection scheme' 76 IF(lwp .AND. lflush) CALL flush(numout) 76 77 ENDIF 77 78 … … 188 189 IF(lwp)WRITE(numout,*) 189 190 IF(lwp)WRITE(numout,*) 'dyn_zad_zts : arakawa advection scheme with sub-timesteps' 191 IF(lwp .AND. lflush) CALL flush(numout) 190 192 ENDIF 191 193 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynzdf.F90
r6486 r10774 136 136 IF( nzdf == 0 ) WRITE(numout,*) ' Explicit time-splitting scheme' 137 137 IF( nzdf == 1 ) WRITE(numout,*) ' Implicit (euler backward) scheme' 138 IF(lflush) CALL flush(numout) 138 139 ENDIF 139 140 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynzdf_exp.F90
r6486 r10774 73 73 WRITE(numout,*) 'dyn_zdf_exp : vertical momentum diffusion - explicit operator' 74 74 WRITE(numout,*) '~~~~~~~~~~~ ' 75 IF(lflush) CALL flush(numout) 75 76 ENDIF 76 77 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/dynzdf_imp.F90
r6795 r10774 81 81 IF(lwp) WRITE(numout,*) 'dyn_zdf_imp : vertical momentum diffusion implicit operator' 82 82 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ ' 83 IF(lwp .AND. lflush) CALL flush(numout) 83 84 ! 84 85 IF( lk_vvl ) THEN ; r_vvl = 1._wp ! Variable volume indicator -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90
r8400 r10774 87 87 IF(lwp) WRITE(numout,*) 'ssh_nxt : after sea surface height' 88 88 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 89 IF(lwp .AND. lflush) CALL flush(numout) 89 90 ! 90 91 ENDIF … … 184 185 IF(lwp) WRITE(numout,*) 'wzv : now vertical velocity ' 185 186 IF(lwp) WRITE(numout,*) '~~~~~ ' 187 IF(lwp .AND. lflush) CALL flush(numout) 186 188 ! 187 189 wn(:,:,jpk) = 0._wp ! bottom boundary condition: w=0 (set once for all) … … 265 267 IF(lwp) WRITE(numout,*) 'ssh_swp : Asselin time filter and swap of sea surface height' 266 268 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 269 IF(lwp .AND. lflush) CALL flush(numout) 267 270 ENDIF 268 271 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/FLO/flodom.F90
r6486 r10774 65 65 IF(lwp) WRITE(numout,*) '~~~~~~~~' 66 66 IF(lwp) WRITE(numout,*) ' jpnfl = ',jpnfl 67 IF(lwp .AND. lflush) CALL flush(numout) 67 68 68 69 !-------------------------! … … 72 73 73 74 IF(lwp) WRITE(numout,*) ' float restart file read' 75 IF(lwp .AND. lflush) CALL flush(numout) 74 76 75 77 ! open the restart file … … 93 95 94 96 IF(lwp) WRITE(numout,*) ' add new floats' 97 IF(lwp .AND. lflush) CALL flush(numout) 95 98 96 99 IF( ln_ariane )THEN !Add new floats with ariane convention … … 148 151 DO jfl = kfl_start,kfl_end 149 152 READ(inum,*) flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),itrash 150 if(lwp)write(numout,*)'read:',jfl,flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),itrash ; call flush(numout) 153 if(lwp)write(numout,*)'read:',jfl,flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),itrash 154 IF(lwp .AND. lflush) CALL flush(numout) 151 155 END DO 152 156 CLOSE(inum) … … 275 279 IF(lwp) WRITE(numout,*)'geographical position',flxx(jfl),flyy(jfl),flzz(jfl) 276 280 IF(lwp) WRITE(numout,*)'index position',tpifl(jfl),tpjfl(jfl),tpkfl(jfl) 281 IF(lwp .AND. lflush) CALL flush(numout) 277 282 ENDIF 278 283 END DO -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/IOM/in_out_manager.F90
r10745 r10774 129 129 INTEGER :: nn_bench !: benchmark parameter (0/1) 130 130 INTEGER :: nn_bit_cmp = 0 !: bit reproducibility (0/1) 131 LOGICAL :: ln_flush !: namelist flush numout after write statement 131 132 ! 133 LOGICAL :: lflush !: flush numout after write statement 132 134 INTEGER :: nprint, nictls, nictle, njctls, njctle, isplt, jsplt, nbench !: OLD namelist names 133 135 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/IOM/iom_nf90.F90
r10770 r10774 84 84 ! ! ============= 85 85 IF( ldwrt ) THEN ! ... in write mode 86 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in WRITE mode' 86 IF(lwp .AND. nprint > 0) THEN 87 WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in WRITE mode' 88 IF(lflush) CALL flush(numout) 89 ENDIF 87 90 IF( snc4set%luse ) THEN 88 91 CALL iom_nf90_check(NF90_OPEN( TRIM(cdname), NF90_WRITE , if90id ), clinfo) … … 92 95 CALL iom_nf90_check(NF90_SET_FILL( if90id, NF90_NOFILL, idmy ), clinfo) 93 96 ELSE ! ... in read mode 94 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in READ mode' 97 IF(lwp .AND. nprint > 0) THEN 98 WRITE(numout,*) TRIM(clinfo)//' open existing file: '//TRIM(cdname)//' in READ mode' 99 IF(lflush) CALL flush(numout) 100 ENDIF 95 101 CALL iom_nf90_check(NF90_OPEN( TRIM(cdname), NF90_NOWRITE, if90id, chunksize = ichunk ), clinfo) 96 102 ENDIF … … 103 109 cdname = TRIM(cltmp) 104 110 ENDIF 105 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' create new file: '//TRIM(cdname)//' in WRITE mode' 111 IF(lwp .AND. nprint > 0) THEN 112 WRITE(numout,*) TRIM(clinfo)//' create new file: '//TRIM(cdname)//' in WRITE mode' 113 IF(lflush) CALL flush(numout) 114 ENDIF 106 115 107 116 IF( llclobber ) THEN ; imode = IOR( NF90_64BIT_OFFSET, NF90_CLOBBER ) … … 109 118 ENDIF 110 119 IF( snc4set%luse ) THEN 111 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' creating file: '//TRIM(cdname)//' in hdf5 (netcdf4) mode' 120 IF(lwp .AND. nprint > 0) THEN 121 WRITE(numout,*) TRIM(clinfo)//' creating file: '//TRIM(cdname)//' in hdf5 (netcdf4) mode' 122 IF(lflush) CALL flush(numout) 123 ENDIF 112 124 CALL GET_NF90_SYMBOL("NF90_HDF5", ihdf5) 113 125 IF( llclobber ) THEN ; imode = IOR(ihdf5, NF90_CLOBBER) … … 158 170 & len = iom_file(kiomid)%lenuld ), clinfo ) 159 171 ENDIF 160 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' ---> '//TRIM(cdname)//' OK' 172 IF(lwp .AND. nprint > 0) THEN 173 WRITE(numout,*) ' ---> '//TRIM(cdname)//' OK' 174 IF(lflush) CALL flush(numout) 175 ENDIF 161 176 ELSE 162 177 kiomid = 0 ! return error flag … … 431 446 ! trick: defined to 0 to say that dimension variables are defined but not yet written 432 447 iom_file(kiomid)%dimsz(1, 1) = 0 433 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' define dimension variables done' 448 IF(lwp .AND. nprint > 1) THEN 449 WRITE(numout,*) TRIM(clinfo)//' define dimension variables done' 450 IF(lflush) CALL flush(numout) 451 ENDIF 434 452 ENDIF 435 453 ! define the data if it is not already done … … 500 518 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' chunked ok. Chunks sizes: ', ichunksz 501 519 ENDIF 502 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' defined ok' 520 IF(lwp .AND. nprint > 1) THEN 521 WRITE(numout,*) TRIM(clinfo)//' defined ok' 522 IF(lflush) CALL flush(numout) 523 ENDIF 503 524 ELSE 504 525 idvar = kvid … … 543 564 CALL iom_nf90_check(NF90_INQUIRE_DIMENSION( if90id, 3, len = iom_file(kiomid)%dimsz(1,3) ), clinfo) 544 565 iom_file(kiomid)%dimsz(1 , 4) = 1 ! unlimited dimension 545 IF(lwp .AND. nprint > 1) WRITE(numout,*) TRIM(clinfo)//' write dimension variables done' 566 IF(lwp .AND. nprint > 1) THEN 567 WRITE(numout,*) TRIM(clinfo)//' write dimension variables done' 568 IF(lflush) CALL flush(numout) 569 ENDIF 546 570 ENDIF 547 571 ENDIF … … 561 585 IF( iom_file(kiomid)%luld(idvar) ) iom_file(kiomid)%dimsz(iom_file(kiomid)%ndims(idvar), idvar) & 562 586 & = iom_file(kiomid)%dimsz(iom_file(kiomid)%ndims(idvar), idvar) + 1 563 IF(lwp .AND. nprint > 0) WRITE(numout,*) TRIM(clinfo)//' written ok' 587 IF(lwp .AND. nprint > 0) THEN 588 WRITE(numout,*) TRIM(clinfo)//' written ok' 589 IF(lflush) CALL flush(numout) 590 ENDIF 564 591 ENDIF 565 592 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/IOM/prtctl.F90
r6486 r10774 369 369 WRITE(j_id,*) 370 370 WRITE(j_id,*) 371 IF(lflush) CALL flush(j_id) 371 372 372 373 9000 FORMAT(a41,i4.4,a14) … … 515 516 IF(lwp) WRITE(numout,*)' sum ilcitl(1,j) = ', zjdom, ' jpjglo = ', jpjglo 516 517 IF(lwp) WRITE(numout,*) 518 IF(lwp .AND. lflush) CALL flush(numout) 517 519 518 520 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r10770 r10774 116 116 ENDIF 117 117 ENDIF 118 IF(lflush) CALL flush(numout) 118 119 ENDIF 119 120 ! … … 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 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LBC/cla.F90
r6486 r10774 83 83 IF(lwp) WRITE(numout,*) 'div_cla : cross land advection on hdiv ' 84 84 IF(lwp) WRITE(numout,*) '~~~~~~~~' 85 IF(lflush) CALL flush(numout) 85 86 ! 86 87 IF( nbab == 1 ) CALL cla_bab_el_mandeb('ini') ! Bab el Mandeb ( Red Sea - Indian ocean ) … … 120 121 IF(lwp) WRITE(numout,*) 'tra_cla : cross land advection on tracers ' 121 122 IF(lwp) WRITE(numout,*) '~~~~~~~~' 123 IF(lflush) CALL flush(numout) 122 124 ENDIF 123 125 ! … … 147 149 IF(lwp) WRITE(numout,*) 'cla_dynspg : cross land advection on (ua,va) ' 148 150 IF(lwp) WRITE(numout,*) '~~~~~~~~~~' 151 IF(lflush) CALL flush(numout) 149 152 ENDIF 150 153 ! … … 181 184 IF(lwp) WRITE(numout,*) 'cla_init : cross land advection initialisation ' 182 185 IF(lwp) WRITE(numout,*) '~~~~~~~~~' 186 IF(lwp .AND. lflush) CALL flush(numout) 183 187 ! 184 188 ! ! Allocate arrays for this module -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LBC/mppini.F90
r10770 r10774 73 73 WRITE(numout,*) ' nimpp = ', nimpp 74 74 WRITE(numout,*) ' njmpp = ', njmpp 75 IF(lflush) CALL flush(numout) 75 76 ENDIF 76 77 … … 137 138 IF(lwp) WRITE(numout,*) 'mpp_init : Message Passing MPI' 138 139 IF(lwp) WRITE(numout,*) '~~~~~~~~' 140 IF(lflush) CALL flush(numout) 139 141 140 142 … … 287 289 IF(lwp) WRITE(numout,*)' sum ilcit(1,j)=', zjdom, ' jpjglo=', jpjglo 288 290 IF(lwp) WRITE(numout,*) 291 IF(lwp .AND. lflush) CALL flush(numout) 289 292 290 293 IF(lwp .AND. nprint>1) THEN … … 305 308 il1 = il1+ifreq 306 309 END DO 310 IF(lflush) CALL flush(numout) 311 ENDIF 307 312 9200 FORMAT(' ***',20('*************',a3)) 308 313 9203 FORMAT(' * ',20(' * ',a3)) … … 310 315 9202 FORMAT(' ',i3,' * ',20(i3,' x',i3,' * ')) 311 316 9204 FORMAT(' * ',20(' ',i3,' * ')) 312 ENDIF313 317 314 318 ! 5. From global to local … … 447 451 WRITE(numout,*) ' jprecj = ', jprecj , ' npnw = ', npnw 448 452 WRITE(numout,*) 453 IF(lflush) CALL flush(numout) 449 454 ENDIF 450 455 … … 456 461 CALL mpp_ini_north 457 462 IF(lwp) WRITE(numout,*) ' mpp_init : North fold boundary prepared for jpni >1' 463 IF(lwp .AND. lflush) CALL flush(numout) 458 464 ENDIF 459 465 … … 511 517 WRITE(numout,*) ' ihals = ', ihals(1), ihals(2) 512 518 WRITE(numout,*) ' ihale = ', ihale(1), ihale(2) 519 IF(lflush) CALL flush(numout) 513 520 ENDIF 514 521 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LBC/mppini_2.h90
r10759 r10774 93 93 IF(lwp)WRITE(numout,*) '~~~~~~~~' 94 94 IF(lwp)WRITE(numout,*) ' ' 95 IF(lwp .AND. lflush) CALL flush(numout) 95 96 96 97 IF( jpni*jpnj < jpnij ) CALL ctl_stop( ' jpnij > jpni x jpnj impossible' ) … … 184 185 IF(lwp) WRITE(numout,*) ' sum ilcj(1,j)=',zjdom,' jpjglo=',jpjglo 185 186 IF(lwp) WRITE(numout,*) 187 IF(lwp .AND. lflush) CALL flush(numout) 186 188 187 189 … … 364 366 il1 = il1+ifreq 365 367 END DO 368 IF(lflush) CALL flush(numout) 366 369 9400 FORMAT(' ***',20('*************',a3)) 367 370 9403 FORMAT(' * ',20(' * ',a3)) … … 572 575 WRITE(numout,*) ' jprecj = ', jprecj , ' npnw = ', npnw 573 576 WRITE(numout,*) 577 IF(lflush) CALL flush(numout) 574 578 ENDIF 575 579 … … 581 585 CALL mpp_ini_north 582 586 IF(lwp) WRITE(numout,*) ' mpp_init2 : North fold boundary prepared for jpni >1' 587 IF(lwp .AND. lflush) CALL flush(numout) 583 588 ENDIF 584 589 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn.F90
r10759 r10774 159 159 nkahm_smag = 1 160 160 #endif 161 161 ! 162 IF(lwp .AND. lflush) CALL flush(numout) 162 163 ! 163 164 END SUBROUTINE ldf_dyn_init … … 210 211 ENDIF 211 212 ! 213 IF(lwp .AND. lflush) CALL flush(numout) 214 ! 212 215 END SUBROUTINE ldf_zpf_1d 213 216 … … 252 255 ENDIF 253 256 ! 257 IF(lwp .AND. lflush) CALL flush(numout) 258 ! 254 259 END SUBROUTINE ldf_zpf_1d_3d 255 260 … … 293 298 ENDIF 294 299 ! 300 IF(lwp .AND. lflush) CALL flush(numout) 301 ! 295 302 END SUBROUTINE ldf_zpf_3d 296 303 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn_c2d.h90
r6486 r10774 41 41 IF(lwp) WRITE(numout,*) 'ldf_dyn_c2d : 2d lateral eddy viscosity coefficient' 42 42 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 43 IF(lwp .AND. lflush) CALL flush(numout) 43 44 44 45 ! harmonic operator (ahm1, ahm2) : ( T- and F- points) (used for laplacian operators … … 85 86 CALL prihre(ahm2,jpi,jpj,1,jpi,1,1,jpj,1,1.e-3,numout) 86 87 ENDIF 88 IF(lwp .AND. lflush) CALL flush(numout) 87 89 ENDIF 88 90 … … 119 121 CALL prihre(ahm4,jpi,jpj,1,jpi,1,1,jpj,1,1.e-3,numout) 120 122 ENDIF 123 IF(lwp .AND. lflush) CALL flush(numout) 121 124 ENDIF 122 125 ! … … 160 163 IF(lwp) WRITE(numout,*) '~~~~~~ --' 161 164 IF(lwp) WRITE(numout,*) ' orca ocean configuration' 165 IF(lwp .AND. lflush) CALL flush(numout) 162 166 163 167 IF( cp_cfg == "orca" .AND. cp_cfz == "antarctic" ) THEN … … 316 320 ENDIF 317 321 ! 322 IF(lwp .AND. lflush) CALL flush(numout) 323 ! 318 324 CALL wrk_dealloc( jpi , jpj , icof ) 319 325 ! … … 358 364 IF(lwp) WRITE(numout,*) '~~~~~~ --' 359 365 IF(lwp) WRITE(numout,*) ' orca_r1 configuration' 366 IF(lwp .AND. lflush) CALL flush(numout) 360 367 361 368 IF( cp_cfg == "orca" .AND. cp_cfz == "antarctic" ) THEN … … 519 526 ENDIF 520 527 ! 528 IF(lwp .AND. lflush) CALL flush(numout) 529 ! 521 530 CALL wrk_dealloc( jpi , jpj , icof ) 522 531 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn_c3d.h90
r9975 r10774 179 179 ENDIF 180 180 ENDIF 181 ! 182 IF(lwp .AND. lflush) CALL flush(numout) 181 183 ! 182 184 CALL wrk_dealloc( jpk, zcoef ) … … 432 434 ENDIF 433 435 ! 436 IF(lwp .AND. lflush) CALL flush(numout) 437 ! 434 438 CALL wrk_dealloc( jpi , jpj , icof ) 435 439 CALL wrk_dealloc( jpk , zcoef ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn_smag.F90
r9583 r10774 106 106 107 107 108 IF(lwp) WRITE(numout,*) 109 IF(lwp) WRITE(numout,*) 'ldf_dyn_smag : 3D lateral eddy viscosity coefficient' 110 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 111 108 IF(lwp) WRITE(numout,*) 109 IF(lwp) WRITE(numout,*) 'ldf_dyn_smag : 3D lateral eddy viscosity coefficient' 110 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 111 IF(lwp .AND. lflush) CALL flush(numout) 112 112 113 ENDIF 113 114 … … 174 175 ahm1(:,:,jpk) = ahm1(:,:,jpkm1) 175 176 ahm2(:,:,jpk) = ahm2(:,:,jpkm1) 176 IF(lwp.and.kt==nit000) WRITE(numout,'(36x," ahm ", 7x)') 177 IF(lwp.and.kt==nit000) THEN 178 WRITE(numout,'(36x," ahm ", 7x)') 179 IF(lflush) CALL flush(numout) 180 ENDIF 181 IF(lwp.and.kt==nit000) THEN 177 182 DO jk = 1, jpk 178 179 IF(lwp.and.kt==nit000) WRITE(numout,'(30x,E10.2,8x,i3)') ahm1(jpi/2,jpj/2,jk), jk 183 WRITE(numout,'(30x,E10.2,8x,i3)') ahm1(jpi/2,jpj/2,jk), jk 180 184 END DO 185 IF(lflush) CALL flush(numout) 186 ENDIF 181 187 CALL lbc_lnk( ahm1, 'T', 1. ) ! Lateral boundary conditions on ( ahtt ) 182 188 CALL lbc_lnk( ahm2, 'F', 1. ) ! Lateral boundary conditions on ( ahtt ) … … 245 251 ahm4(:,:,jpk) = ahm4(:,:,jpkm1) 246 252 247 DO jk = 1, jpk 248 IF( kt == nit000 ) THEN 249 250 IF(lwp) WRITE(numout,'(30x,E10.2,8x,i3)') ahm3(jpi/2,jpj/2,jk), jk 253 IF( kt == nit000 .AND. lwp) THEN 254 DO jk = 1, jpk 255 WRITE(numout,'(30x,E10.2,8x,i3)') ahm3(jpi/2,jpj/2,jk), jk 256 IF(lflush) CALL flush(numout) 257 END DO 251 258 ENDIF 252 END DO 259 253 260 CALL lbc_lnk( ahm3, 'U', 1. ) ! Lateral boundary conditions 254 261 CALL lbc_lnk( ahm4, 'V', 1. ) … … 269 276 IF( lk_mpp ) CALL mpp_max( zdeltat ) ! max over the global domain 270 277 ! 271 IF( MOD( kt, nwrite ) == 1 .AND. lwp ) WRITE(numout,*) ' ==>> time-step= ',kt,'dynlap: abs(ahm) max: ', zdeltat 278 IF( MOD( kt, nwrite ) == 1 .AND. lwp ) THEN 279 WRITE(numout,*) ' ==>> time-step= ',kt,'dynlap: abs(ahm) max: ', zdeltat 280 IF(lflush) CALL flush(numout) 281 ENDIF 272 282 ENDIF 273 283 If(ln_dynldf_bilap)THEN … … 282 292 IF( lk_mpp ) CALL mpp_max( zdeltat ) ! max over the global domain 283 293 ! 284 IF( MOD( kt, nwrite ) == 1 .AND. lwp ) WRITE(numout,*) ' ==>> time-step= ',kt,'dyn_bilap abs(ahm) max: ', zdeltat 294 IF( MOD( kt, nwrite ) == 1 .AND. lwp ) THEN 295 WRITE(numout,*) ' ==>> time-step= ',kt,'dyn_bilap abs(ahm) max: ', zdeltat 296 IF(lflush) CALL flush(numout) 297 ENDIF 285 298 ! 286 299 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldfslp.F90
r6498 r10774 414 414 IF(lwp) THEN 415 415 WRITE(numout,*) ' Horizontal mixing in s-coordinate: slope = slope of s-surfaces' 416 IF(lflush) CALL flush(numout) 416 417 ENDIF 417 418 … … 451 452 IF(lwp) WRITE(numout,*) ' max slop: u',SQRT( MAXVAL(uslp*uslp)), ' v ', SQRT(MAXVAL(vslp)), & 452 453 & ' wi', sqrt(MAXVAL(wslpi)), ' wj', sqrt(MAXVAL(wslpj)) 454 IF(lwp .AND. lflush) CALL flush(numout) 453 455 endif 454 456 … … 842 844 WRITE(numout,*) 'ldf_slp_init : direction of lateral mixing' 843 845 WRITE(numout,*) '~~~~~~~~~~~~' 846 IF(lflush) CALL flush(numout) 844 847 ENDIF 845 848 … … 865 868 IF(ln_sco .AND. (ln_traldf_hor .OR. ln_dynldf_hor )) THEN 866 869 IF(lwp) WRITE(numout,*) ' Horizontal mixing in s-coordinate: slope = slope of s-surfaces' 870 IF(lwp .AND. lflush) CALL flush(numout) 867 871 868 872 ! geopotential diffusion in s-coordinates on tracers and/or momentum -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra.F90
r10759 r10774 175 175 IF(lwp.and.ln_traldf_bilap) CALL ctl_stop(' SMAGORINSKY + BILAPLACIAN - UNSTABLE OR NON_CONSERVATIVE' ) 176 176 #endif 177 177 ! 178 IF(lwp .AND. lflush) CALL flush(numout) 178 179 ! 179 180 END SUBROUTINE ldf_tra_init -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra_c2d.h90
r6486 r10774 36 36 IF(lwp) WRITE(numout,*) ' ldf_tra_c2d : 2D eddy diffusivity and eddy' 37 37 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~ -- induced velocity coefficients' 38 IF(lwp .AND. lflush) CALL flush(numout) 38 39 ELSE 39 40 IF(lwp) WRITE(numout,*) 40 41 IF(lwp) WRITE(numout,*) ' ldf_tra2d : 2D eddy diffusivity coefficient' 41 42 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~ --' 43 IF(lwp .AND. lflush) CALL flush(numout) 42 44 ENDIF 43 45 … … 75 77 IF(lwp) WRITE(numout,*) ' Constant values used for eddy diffusivity coefficients' 76 78 IF(lwp) WRITE(numout,*) ' Variation lat/lon only for eddy induced velocity coefficients' 79 IF(lwp .AND. lflush) CALL flush(numout) 77 80 ENDIF 78 81 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra_c3d.h90
r6486 r10774 46 46 IF(lwp) WRITE(numout,*) ' Coefficients set to constant' 47 47 ENDIF 48 48 49 49 50 50 ! biharmonic operator (T-point) … … 121 121 122 122 # endif 123 124 IF(lwp .AND. lflush) CALL flush(numout) 125 123 126 END SUBROUTINE ldf_tra_c3d -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra_smag.F90
r9583 r10774 99 99 IF(lwp) WRITE(numout,*) 100 100 IF(lwp) WRITE(numout,*) 101 IF(lwp .AND. lflush) CALL flush(numout) 101 102 ENDIF 102 103 … … 108 109 ahtt(:,:,:) = rn_aht_0 109 110 IF( ln_traldf_bilap ) THEN 110 IF( lwp .AND. kt == nit000) WRITE(numout,* )'ldf_tra_smag :no bilaplacian Smagorinsky diffusivity' 111 IF( lwp .AND. kt == nit000) WRITE(numout,* )'ldf_tra_smag :bilaplacian diffusivity set to constant' 111 IF( lwp .AND. kt == nit000) THEN 112 WRITE(numout,* )'ldf_tra_smag :no bilaplacian Smagorinsky diffusivity' 113 WRITE(numout,* )'ldf_tra_smag :bilaplacian diffusivity set to constant' 114 IF(lflush) CALL flush(numout) 115 ENDIF 112 116 ENDIF 113 117 … … 190 194 CALL prihre( ahtw(:,:,1), jpi, jpj, 1, jpi, 1, & 191 195 & 1, jpj, 1, 1.e-1, numout ) 196 IF(lflush) CALL flush(numout) 192 197 ENDIF 193 198 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90
r10759 r10774 269 269 WRITE(numout,*) ' choose the albedo parameterization nn_ice_alb = ', nn_ice_alb 270 270 WRITE(numout,*) ' albedo of bare puddled ice rn_albice = ', rn_albice 271 IF(lflush) CALL flush(numout) 271 272 ENDIF 272 273 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r10269 r10774 183 183 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 184 184 IF(lwp) WRITE(numout,*) 185 IF(lflush) CALL flush(numout) 185 186 186 187 ncplmodel = kcplmodel … … 235 236 WRITE(numout,*) ' multiexchg: nldi, nlei, nimpp =', nldi, nlei, nimpp 236 237 WRITE(numout,*) ' multiexchg: nldj, nlej, njmpp =', nldj, nlej, njmpp 238 IF(lflush) CALL flush(numout) 237 239 ENDIF 238 240 … … 313 315 CALL oasis_abort ( ssnd(ji)%nid(jc,jm), 'cpl_define', 'Failure in oasis_def_var' ) 314 316 ENDIF 315 IF( ln_ctl .AND. ssnd(ji)%nid(jc,jm) /= -1 ) WRITE(numout,*) "variable defined in the namcouple" 316 IF( ln_ctl .AND. ssnd(ji)%nid(jc,jm) == -1 ) WRITE(numout,*) "variable NOT defined in the namcouple" 317 IF( ln_ctl) THEN 318 IF(ssnd(ji)%nid(jc,jm) /= -1 ) WRITE(numout,*) "variable defined in the namcouple" 319 IF(ssnd(ji)%nid(jc,jm) == -1 ) WRITE(numout,*) "variable NOT defined in the namcouple" 320 IF(lflush) CALL flush(numout) 321 ENDIF 317 322 END DO 318 323 END DO … … 351 356 END IF 352 357 #endif 353 IF( ln_ctl ) WRITE(numout,*) "Define", ji, jc, jm, " "//TRIM(zclname), " for ", OASIS_In 354 flush(numout) 358 IF( ln_ctl ) THEN 359 WRITE(numout,*) "Define", ji, jc, jm, " "//TRIM(zclname), " for ", OASIS_In 360 IF(lflush) CALL flush(numout) 361 ENDIF 355 362 356 363 ! Define 0D (Greenland or Antarctic ice mass) or 1D (river outflow) coupling fields … … 394 401 CALL oasis_abort ( srcv(ji)%nid(jc,jm), 'cpl_define', 'Failure in oasis_def_var' ) 395 402 ENDIF 396 IF( ln_ctl .AND. srcv(ji)%nid(jc,jm) /= -1 ) WRITE(numout,*) "variable defined in the namcouple" 397 IF( ln_ctl .AND. srcv(ji)%nid(jc,jm) == -1 ) WRITE(numout,*) "variable NOT defined in the namcouple" 398 403 IF(ln_ctl) THEN 404 IF(srcv(ji)%nid(jc,jm) /= -1 ) WRITE(numout,*) "variable defined in the namcouple" 405 IF(srcv(ji)%nid(jc,jm) == -1 ) WRITE(numout,*) "variable NOT defined in the namcouple" 406 IF(lflush) CALL flush(numout) 407 ENDIF 399 408 END DO 400 409 END DO … … 447 456 WRITE(numout,*) ' - Sum value is ', SUM(pdata(:,:,jc)) 448 457 WRITE(numout,*) '****************' 458 IF(lflush) CALL flush(numout) 449 459 ENDIF 450 460 ENDIF … … 491 501 & kinfo == OASIS_RecvOut .OR. kinfo == OASIS_FromRestOut 492 502 493 IF ( ln_ctl ) WRITE(numout,*) "llaction, kinfo, kstep, ivarid: " , llaction, kinfo, kstep, srcv(kid)%nid(jc,jm) 503 IF ( ln_ctl ) THEN 504 WRITE(numout,*) "llaction, kinfo, kstep, ivarid: " , llaction, kinfo, kstep, srcv(kid)%nid(jc,jm) 505 IF(lflush) CALL flush(numout) 506 ENDIF 494 507 495 508 IF ( llaction ) THEN … … 513 526 WRITE(numout,*) ' - Sum value is ', SUM(pdata(:,:,jc)) 514 527 WRITE(numout,*) '****************' 528 IF(lflush) CALL flush(numout) 515 529 ENDIF 516 530 … … 603 617 WRITE(numout,*) ' - Start of data is ', pdata(1:number_to_print) 604 618 WRITE(numout,*) '****************' 619 IF(lflush) CALL flush(numout) 605 620 ENDIF 606 621 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_rnf_1d.F90
r10759 r10774 70 70 IF(lwp) WRITE(numout,*) 'cpl_rnf_1d_init : initialization of river runoff coupling' 71 71 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 72 IF(lwp .AND. lflush) CALL flush(numout) 72 73 73 74 REWIND(numnam_cfg) … … 87 88 IF(lwp) WRITE(numout,*) ' Print river information = ',ln_print_river_info 88 89 IF(lwp) WRITE(numout,*) ' ' 90 IF(lwp .AND. lflush) CALL flush(numout) 89 91 90 92 ! Assign space for river numbers … … 109 111 110 112 ! Print out the largest river number 111 IF ( ln_print_river_info ) THEN113 IF ( ln_print_river_info .AND. lwp) THEN 112 114 WRITE(numout,*) 'Maximum river number in input file = ',max_river 115 IF(lflush) CALL flush(numout) 113 116 END IF 114 117 … … 137 140 rivers%river_area(:) = REAL(rivers%river_area_c(:),wp) 138 141 139 IF ( ln_print_river_info ) THEN142 IF ( ln_print_river_info .AND. lwp) THEN 140 143 WRITE(numout,*) 'Area of rivers 1 to 10 are ',rivers%river_area(1:10) 144 IF(lflush) CALL flush(numout) 141 145 END IF 142 146 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/fldread.F90
r10770 r10774 281 281 & 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 282 282 WRITE(numout, *) 'it_offset is : ',it_offset 283 IF(lflush) CALL flush(numout) 283 284 ENDIF 284 285 ! temporal interpolation weights … … 293 294 WRITE(numout, clfmt) TRIM(sd(jf)%clvar), kt, REAL(isecsbc,wp)/rday, nyear, nmonth, nday, & 294 295 & sd(jf)%nrec_a(1), REAL(sd(jf)%nrec_b(2),wp)/rday, REAL(sd(jf)%nrec_a(2),wp)/rday 296 IF(lflush) CALL flush(numout) 295 297 ENDIF 296 298 ENDIF … … 414 416 415 417 clfmt = "('fld_init : time-interpolation for ', a, ' read previous record = ', i6, ' at time = ', f7.2, ' days')" 416 IF(lwp .AND. nprint > 0) WRITE(numout, clfmt) TRIM(sdjf%clvar), sdjf%nrec_a(1), REAL(sdjf%nrec_a(2),wp)/rday 418 IF(lwp .AND. nprint > 0) THEN 419 WRITE(numout, clfmt) TRIM(sdjf%clvar), sdjf%nrec_a(1), REAL(sdjf%nrec_a(2),wp)/rday 420 ENDIF 417 421 418 422 ENDIF … … 708 712 IF(lwp) WRITE(numout,*) 'Dim size for ',TRIM(clvar),' is ', ilendta 709 713 IF(lwp) WRITE(numout,*) 'Number of levels for ',TRIM(clvar),' is ', ipk 714 IF(lwp .AND. lflush) CALL flush(numout) 710 715 711 716 SELECT CASE( ipk ) … … 779 784 END DO 780 785 sd(ju)%rotn(jn) = .TRUE. ! vector was rotated 781 IF( lwp .AND. kt == nit000 ) WRITE(numout,*) & 786 IF( lwp .AND. kt == nit000 ) THEN 787 WRITE(numout,*) & 782 788 & 'fld_read: vector pair ('//TRIM(sd(ju)%clvar)//', '//TRIM(sd(iv)%clvar)//') rotated on to model grid' 789 IF(lflush) CALL flush(numout) 790 ENDIF 783 791 ENDIF 784 792 ENDIF … … 941 949 & ' data type: ' , sdf(jf)%cltype , & 942 950 & ' land/sea mask:' , TRIM( sdf(jf)%lsmname ) 943 IF(nprint > 4) call flush(numout)944 951 END DO 952 IF(lflush) CALL flush(numout) 945 953 ENDIF 946 954 … … 1019 1027 ENDIF 1020 1028 END DO 1029 1030 IF(lflush) CALL flush(numout) 1031 1021 1032 ENDIF 1022 1033 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r10759 r10774 99 99 WRITE(numout,*) ' Namelist namsbc_apr : Atmospheric PRessure as extrenal forcing' 100 100 WRITE(numout,*) ' ref. pressure: global mean Patm (T) or a constant (F) ln_ref_apr = ', ln_ref_apr 101 IF(lflush) CALL flush(numout) 101 102 ENDIF 102 103 ! … … 114 115 IF(lwp) WRITE(numout,*) ' Inverse barometer added to OBC ssh data' 115 116 ENDIF 117 118 IF(lwp .AND. lflush) CALL flush(numout) 119 116 120 IF( ( ln_apr_obc ) .AND. .NOT. lk_dynspg_ts ) & 117 121 CALL ctl_stop( 'sbc_apr: use inverse barometer ssh at open boundary ONLY possible with time-splitting' ) … … 152 156 ssh_ibb(:,:) = ssh_ib(:,:) 153 157 ENDIF 158 159 IF(lwp .AND. lflush) CALL flush(numout) 160 154 161 ENDIF 155 162 ! ! ---------------------------------------- ! … … 159 166 IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 160 167 IF(lwp) WRITE(numout,*) '~~~~' 168 IF(lwp .AND. lflush) CALL flush(numout) 161 169 IF(nn_timing == 2) CALL timing_start('iom_rstput') 162 170 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r10759 r10774 331 331 ENDIF 332 332 333 IF(lwp .AND. lflush) CALL flush(numout) 333 334 ! ! allocate sbccpl arrays 334 335 !IF( sbc_cpl_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'sbc_cpl_alloc : unable to allocate arrays' ) … … 480 481 IF(lwp) WRITE(numout,*) 481 482 IF(lwp) WRITE(numout,*) ' runoffs received from oasis -> force ln_rnf = ', ln_rnf 483 IF(lwp .AND. lflush) CALL flush(numout) 482 484 ENDIF 483 485 ! … … 630 632 WRITE(numout,*)' wind stress module' 631 633 WRITE(numout,*) 634 IF(lflush) CALL flush(numout) 632 635 ENDIF 633 636 ENDIF … … 677 680 WRITE(numout,*)' fraction of solar net radiation absorbed in the first ocean level' 678 681 WRITE(numout,*) 682 IF(lflush) CALL flush(numout) 679 683 ENDIF 680 684 ENDIF … … 907 911 WRITE(numout,*)' fraction of solar net radiation absorbed in the first ocean level' 908 912 WRITE(numout,*) 913 IF(lflush) CALL flush(numout) 909 914 ENDIF 910 915 ENDIF … … 947 952 WRITE(numout,*)' wind stress U,V components' 948 953 WRITE(numout,*)' wind stress module' 954 IF(lflush) CALL flush(numout) 949 955 ENDIF 950 956 ENDIF … … 1471 1477 IF(lwp) WRITE(numout,*) 'Greenland icesheet mass rate of change (kg/s) is ', greenland_icesheet_mass_rate_of_change 1472 1478 IF(lwp) WRITE(numout,*) 'Greenland icesheet seconds lapsed since last change is ', greenland_icesheet_timelapsed 1479 IF(lwp .AND. lflush) CALL flush(numout) 1473 1480 ELSE IF ( nn_coupled_iceshelf_fluxes == 2 ) THEN 1474 1481 greenland_icesheet_mass_rate_of_change = rn_greenland_total_fw_flux … … 1518 1525 IF(lwp) WRITE(numout,*) 'Antarctica icesheet mass rate of change (kg/s) is ', antarctica_icesheet_mass_rate_of_change 1519 1526 IF(lwp) WRITE(numout,*) 'Antarctica icesheet seconds lapsed since last change is ', antarctica_icesheet_timelapsed 1527 IF(lwp .AND. lflush) CALL flush(numout) 1520 1528 ELSE IF ( nn_coupled_iceshelf_fluxes == 2 ) THEN 1521 1529 antarctica_icesheet_mass_rate_of_change = rn_antarctica_total_fw_flux -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcdcy.F90
r6486 r10774 99 99 WRITE(numout,*) '~~~~~~~' 100 100 WRITE(numout,*) 101 IF(lflush) CALL flush(numout) 101 102 ENDIF 102 103 ! allocate sbcdcy arrays -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcflx.F90
r10759 r10774 159 159 CALL lbc_lnk( taum(:,:), 'T', 1. ) ; CALL lbc_lnk( wndm(:,:), 'T', 1. ) 160 160 161 IF( n itend-nit000 <= 100.AND. lwp ) THEN ! control print (if less than 100 time-step asked)161 IF( nprint > 2 .AND. lwp ) THEN ! control print (if less than 100 time-step asked) 162 162 WRITE(numout,*) 163 163 WRITE(numout,*) ' read daily momentum, heat and freshwater fluxes OK' … … 170 170 CALL prihre( sf(jf)%fnow, jpi, jpj, 1, jpi, 20, 1, jpj, 10, zfact, numout ) 171 171 END DO 172 CALL FLUSH(numout)172 IF(lflush) CALL flush(numout) 173 173 ENDIF 174 174 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcfwb.F90
r10754 r10774 86 86 IF( kn_fwb == 2 ) WRITE(numout,*) ' adjusted from previous year budget' 87 87 IF( kn_fwb == 3 ) WRITE(numout,*) ' fwf set to zero and spread out over erp area' 88 IF(lflush) CALL flush(numout) 88 89 ENDIF 89 90 ! … … 127 128 IF(lwp)WRITE(numout,*)' year = ',iyear-1, ' freshwater budget read = ', a_fwb 128 129 IF(lwp)WRITE(numout,*)' year = ',iyear-2, ' freshwater budget read = ', a_fwb_b 130 IF(lwp .AND. lflush) CALL flush(numout) 129 131 ENDIF 130 132 ! ! Update fwfold if new year start … … 201 203 WRITE(numout,*)' MIN(zerp_cor) = ', MINVAL(zerp_cor) 202 204 WRITE(numout,*)' MAX(zerp_cor) = ', MAXVAL(zerp_cor) 205 IF(lflush) CALL flush(numout) 203 206 ENDIF 204 207 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90
r10770 r10774 182 182 CALL wrk_alloc( jpi,jpj, ztmp1, ztmp2 ) 183 183 ! 184 IF(lwp .AND. nprint>1) WRITE(numout,*)'cice_sbc_init' 184 IF(lwp .AND. nprint>1) THEN 185 WRITE(numout,*)'cice_sbc_init' 186 IF(lflush) CALL flush(numout) 187 ENDIF 185 188 186 189 ji_off = INT ( (jpiglo - nx_global) / 2 ) … … 342 345 343 346 IF( kt == nit000 ) THEN 344 IF(lwp .AND. nprint>1) WRITE(numout,*)'cice_sbc_in' 347 IF(lwp .AND. nprint>1) THEN 348 WRITE(numout,*)'cice_sbc_in' 349 IF(lflush) CALL flush(numout) 350 ENDIF 345 351 ENDIF 346 352 … … 583 589 584 590 IF( kt == nit000 ) THEN 585 IF(lwp .AND. nprint>1) WRITE(numout,*)'cice_sbc_out' 591 IF(lwp .AND. nprint>1) THEN 592 WRITE(numout,*)'cice_sbc_out' 593 IF(lflush) CALL flush(numout) 594 ENDIF 586 595 ENDIF 587 596 … … 820 829 !!--------------------------------------------------------------------- 821 830 822 IF(lwp .AND. nprint > 1) WRITE(numout,*)'cice_sbc_final' 831 IF(lwp .AND. nprint > 1) THEN 832 WRITE(numout,*)'cice_sbc_final' 833 IF(lflush) CALL flush(numout) 834 ENDIF 823 835 824 836 CALL CICE_Finalize … … 943 955 WRITE(numout,*) 944 956 WRITE(numout,*) ' read forcing fluxes for CICE OK' 945 CALL FLUSH(numout)957 IF(lflush) CALL flush(numout) 946 958 ENDIF 947 959 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcisf.F90
r10759 r10774 124 124 IF ( lwp ) WRITE(numout,*) ' nn_gammablk = ', nn_gammablk 125 125 IF ( lwp ) WRITE(numout,*) ' rn_tfri2 = ', rn_tfri2 126 IF(lwp .AND. lflush) CALL flush(numout) 126 127 IF (ln_divisf) THEN ! keep it in the namelist ??? used true anyway as for runoff ? (PM) 127 128 rdivisf = 1._wp -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90
r10770 r10774 99 99 WRITE(numout,*) 'sbc_init : surface boundary condition setting' 100 100 WRITE(numout,*) '~~~~~~~~ ' 101 IF(lflush) CALL flush(numout) 101 102 ENDIF 102 103 … … 160 161 END SELECT 161 162 ! 163 IF(lwp .AND. lflush) CALL flush(numout) 164 ! 162 165 IF ( nn_components /= jp_iam_nemo .AND. .NOT. lk_oasis ) & 163 166 & CALL ctl_stop( 'STOP', 'sbc_init : OPA-SAS coupled via OASIS, but key_oasis3 disabled' ) … … 264 267 IF( nn_components/= jp_iam_nemo ) & 265 268 & WRITE(numout,*) ' + OASIS coupled SAS' 269 IF(lflush) CALL flush(numout) 266 270 ENDIF 267 271 ! … … 283 287 WRITE(numout,*)" OPA-SAS coupled via OASIS : nn_fsbc re-defined from OASIS namcouple ", nn_fsbc 284 288 WRITE(numout,*) 289 IF(lflush) CALL flush(numout) 285 290 ENDIF 286 291 ENDIF … … 421 426 IF( ln_rstart .AND. & !* Restart: read in restart file 422 427 & iom_varid( numror, 'utau_b', ldstop = .FALSE. ) > 0 ) THEN 423 IF(lwp .AND. nprint > 0) WRITE(numout,*) ' nit000-1 surface forcing fields red in the restart file' 428 IF(lwp .AND. nprint > 0) THEN 429 WRITE(numout,*) ' nit000-1 surface forcing fields red in the restart file' 430 IF(lflush) CALL flush(numout) 431 ENDIF 424 432 IF(nn_timing == 2) CALL timing_start('iom_rstget') 425 433 CALL iom_get( numror, jpdom_autoglo, 'utau_b', utau_b ) ! before i-stress (U-point) … … 453 461 & 'at it= ', kt,' date= ', ndastp 454 462 WRITE(numout,*) '~~~~' 463 IF(lflush) CALL flush(numout) 455 464 ENDIF 456 465 IF(nn_timing == 2) CALL timing_start('iom_rstput') -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r10770 r10774 159 159 rnf_tsc_b(:,:,:) = rnf_tsc(:,:,:) 160 160 ENDIF 161 162 IF(lwp .AND. lflush) CALL flush(numout) 163 161 164 ENDIF 162 165 ! ! ---------------------------------------- ! … … 168 171 & 'at it= ', kt,' date= ', ndastp 169 172 WRITE(numout,*) '~~~~' 173 IF(lflush) CALL flush(numout) 170 174 ENDIF 171 175 IF(nn_timing == 2) CALL timing_start('iom_rstput') … … 296 300 WRITE(numout,*) ' depth of river mouth additional mixing rn_hrnf = ', rn_hrnf 297 301 WRITE(numout,*) ' multiplicative factor for runoff rn_rfact = ', rn_rfact 302 IF(lflush) CALL flush(numout) 298 303 ENDIF 299 304 ! ! ================== … … 305 310 IF(lwp) WRITE(numout,*) 306 311 IF(lwp) WRITE(numout,*) ' runoffs inflow read in a file' 312 IF(lwp .AND. lflush) CALL flush(numout) 307 313 IF( ierror > 0 ) THEN 308 314 CALL ctl_stop( 'sbc_rnf: unable to allocate sf_rnf structure' ) ; RETURN … … 316 322 IF(lwp) WRITE(numout,*) 317 323 IF(lwp) WRITE(numout,*) ' runoffs temperatures read in a file' 324 IF(lwp .AND. lflush) CALL flush(numout) 318 325 ALLOCATE( sf_t_rnf(1), STAT=ierror ) 319 326 IF( ierror > 0 ) THEN … … 328 335 IF(lwp) WRITE(numout,*) 329 336 IF(lwp) WRITE(numout,*) ' runoffs salinities read in a file' 337 IF(lwp .AND. lflush) CALL flush(numout) 330 338 ALLOCATE( sf_s_rnf(1), STAT=ierror ) 331 339 IF( ierror > 0 ) THEN … … 340 348 IF(lwp) WRITE(numout,*) 341 349 IF(lwp) WRITE(numout,*) ' runoffs depth read in a file' 350 IF(lwp .AND. lflush) CALL flush(numout) 342 351 rn_dep_file = TRIM( cn_dir )//TRIM( sn_dep_rnf%clname ) 343 352 IF( .NOT. sn_dep_rnf%ln_clim ) THEN ; WRITE(rn_dep_file, '(a,"_y",i4)' ) TRIM( rn_dep_file ), nyear ! add year … … 380 389 IF(lwp) WRITE(numout,*) ' depth over which runoffs is spread rn_dep_max = ', rn_dep_max 381 390 IF(lwp) WRITE(numout,*) ' create (=1) a runoff depth file or not (=0) nn_rnf_depth_file = ', nn_rnf_depth_file 391 IF(lwp .AND. lflush) CALL flush(numout) 382 392 383 393 CALL iom_open( TRIM( sn_rnf%clname ), inum ) ! open runoff file … … 433 443 IF( nn_rnf_depth_file == 1 ) THEN ! save output nb levels for runoff 434 444 IF(lwp) WRITE(numout,*) ' create runoff depht file' 445 IF(lwp .AND. lflush) CALL flush(numout) 435 446 CALL iom_open ( TRIM( sn_dep_rnf%clname ), inum, ldwrt = .TRUE., kiolib = jprstlib ) 436 447 CALL iom_rstput( 0, 0, inum, 'rodepth', h_rnf ) … … 470 481 IF(lwp) WRITE(numout,*) ' - set to zero SSS damping (if ln_ssr=T)' 471 482 IF(lwp) WRITE(numout,*) ' - mixed upstream-centered (if ln_traadv_cen2=T)' 483 IF(lwp .AND. lflush) CALL flush(numout) 472 484 ! 473 485 CALL rnf_mouth ! set river mouth mask … … 476 488 IF(lwp) WRITE(numout,*) 477 489 IF(lwp) WRITE(numout,*) ' No specific treatment at river mouths' 490 IF(lwp .AND. lflush) CALL flush(numout) 478 491 rnfmsk (:,:) = 0._wp 479 492 rnfmsk_z(:) = 0._wp … … 511 524 IF(lwp) WRITE(numout,*) 'rnf_mouth : river mouth mask' 512 525 IF(lwp) WRITE(numout,*) '~~~~~~~~~ ' 526 IF(lwp .AND. lflush) CALL flush(numout) 513 527 ! 514 528 cl_rnfile = TRIM( cn_dir )//TRIM( sn_cnf%clname ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssm.F90
r9321 r10774 92 92 IF(lwp) WRITE(numout,*) 93 93 IF(lwp) WRITE(numout,*) '~~~~~~~ mean fields initialised to instantaneous values' 94 IF(lwp .AND. lflush) CALL flush(numout) 94 95 zcoef = REAL( nn_fsbc - 1, wp ) 95 96 ssu_m(:,:) = zcoef * ub(:,:,1) … … 156 157 & 'at it= ', kt,' date= ', ndastp 157 158 IF(lwp) WRITE(numout,*) '~~~~~~~' 159 IF(lwp .AND. lflush) CALL flush(numout) 158 160 zf_sbc = REAL( nn_fsbc, wp ) 159 161 IF(nn_timing == 2) CALL timing_start('iom_rstput') … … 257 259 ENDIF 258 260 ! 261 IF(lwp .AND. lflush) CALL flush(numout) 262 ! 259 263 END SUBROUTINE sbc_ssm_init 260 264 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssr.F90
r10759 r10774 189 189 WRITE(numout,*) ' flag to bound erp term ln_sssr_bnd = ', ln_sssr_bnd 190 190 WRITE(numout,*) ' ABS(Max./Min.) erp threshold rn_sssr_bnd = ', rn_sssr_bnd, ' mm/day' 191 IF(lflush) CALL flush(numout) 191 192 ENDIF 192 193 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/sbctide.F90
r6486 r10774 71 71 WRITE(numout,*) Wave(ntide(jk))%cname_tide, utide(jk), ftide(jk), v0tide(jk), omega_tide(jk) 72 72 END DO 73 IF(lflush) CALL flush(numout) 73 74 ENDIF 74 75 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SBC/tideini.F90
r10759 r10774 60 60 WRITE(numout,*) 'tide_init : Initialization of the tidal components' 61 61 WRITE(numout,*) '~~~~~~~~~ ' 62 IF(lflush) CALL flush(numout) 62 63 ENDIF 63 64 ! … … 90 91 WRITE(numout,*) ' ln_tide_ramp = ', ln_tide_ramp 91 92 WRITE(numout,*) ' rdttideramp = ', rdttideramp 93 IF(lflush) CALL flush(numout) 92 94 ENDIF 93 95 IF( ln_tide_ramp.AND.((nitend-nit000+1)*rdt/rday < rdttideramp) ) & -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/SOL/solver.F90
r10759 r10774 86 86 WRITE(numout,*) ' optimal coefficient of sor rn_sor = ', rn_sor 87 87 WRITE(numout,*) 88 IF(lflush) CALL flush(numout) 88 89 ENDIF 89 90 eps = rn_eps … … 100 101 CASE ( 1 ) ! preconditioned conjugate gradient solver 101 102 IF(lwp) WRITE(numout,*) ' a preconditioned conjugate gradient solver is used' 103 IF(lwp .AND. lflush) CALL flush(numout) 102 104 IF( jpr2di /= 0 .AND. jpr2dj /= 0 ) CALL ctl_stop( ' jpr2di and jpr2dj should be equal to zero' ) 103 105 ! … … 105 107 IF(lwp) WRITE(numout,*) ' a successive-over-relaxation solver with extra outer halo is used' 106 108 IF(lwp) WRITE(numout,*) ' with jpr2di =', jpr2di, ' and jpr2dj =', jpr2dj 109 IF(lwp .AND. lflush) CALL flush(numout) 107 110 IF( .NOT. lk_mpp .AND. jpr2di /= 0 .AND. jpr2dj /= 0 ) THEN 108 111 CALL ctl_stop( 'jpr2di and jpr2dj are not equal to zero', & -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/eosbn2.F90
r10759 r10774 1258 1258 WRITE(numout,*) ' model does not use Conservative Temperature' 1259 1259 ENDIF 1260 IF(lflush) CALL flush(numout) 1260 1261 ENDIF 1261 1262 ! … … 1272 1273 IF(lwp) WRITE(numout,*) 1273 1274 IF(lwp) WRITE(numout,*) ' use of TEOS-10 equation of state (cons. temp. and abs. salinity)' 1275 IF(lwp .AND. lflush) CALL flush(numout) 1274 1276 ! 1275 1277 rdeltaS = 32._wp … … 1462 1464 IF(lwp) WRITE(numout,*) 1463 1465 IF(lwp) WRITE(numout,*) ' use of EOS-80 equation of state (pot. temp. and pract. salinity)' 1466 IF(lwp .AND. lflush) CALL flush(numout) 1464 1467 ! 1465 1468 rdeltaS = 20._wp … … 1662 1665 WRITE(numout,*) ' 2nd cabbel. coef. rn_nu = ', rn_nu 1663 1666 WRITE(numout,*) ' Caution: rn_beta0=0 incompatible with ddm parameterization ' 1667 IF(lflush) CALL flush(numout) 1664 1668 ENDIF 1665 1669 ! … … 1681 1685 IF(lwp) WRITE(numout,*) ' rau0 * rcp rau0_rcp = ', rau0_rcp 1682 1686 IF(lwp) WRITE(numout,*) ' 1. / ( rau0 * rcp ) r1_rau0_rcp = ', r1_rau0_rcp 1687 IF(lwp .AND. lflush) CALL flush(numout) 1683 1688 ! 1684 1689 END SUBROUTINE eos_init -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv.F90
r10759 r10774 223 223 WRITE(numout,*) ' upstream scheme within muscl ln_traadv_msc_ups = ', ln_traadv_msc_ups 224 224 WRITE(numout,*) ' TVD advection scheme with zts ln_traadv_tvd_zts = ', ln_traadv_tvd_zts 225 IF(lflush) CALL flush(numout) 225 226 ENDIF 226 227 … … 260 261 IF( nadv == 7 ) WRITE(numout,*) ' TVD ZTS scheme is used' 261 262 IF( nadv == -1 ) WRITE(numout,*) ' esopa test: use all advection scheme' 263 IF(lflush) CALL flush(numout) 262 264 ENDIF 263 265 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_cen2.F90
r9321 r10774 139 139 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~ ' 140 140 IF(lwp) WRITE(numout,*) 141 IF(lwp .AND. lflush) CALL flush(numout) 141 142 ! 142 143 IF( .NOT. ALLOCATED( upsmsk ) ) THEN -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_eiv.F90
r7179 r10774 97 97 IF(lwp) WRITE(numout,*) 'tra_adv_eiv : eddy induced advection on ', cdtype,' :' 98 98 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ add to velocity fields the eiv component' 99 IF(lwp .AND. lflush) CALL flush(numout) 99 100 # if defined key_diaeiv 100 101 IF( cdtype == 'TRA') THEN -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_mle.F90
r10759 r10774 306 306 WRITE(numout,*) ' =1 no MLE in case of convection ; =0 always MLE nn_conv = ', nn_conv 307 307 WRITE(numout,*) ' Density difference used to define ML for FK rn_rho_c_mle = ', rn_rho_c_mle 308 IF(lflush) CALL flush(numout) 308 309 ENDIF 309 310 ! … … 317 318 WRITE(numout,*) ' Mixed Layer Eddy parametrisation NOT used' 318 319 ENDIF 320 321 IF(lflush) CALL flush(numout) 322 319 323 ENDIF 320 324 ! … … 325 329 IF(lwp) WRITE(numout,*) ' ML buoyancy criteria = ', rb_c, ' m/s2 ' 326 330 IF(lwp) WRITE(numout,*) ' associated ML density criteria defined in zdfmxl = ', rho_c, 'kg/m3' 331 IF(lwp .AND. lflush) CALL flush(numout) 327 332 ! 328 333 IF( nn_mle == 0 ) THEN ! MLE array allocation & initialisation -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_muscl.F90
r7771 r10774 99 99 IF(lwp) WRITE(numout,*) '~~~~~~~' 100 100 IF(lwp) WRITE(numout,*) 101 IF(lwp .AND. lflush) CALL flush(numout) 101 102 ! 102 103 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_muscl2.F90
r7179 r10774 84 84 IF(lwp) WRITE(numout,*) 'tra_adv_muscl2 : MUSCL2 advection scheme on ', cdtype 85 85 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~~' 86 IF(lwp .AND. lflush) CALL flush(numout) 86 87 ENDIF 87 88 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_qck.F90
r7179 r10774 101 101 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 102 102 IF(lwp) WRITE(numout,*) 103 IF(lwp .AND. lflush) CALL flush(numout) 103 104 ENDIF 104 105 l_trd = .FALSE. -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_tvd.F90
r10020 r10774 102 102 IF(lwp) WRITE(numout,*) 'tra_adv_tvd : TVD advection scheme on ', cdtype 103 103 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 104 IF(lwp .AND. lflush) CALL flush(numout) 104 105 ! 105 106 ENDIF … … 383 384 IF(lwp) WRITE(numout,*) 'tra_adv_tvd_zts : TVD ZTS advection scheme on ', cdtype 384 385 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 386 IF(lwp .AND. lflush) CALL flush(numout) 385 387 ENDIF 386 388 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_ubs.F90
r7179 r10774 101 101 IF(lwp) WRITE(numout,*) 'tra_adv_ubs : horizontal UBS advection scheme on ', cdtype 102 102 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 103 IF(lwp .AND. lflush) CALL flush(numout) 103 104 ENDIF 104 105 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/trabbc.F90
r10759 r10774 158 158 WRITE(numout,*) ' Constant geothermal flux value rn_geoflx_cst = ', rn_geoflx_cst 159 159 WRITE(numout,*) 160 IF(lflush) CALL flush(numout) 160 161 ENDIF 161 162 … … 196 197 IF(lwp) WRITE(numout,*) ' *** no geothermal heat flux' 197 198 ENDIF 199 IF(lwp .AND. lflush) CALL flush(numout) 198 200 ! 199 201 END SUBROUTINE tra_bbc_init -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/trabbl.F90
r10759 r10774 358 358 IF(lwp) WRITE(numout,*) 'trabbl:bbl : Compute bbl velocities and diffusive coefficients in ', cdtype 359 359 IF(lwp) WRITE(numout,*) '~~~~~~~~~~' 360 IF(lflush) CALL flush(numout) 360 361 ENDIF 361 362 ! !* bottom variables (T, S, alpha, beta, depth, velocity) … … 530 531 WRITE(numout,*) ' diffusive bbl coefficient rn_ahtbbl = ', rn_ahtbbl, ' m2/s' 531 532 WRITE(numout,*) ' advective bbl coefficient rn_gambbl = ', rn_gambbl, ' s' 533 IF(lflush) CALL flush(numout) 532 534 ENDIF 533 535 … … 538 540 IF( nn_bbl_adv == 1 ) WRITE(numout,*) ' * Advective BBL using upper velocity' 539 541 IF( nn_bbl_adv == 2 ) WRITE(numout,*) ' * Advective BBL using velocity = F( delta rho)' 542 IF(lflush) CALL flush(numout) 540 543 ENDIF 541 544 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/tradmp.F90
r10759 r10774 214 214 WRITE(numout,*) ' Damping file name cn_resto = ', cn_resto 215 215 WRITE(numout,*) 216 IF(lflush) CALL flush(numout) 216 217 ENDIF 217 218 … … 227 228 CASE ( 2 ) ; IF(lwp) WRITE(numout,*) ' no tracer damping in the mixed layer' 228 229 END SELECT 230 IF(lwp .AND. lflush) CALL flush(numout) 229 231 230 232 !TG: Initialisation of dtatsd - Would it be better to have dmpdta routine -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traldf.F90
r6498 r10774 159 159 WRITE(numout,*) ' see ldf_tra_init report for lateral mixing parameters' 160 160 WRITE(numout,*) 161 IF(lflush) CALL flush(numout) 161 162 ENDIF 162 163 … … 227 228 IF( lk_esopa ) THEN 228 229 IF(lwp) WRITE(numout,*) ' esopa control: use all lateral physics options' 230 IF(lwp .AND. lflush) CALL flush(numout) 229 231 nldf = -1 230 232 ENDIF … … 238 240 IF( nldf == 2 ) WRITE(numout,*) ' bilaplacian operator' 239 241 IF( nldf == 3 ) WRITE(numout,*) ' Rotated bilaplacian' 242 IF(lflush) CALL flush(numout) 240 243 ENDIF 241 244 … … 278 281 WRITE(numout,*) 'tra:ldf_ano : lateral diffusion acting on anomalies' 279 282 WRITE(numout,*) '~~~~~~~~~~~' 283 IF(lflush) CALL flush(numout) 280 284 ENDIF 281 285 … … 292 296 zs_ref(:,:,:) = 35.0 * tmask(:,:,:) 293 297 IF(lwp) WRITE(numout,*) ' homogeneous ocean T = ', zt0, ' S = ',zs0 298 IF(lwp .AND. lflush) CALL flush(numout) 294 299 295 300 ! Initialisation of gtui/gtvi in case of no cavity … … 359 364 WRITE(numout,*) 'tra:ldf_ano : lateral diffusion acting on the full fields' 360 365 WRITE(numout,*) '~~~~~~~~~~~' 366 IF(lflush) CALL flush(numout) 361 367 ENDIF 362 368 END SUBROUTINE ldf_ano -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_bilap.F90
r7179 r10774 102 102 IF(lwp) WRITE(numout,*) 'tra_ldf_bilap : iso-level biharmonic operator on ', cdtype 103 103 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~' 104 IF(lwp .AND. lflush) CALL flush(numout) 104 105 ENDIF 105 106 ! ! =========== -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_bilapg.F90
r8280 r10774 88 88 IF(lwp) WRITE(numout,*) 'tra_ldf_bilapg : horizontal biharmonic operator in s-coordinate on ', cdtype 89 89 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~' 90 IF(lwp .AND. lflush) CALL flush(numout) 90 91 ENDIF 91 92 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_iso.F90
r7771 r10774 137 137 IF(lwp) WRITE(numout,*) 'tra_ldf_iso : rotated laplacian diffusion operator on ', cdtype 138 138 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 139 IF(lwp .AND. lflush) CALL flush(numout) 139 140 ENDIF 140 141 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_iso_grif.F90
r7179 r10774 128 128 IF(lwp) WRITE(numout,*) 'tra_ldf_iso_grif : rotated laplacian diffusion operator on ', cdtype 129 129 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 130 IF(lwp .AND. lflush) CALL flush(numout) 130 131 ALLOCATE( ah_wslp2(jpi,jpj,jpk) , zdkt3d(jpi,jpj,0:1), STAT=ierr ) 131 132 IF( lk_mpp ) CALL mpp_sum ( ierr ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_lap.F90
r7179 r10774 85 85 IF(lwp) WRITE(numout,*) 'tra_ldf_lap : iso-level laplacian diffusion on ', cdtype 86 86 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~ ' 87 IF(lwp .AND. lflush) CALL flush(numout) 87 88 ENDIF 88 89 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/tranpc.F90
r6486 r10774 164 164 END DO 165 165 WRITE(numout,*) 166 IF(lflush) CALL flush(numout) 166 167 ENDIF 167 168 … … 169 170 IF( jiter == 1 ) inpcc = inpcc + 1 170 171 171 IF( lp_monitor_point ) WRITE(numout, *) 'Negative N2 at ikp =',ikp,' for layer #', ilayer 172 IF( lp_monitor_point ) THEN 173 WRITE(numout, *) 'Negative N2 at ikp =',ikp,' for layer #', ilayer 174 IF(lflush) CALL flush(numout) 175 ENDIF 172 176 173 177 !! ikup is the uppermost point where mixing will start: … … 223 227 WRITE(numout,*) ' => Mean Alfa in that portion =', zalfa 224 228 WRITE(numout,*) ' => Mean Beta in that portion =', zbeta 229 IF(lflush) CALL flush(numout) 225 230 ENDIF 226 231 … … 285 290 END DO 286 291 WRITE(numout,*) 292 IF(lflush) CALL flush(numout) 287 293 ENDIF 288 294 ! … … 323 329 WRITE(numout,*) 'Exiting tra_npc , kt = ',kt,', => numb. of statically instable water-columns: ', inpcc 324 330 WRITE(numout,*) 331 IF(lflush) CALL flush(numout) 325 332 ENDIF 326 333 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/tranxt.F90
r9163 r10774 105 105 IF(lwp) WRITE(numout,*) 'tra_nxt : achieve the time stepping by Asselin filter and array swap' 106 106 IF(lwp) WRITE(numout,*) '~~~~~~~' 107 IF(lwp .AND. lflush) CALL flush(numout) 107 108 ! 108 109 rbcp = 0.25_wp * (1._wp + atfp) * (1._wp + atfp) * ( 1._wp - atfp) ! Brown & Campana parameter for semi-implicit hpg … … 243 244 IF(lwp) WRITE(numout,*) 'tra_nxt_fix : time stepping', cdtype 244 245 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 246 IF(lwp .AND. lflush) CALL flush(numout) 245 247 ENDIF 246 248 ! … … 317 319 IF(lwp) WRITE(numout,*) 'tra_nxt_vvl : time stepping', cdtype 318 320 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 321 IF(lwp .AND. lflush) CALL flush(numout) 319 322 ENDIF 320 323 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/traqsr.F90
r10770 r10774 119 119 IF(lwp) WRITE(numout,*) 'tra_qsr : penetration of the surface solar radiation' 120 120 IF(lwp) WRITE(numout,*) '~~~~~~~' 121 IF(lwp .AND. lflush) CALL flush(numout) 121 122 IF( .NOT.ln_traqsr ) RETURN 122 123 ENDIF … … 135 136 IF( ln_rstart .AND. & ! Restart: read in restart file 136 137 & iom_varid( numror, 'qsr_hc_b', ldstop = .FALSE. ) > 0 ) THEN 137 IF(lwp .AND. nprint >0) WRITE(numout,*) ' nit000-1 qsr tracer content forcing field red in the restart file' 138 IF(lwp .AND. nprint >0) THEN 139 WRITE(numout,*) ' nit000-1 qsr tracer content forcing field red in the restart file' 140 IF(lflush) CALL flush(numout) 141 ENDIF 138 142 zfact = 0.5e0 139 143 CALL iom_get( numror, jpdom_autoglo, 'qsr_hc_b', qsr_hc_b ) ! before heat content trend due to Qsr flux … … 369 373 & 'at it= ', kt,' date= ', ndastp 370 374 WRITE(numout,*) '~~~~' 375 IF(lflush) CALL flush(numout) 371 376 ENDIF 372 377 IF(nn_timing == 2) CALL timing_start('iom_rstput') … … 456 461 WRITE(numout,*) ' RGB & 2 bands: shortess depth of extinction rn_si0 = ', rn_si0 457 462 WRITE(numout,*) ' 2 bands: longest depth of extinction rn_si1 = ', rn_si1 463 IF(lflush) CALL flush(numout) 458 464 ENDIF 459 465 … … 487 493 IF( nqsr == 4 ) WRITE(numout,*) ' 2 bands light penetration' 488 494 IF( nqsr == 5 ) WRITE(numout,*) ' bio-model light penetration' 495 IF(lflush) CALL flush(numout) 489 496 ENDIF 490 497 ! … … 569 576 ENDIF 570 577 ! 578 IF(lwp .AND. lflush) CALL flush(numout) 579 ! 571 580 ENDIF 572 581 ! ! ---------------------------------- ! … … 578 587 IF(lwp) THEN 579 588 WRITE(numout,*) 580 IF(lwp) WRITE(numout,*) ' level of light extinction = ', nksr, ' ref depth = ', gdepw_1d(nksr+1), ' m' 589 WRITE(numout,*) ' level of light extinction = ', nksr, ' ref depth = ', gdepw_1d(nksr+1), ' m' 590 IF(lflush) CALL flush(numout) 581 591 ENDIF 582 592 ! 583 593 IF( lk_vvl ) THEN ! variable volume 584 594 IF(lwp) WRITE(numout,*) ' key_vvl: light distribution will be computed at each time step' 595 IF(lwp .AND. lflush) CALL flush(numout) 585 596 ELSE ! constant volume: computes one for all 586 597 zz0 = rn_abs * r1_rau0_rcp … … 606 617 WRITE(numout,*) 'tra_qsr_init : NO solar flux penetration' 607 618 WRITE(numout,*) '~~~~~~~~~~~~' 619 IF(lflush) CALL flush(numout) 608 620 ENDIF 609 621 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r10770 r10774 133 133 IF(lwp) WRITE(numout,*) 'tra_sbc : TRAcer Surface Boundary Condition' 134 134 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 135 IF(lwp .AND. lflush) CALL flush(numout) 135 136 ENDIF 136 137 … … 157 158 & iom_varid( numror, 'sbc_hc_b', ldstop = .FALSE. ) > 0 ) THEN 158 159 IF(lwp) WRITE(numout,*) ' nit000-1 surface tracer content forcing fields red in the restart file' 160 IF(lwp .AND. lflush) CALL flush(numout) 159 161 zfact = 0.5_wp 160 162 CALL iom_get( numror, jpdom_autoglo, 'sbc_hc_b', sbc_tsc_b(:,:,jp_tem) ) ! before heat content sbc trend … … 214 216 & 'at it= ', kt,' date= ', ndastp 215 217 WRITE(numout,*) '~~~~' 218 IF(lflush) CALL flush(numout) 216 219 ENDIF 217 220 IF(nn_timing == 2) CALL timing_start('iom_rstput') … … 262 265 & 'at it= ', kt,' date= ', ndastp 263 266 WRITE(numout,*) '~~~~' 267 IF(lflush) CALL flush(numout) 264 268 ENDIF 265 269 IF(nn_timing == 2) CALL timing_start('iom_rstput') -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/trazdf.F90
r8104 r10774 163 163 IF( nzdf == 0 ) WRITE(numout,*) ' Explicit time-splitting scheme' 164 164 IF( nzdf == 1 ) WRITE(numout,*) ' Implicit (euler backward) scheme' 165 IF(lflush) CALL flush(numout) 165 166 ENDIF 166 167 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/trazdf_exp.F90
r6486 r10774 100 100 IF(lwp) WRITE(numout,*) 'tra_zdf_exp : explicit vertical mixing on ', cdtype 101 101 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 102 IF(lwp .AND. lflush) CALL flush(numout) 102 103 ENDIF 103 104 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRA/trazdf_imp.F90
r6486 r10774 99 99 IF(lwp)WRITE(numout,*) 'tra_zdf_imp : implicit vertical mixing on ', cdtype 100 100 IF(lwp)WRITE(numout,*) '~~~~~~~~~~~ ' 101 IF(lwp .AND. lflush) CALL flush(numout) 101 102 ! 102 103 IF( lk_vvl ) THEN ; r_vvl = 1._wp ! Variable volume indicator -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdglo.F90
r6486 r10774 285 285 WRITE (numout,9513) umo(jpdyn_tau) / tvolu, vmo(jpdyn_tau) / tvolv 286 286 IF( ln_bfrimp ) WRITE (numout,9514) umo(jpdyn_bfri) / tvolu, vmo(jpdyn_bfri) / tvolv 287 IF(lflush) CALL flush(numout) 287 288 ENDIF 288 289 … … 324 325 WRITE (numout,9533) hke(jpdyn_tau) / tvolt 325 326 IF( ln_bfrimp ) WRITE (numout,9534) hke(jpdyn_bfri) / tvolt 327 IF(lflush) CALL flush(numout) 326 328 ENDIF 327 329 … … 356 358 WRITE (numout,*) 357 359 WRITE (numout,*) 360 IF(lflush) CALL flush(numout) 358 361 ENDIF 359 362 … … 424 427 & ( smo(jptra_xad) + smo(jptra_yad) + smo(jptra_zad) + smo(jptra_ldf) + smo(jptra_zdf) & 425 428 & + smo(jptra_npc) + smo(jptra_dmp) + smo(jptra_nsr) ) / tvolt 429 IF(lflush) CALL flush(numout) 426 430 ENDIF 427 431 … … 459 463 & ( s2(jptra_xad) + s2(jptra_yad) + s2(jptra_zad) + s2(jptra_ldf) + s2(jptra_zdf) & 460 464 & + s2(jptra_npc) + s2(jptra_dmp) + s2(jptra_nsr) ) / tvolt 465 IF(lflush) CALL flush(numout) 461 466 ENDIF 462 467 … … 491 496 WRITE (numout,9448) t2(jptra_zdf)/tvolt, s2(jptra_zdf)/tvolt 492 497 WRITE (numout,9449) t2(jptra_npc)/tvolt, s2(jptra_npc)/tvolt 498 IF(lflush) CALL flush(numout) 493 499 ENDIF 494 500 … … 524 530 WRITE(numout,*) 'trd_glo_init : integral constraints properties trends' 525 531 WRITE(numout,*) '~~~~~~~~~~~~~' 532 IF(lflush) CALL flush(numout) 526 533 ENDIF 527 534 … … 534 541 535 542 IF(lwp) WRITE(numout,*) ' total ocean volume at T-point tvolt = ',tvolt 543 IF(lwp .AND. lflush) CALL flush(numout) 536 544 537 545 ! Initialization of potential to kinetic energy conversion … … 557 565 WRITE(numout,*) ' total ocean volume at U-point tvolu = ',tvolu 558 566 WRITE(numout,*) ' total ocean volume at V-point tvolv = ',tvolv 567 IF(lflush) CALL flush(numout) 559 568 ENDIF 560 569 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdini.F90
r10759 r10774 71 71 ! 72 72 WRITE(numout,*) ' frequency of trends diagnostics (glo) nn_trd = ', nn_trd 73 IF(lflush) CALL flush(numout) 73 74 ENDIF 74 75 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdken.F90
r10020 r10774 287 287 WRITE(numout,*) 'trd_ken_init : 3D Kinetic Energy trends' 288 288 WRITE(numout,*) '~~~~~~~~~~~~~' 289 IF(lflush) CALL flush(numout) 289 290 ENDIF 290 291 ! ! allocate box volume arrays -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl.F90
r10759 r10774 393 393 IF( ln_ctl ) THEN 394 394 WRITE(numout,*) ' we reach kt == nit000 + 1 = ', nit000+1 395 IF(lflush) CALL flush(numout) 395 396 CALL prt_ctl(tab2d_1=tmlbb , clinfo1=' tmlbb - : ', mask1=tmask, ovlap=1) 396 397 CALL prt_ctl(tab2d_1=tmlbn , clinfo1=' tmlbn - : ', mask1=tmask, ovlap=1) … … 403 404 IF( ln_trdmxl_instant ) THEN 404 405 WRITE(numout,*) ' restart from kt == nit000 = ', nit000 406 IF(lflush) CALL flush(numout) 405 407 CALL prt_ctl(tab2d_1=tmlbb , clinfo1=' tmlbb - : ', mask1=tmask, ovlap=1) 406 408 CALL prt_ctl(tab2d_1=tmlbn , clinfo1=' tmlbn - : ', mask1=tmask, ovlap=1) … … 408 410 ELSE 409 411 WRITE(numout,*) ' restart from kt == nit000 = ', nit000 412 IF(lflush) CALL flush(numout) 410 413 CALL prt_ctl(tab2d_1=tmlbn , clinfo1=' tmlbn - : ', mask1=tmask, ovlap=1) 411 414 CALL prt_ctl(tab2d_1=hmxlbn , clinfo1=' hmxlbn - : ', mask1=tmask, ovlap=1) … … 633 636 WRITE(numout,*) ' TRA zsmlres (jpi/2,jpj/2) : ', zsmlres (jpi/2,jpj/2) 634 637 WRITE(numout,*) ' TRA zsmlres2(jpi/2,jpj/2) : ', zsmlres2(jpi/2,jpj/2) 638 IF(lflush) CALL flush(numout) 635 639 ! 636 640 END IF … … 778 782 WRITE(numout,*) ' unit conversion factor rn_ucf = ', rn_ucf 779 783 WRITE(numout,*) ' criteria to compute the MLD rn_rho_c = ', rn_rho_c 784 IF(lflush) CALL flush(numout) 780 785 ENDIF 781 786 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl_rst.F90
r9321 r10774 69 69 ELSE ; WRITE(numout,*) ' kt = ' , kt,' date= ', ndastp 70 70 ENDIF 71 IF(lflush) CALL flush(numout) 71 72 ENDIF 72 73 … … 79 80 WRITE(numout,*) '~~~~~~~~~~' 80 81 WRITE(numout,*) 82 IF(lflush) CALL flush(numout) 81 83 ENDIF 82 84 IF(nn_timing == 2) CALL timing_start('iom_rstput') … … 145 147 WRITE(numout,*) ' trd_mxl_rst_read : read the NetCDF mixed layer trend restart file' 146 148 WRITE(numout,*) ' ~~~~~~~~~~~~~~~~' 149 IF(lflush) CALL flush(numout) 147 150 ENDIF 148 151 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdpen.F90
r7179 r10774 144 144 WRITE(numout,*) 'trd_pen_init : 3D Potential ENergy trends' 145 145 WRITE(numout,*) '~~~~~~~~~~~~~' 146 IF(lflush) CALL flush(numout) 146 147 ENDIF 147 148 ! ! allocate box volume arrays -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/TRD/trdvor.F90
r6486 r10774 209 209 IF( ndebug /= 0 ) THEN 210 210 IF(lwp) WRITE(numout,*) ' debuging trd_vor_zint: I done' 211 CALL FLUSH(numout)211 IF(lwp .AND. lflush) CALL flush(numout) 212 212 ENDIF 213 213 ! … … 305 305 IF( ndebug /= 0 ) THEN 306 306 IF(lwp) WRITE(numout,*) ' debuging trd_vor_zint: I done' 307 CALL FLUSH(numout)307 IF(lwp .AND. lflush) CALL flush(numout) 308 308 ENDIF 309 309 ! … … 434 434 WRITE(numout,*) 'trd_vor : write trends in the NetCDF file at kt = ', kt 435 435 WRITE(numout,*) '~~~~~~~ ' 436 IF(lflush) CALL flush(numout) 436 437 ENDIF 437 438 … … 452 453 IF( ndebug /= 0 ) THEN 453 454 WRITE(numout,*) ' debuging trd_vor: III.4 done' 454 CALL FLUSH(numout)455 IF(lwp .AND. lflush) CALL flush(numout) 455 456 ENDIF 456 457 ! … … 497 498 WRITE(numout,*) ' ##########################################################################' 498 499 WRITE(numout,*) ' ' 500 IF(lflush) CALL flush(numout) 499 501 ENDIF 500 502 … … 510 512 IF( ndebug /= 0 ) THEN 511 513 WRITE(numout,*) ' debuging trd_vor_init: I. done' 512 CALL FLUSH(numout)514 IF(lflush) CALL flush(numout) 513 515 ENDIF 514 516 … … 533 535 534 536 IF(lwp) WRITE(numout,*) ' netCDF initialization' 537 IF(lwp .AND. lflush) CALL flush(numout) 535 538 536 539 ! II.2 Compute julian date from starting date of the run … … 542 545 & ' YEAR ', nyear,' MONTH ' , nmonth, & 543 546 & ' DAY ' , nday, 'Julian day : ', zjulian 547 IF(lwp .AND. lflush) CALL flush(numout) 544 548 545 549 ! II.3 Define the T grid trend file (nidvor) … … 547 551 CALL dia_nam( clhstnam, nn_trd, 'vort' ) ! filename 548 552 IF(lwp) WRITE(numout,*) ' Name of NETCDF file ', clhstnam 553 IF(lwp .AND. lflush) CALL flush(numout) 549 554 CALL histbeg( clhstnam, jpi, glamf, jpj, gphif,1, jpi, & ! Horizontal grid : glamt and gphit 550 555 & 1, jpj, nit000-1, zjulian, rdt, nh_t, nidvor, domain_id=nidom, snc4chunks=snc4set ) … … 582 587 IF( ndebug /= 0 ) THEN 583 588 WRITE(numout,*) ' debuging trd_vor_init: II. done' 584 CALL FLUSH(numout)589 IF(lflush) CALL flush(numout) 585 590 ENDIF 586 591 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90
r10759 r10774 105 105 WRITE(numout,*) 'zdf_bfr : Set bottom friction coefficient (non-linear case)' 106 106 WRITE(numout,*) '~~~~~~~~' 107 IF(lflush) CALL flush(numout) 107 108 ENDIF 108 109 ! … … 262 263 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~' 263 264 IF(lwp) WRITE(numout,*) ' Namelist nam_bfr : set bottom friction parameters' 265 IF(lwp .AND. lflush) CALL flush(numout) 264 266 ! 265 267 SELECT CASE (nn_bfr) … … 399 401 ! 400 402 IF(lwp) WRITE(numout,*) ' implicit bottom friction switch ln_bfrimp = ', ln_bfrimp 403 IF(lwp .AND. lflush) CALL flush(numout) 401 404 ! 402 405 ! ! Make sure ln_zdfexp=.false. when use implicit bfr … … 430 433 WRITE(numout,*) 'BFR ', narea, nimpp+ji, njmpp+jj, ikbu 431 434 WRITE(numout,*) 'BFR ', ABS( bfrcoef2d(ji,jj) ), zfru 435 IF(lflush) CALL flush(numout) 432 436 ENDIF 433 437 ictu = ictu + 1 … … 437 441 WRITE(numout,*) 'BFR ', narea, nimpp+ji, njmpp+jj, ikbv 438 442 WRITE(numout,*) 'BFR ', bfrcoef2d(ji,jj), zfrv 443 IF(lflush) CALL flush(numout) 439 444 ENDIF 440 445 ictv = ictv + 1 … … 452 457 WRITE(numout,*) 'TFR ', narea, nimpp+ji, njmpp+jj, ikbu 453 458 WRITE(numout,*) 'TFR ', ABS( tfrcoef2d(ji,jj) ), zfru 459 IF(lflush) CALL flush(numout) 454 460 ENDIF 455 461 ictu = ictu + 1 … … 459 465 WRITE(numout,*) 'TFR ', narea, nimpp+ji, njmpp+jj, ikbv 460 466 WRITE(numout,*) 'TFR ', tfrcoef2d(ji,jj), zfrv 467 IF(lflush) CALL flush(numout) 461 468 ENDIF 462 469 ictv = ictv + 1 … … 483 490 IF ( ln_isfcav ) WRITE(numout,*) ' Top friction coefficient now ranges from: ', zmintfr, ' to ', zmaxtfr 484 491 WRITE(numout,*) ' Bottom/Top friction coefficient will be reduced where necessary' 492 IF(lflush) CALL flush(numout) 485 493 ENDIF 486 494 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfddm.F90
r10759 r10774 255 255 WRITE(numout,*) ' maximum avs for dd mixing rn_avts = ', rn_avts 256 256 WRITE(numout,*) ' heat/salt buoyancy flux ratio rn_hsbfr = ', rn_hsbfr 257 IF(lflush) CALL flush(numout) 257 258 ENDIF 258 259 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfevd.F90
r7061 r10774 69 69 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 70 70 IF(lwp) WRITE(numout,*) 71 IF(lwp .AND. lflush) CALL flush(numout) 71 72 ENDIF 72 73 -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90
r10759 r10774 903 903 WRITE(numout,*) ' Surface roughness (m) rn_hsro = ', rn_hsro 904 904 WRITE(numout,*) ' Bottom roughness (m) (nambfr namelist) rn_bfrz0 = ', rn_bfrz0 905 IF(lflush) CALL flush(numout) 905 906 ENDIF 906 907 … … 990 991 ! 991 992 END SELECT 992 993 ! 994 IF(lwp .AND. lflush) CALL flush(numout) 993 995 ! 994 996 SELECT CASE ( nn_stab_func ) !* set the parameters of the stability functions … … 1066 1068 ! 1067 1069 END SELECT 1068 1070 ! 1071 IF(lwp .AND. lflush) CALL flush(numout) 1069 1072 ! !* Set Schmidt number for psi diffusion in the wave breaking case 1070 1073 ! ! See Eq. (13) of Carniel et al, OM, 30, 225-239, 2009 … … 1118 1121 WRITE(numout,*) 'rl_sf = ',rl_sf 1119 1122 WRITE(numout,*) 1123 IF(lflush) CALL flush(numout) 1120 1124 ENDIF 1121 1125 … … 1194 1198 ELSE 1195 1199 IF(lwp) WRITE(numout,*) ' ===>>>> : previous run without gls scheme, en and mxln computed by iterative loop' 1200 IF(lwp .AND. lflush) CALL flush(numout) 1196 1201 en (:,:,:) = rn_emin 1197 1202 mxln(:,:,:) = 0.05 … … 1204 1209 ELSE !* Start from rest 1205 1210 IF(lwp) WRITE(numout,*) ' ===>>>> : Initialisation of en and mxln by background values' 1211 IF(lwp .AND. lflush) CALL flush(numout) 1206 1212 en (:,:,:) = rn_emin 1207 1213 mxln(:,:,:) = 0.05 … … 1211 1217 ! ! ------------------- 1212 1218 IF(lwp) WRITE(numout,*) '---- gls-rst ----' 1219 IF(lwp .AND. lflush) CALL flush(numout) 1213 1220 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1214 1221 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfini.F90
r10759 r10774 83 83 WRITE(numout,*) ' npc call frequency nn_npc = ', nn_npc 84 84 WRITE(numout,*) ' npc print frequency nn_npcp = ', nn_npcp 85 IF(lflush) CALL flush(numout) 85 86 ENDIF 86 87 … … 154 155 CALL ctl_stop( ' except for TKE, GLS or KPP physics, a convection scheme is', & 155 156 & ' required: ln_zdfevd or ln_zdfnpc logicals' ) 156 157 ! 158 IF(lwp .AND. lflush) CALL flush(numout) 157 159 ! !* Background eddy viscosity and diffusivity profil 158 160 IF( nn_avb == 0 ) THEN ! Define avmb, avtb from namelist parameter -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfkpp.F90
r10759 r10774 1214 1214 IF(lwp) WRITE(numout,*) 'tra_kpp : KPP non-local tracer fluxes' 1215 1215 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 1216 IF(lflush) CALL flush(numout) 1216 1217 ENDIF 1217 1218 … … 1286 1287 IF(lwp) WRITE(numout,*) 'trc_kpp : KPP non-local tracer fluxes' 1287 1288 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 1289 IF(lflush) CALL flush(numout) 1288 1290 ENDIF 1289 1291 … … 1384 1386 WRITE(numout,*) ' max. mix. in interior convec. rn_difcon = ', rn_difcon 1385 1387 WRITE(numout,*) ' horizontal average flag nn_ave = ', nn_ave 1388 IF(lflush) CALL flush(numout) 1386 1389 ENDIF 1387 1390 … … 1410 1413 ENDIF 1411 1414 ENDIF 1415 1416 IF(lwp .AND. lflush) CALL flush(numout) 1412 1417 1413 1418 … … 1421 1426 WRITE(numout,*) ' Constant value for unreso. turbul. velocity shear Vtc = ', Vtc 1422 1427 WRITE(numout,*) ' Non-dimensional coef. for nonlocal transport rcg = ', rcg 1428 IF(lflush) CALL flush(numout) 1423 1429 ENDIF 1424 1430 … … 1438 1444 IF(lwp) WRITE(numout,*) ' no horizontal average on avt, avmu, avmv' 1439 1445 IF(lwp) WRITE(numout,*) ' only in very high horizontal resolution !' 1446 IF(lwp .AND. lflush) CALL flush(numout) 1440 1447 ! weighting mean arrays etmean, eumean and evmean 1441 1448 ! ( 1 1 ) ( 1 ) … … 1464 1471 CASE ( 1 ) ! horizontal average 1465 1472 IF(lwp) WRITE(numout,*) ' horizontal average on avt, avmu, avmv' 1473 IF(lwp .AND. lflush) CALL flush(numout) 1466 1474 ! weighting mean arrays etmean, eumean and evmean 1467 1475 ! ( 1/2 1 1/2 ) ( 1/2 1/2 ) ( 1/2 1 1/2 ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90
r10759 r10774 108 108 IF(lwp) WRITE(numout,*) 'zdf_mxl : mixed layer depth' 109 109 IF(lwp) WRITE(numout,*) '~~~~~~~ ' 110 IF(lflush) CALL flush(numout) 110 111 ! ! allocate zdfmxl arrays 111 112 IF( zdf_mxl_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'zdf_mxl : unable to allocate arrays' ) … … 396 397 END DO 397 398 END DO 398 WRITE(numout,*) 'zthick_0(jk =',jk,') =',zthick_0(2,2) 399 WRITE(numout,*) 'fsdepw(jk+1 =',jk+1,') =',fsdepw(2,2,jk+1) 399 IF(lwp) THEN 400 WRITE(numout,*) 'zthick_0(jk =',jk,') =',zthick_0(2,2) 401 WRITE(numout,*) 'fsdepw(jk+1 =',jk+1,') =',fsdepw(2,2,jk+1) 402 ENDIF 400 403 END DO 404 405 IF(lflush) CALL flush(numout) 401 406 402 407 ! Surface boundary condition … … 429 434 END DO 430 435 431 WRITE(numout,*) 'htc_mld(after) =',htc_mld(2,2) 436 IF(lwp) WRITE(numout,*) 'htc_mld(after) =',htc_mld(2,2) 437 IF(lwp .AND. lflush) CALL flush(numout) 432 438 433 439 ! Convert to heat content … … 491 497 END DO 492 498 WRITE(numout,*) '====================================================================' 499 IF(lflush) CALL flush(numout) 493 500 ENDIF 494 501 ENDIF -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfric.F90
r10759 r10774 276 276 WRITE(numout,*) ' Vertical eddy Visc. in the ML rn_wvmix = ', rn_wvmix 277 277 WRITE(numout,*) ' Use the MLD parameterization ln_mldw = ', ln_mldw 278 IF(lflush) CALL flush(numout) 278 279 ENDIF 279 280 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90
r10770 r10774 797 797 WRITE(numout,*) 'zdf_tke_init : New tidal mixing case: force rn_emin = 1.e-10 and rmxl_min = 1.e-3 ' 798 798 WRITE(numout,*) '~~~~~~~~~~~~' 799 IF(lflush) CALL flush(numout) 799 800 ENDIF 800 801 # else … … 825 826 WRITE(numout,*) 826 827 WRITE(numout,*) ' critical Richardson nb with your parameters ri_cri = ', ri_cri 828 IF(lflush) CALL flush(numout) 827 829 ENDIF 828 830 ! … … 838 840 IF( ln_mxl0 ) THEN 839 841 IF(lwp) WRITE(numout,*) ' use a surface mixing length = F(stress) : set rn_mxl0 = rmxl_min' 842 IF(lwp .AND. lflush) CALL flush(numout) 840 843 rn_mxl0 = rmxl_min 841 844 ENDIF … … 949 952 ELSE ! No TKE array found: initialisation 950 953 IF(lwp) WRITE(numout,*) ' ===>>>> : previous run without tke scheme, en computed by iterative loop' 954 IF(lwp .AND. lflush) CALL flush(numout) 951 955 en (:,:,:) = rn_emin * tmask(:,:,:) 952 956 CALL tke_avn ! recompute avt, avm, avmu, avmv and dissl (approximation) … … 971 975 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN ! Create restart file 972 976 ! ! ------------------- 973 IF(lwp .AND. nprint > 0) WRITE(numout,*) '---- tke-rst ----' 977 IF(lwp .AND. nprint > 0) THEN 978 WRITE(numout,*) '---- tke-rst ----' 979 IF(lflush) CALL flush(numout) 980 ENDIF 974 981 IF(nn_timing == 2) CALL timing_start('iom_rstput') 975 982 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftmx.F90
r10759 r10774 156 156 IF(lwp) WRITE(numout,*) 157 157 IF(lwp) WRITE(numout,*) ' N Total power consumption by av_tide : ztpc = ', ztpc * 1.e-12 ,'TW' 158 IF(lwp .AND. lflush) CALL flush(numout) 158 159 ENDIF 159 160 … … 310 311 ztpc= rau0 * ztpc / ( rn_me * rn_tfe_itf ) 311 312 IF(lwp) WRITE(numout,*) ' N Total power consumption by zavt_itf: ztpc = ', ztpc * 1.e-12 ,'TW' 313 IF(lwp .AND. lflush) CALL flush(numout) 312 314 ENDIF 313 315 … … 401 403 WRITE(numout,*) ' ITF specific parameterisation = ', ln_tmx_itf 402 404 WRITE(numout,*) ' ITF tidal dissipation efficiency = ', rn_tfe_itf 405 IF(lflush) CALL flush(numout) 403 406 ENDIF 404 407 … … 468 471 WRITE(numout,*) 469 472 WRITE(numout,*) ' Total power consumption of the tidally driven part of Kz : ztpc = ', ztpc * 1.e-12 ,'TW' 473 IF(lflush) CALL flush(numout) 470 474 471 475 … … 497 501 END DO 498 502 WRITE(numout,*) ' Min de zkz ', ztpc, ' Max = ', maxval(zkz(:,:) ) 503 IF(lflush) CALL flush(numout) 499 504 500 505 DO jk = 2, jpkm1 … … 516 521 ztpc= rau0 * 1/(rn_tfe * rn_me) * ztpc 517 522 WRITE(numout,*) ' 2 Total power consumption of the tidally driven part of Kz : ztpc = ', ztpc * 1.e-12 ,'TW' 523 IF(lflush) CALL flush(numout) 518 524 519 525 DO jk = 1, jpk … … 528 534 WRITE(numout,*) ' N2 min - jk= ', jk,' ', ze_z * 1.e4,' cm2/s min= ',ztpc*1.e4, & 529 535 & 'max= ', MAXVAL(zav_tide(:,:,jk) )*1.e4, ' cm2/s' 536 IF(lflush) CALL flush(numout) 530 537 END DO 531 538 … … 533 540 WRITE(numout,*) 534 541 WRITE(numout,*) ' Initial profile of tidal vertical mixing' 542 IF(lflush) CALL flush(numout) 543 535 544 DO jk = 1, jpk 536 545 DO jj = 1,jpj … … 543 552 WRITE(numout,*) ' jk= ', jk,' ', ze_z * 1.e4,' cm2/s' 544 553 END DO 554 IF(lflush) CALL flush(numout) 545 555 DO jk = 1, jpk 546 556 zkz(:,:) = az_tmx(:,:,jk) /rn_n2min … … 551 561 & 'max= ', MAXVAL(zkz)*1.e4, ' cm2/s' 552 562 END DO 563 IF(lflush) CALL flush(numout) 553 564 ! 554 565 ENDIF … … 862 873 WRITE(numout,*) 863 874 WRITE(numout,*) ' Total power consumption by av_wave: ztpc = ', ztpc * 1.e-12_wp, 'TW' 875 IF(lflush) CALL flush(numout) 864 876 ENDIF 865 877 ENDIF … … 983 995 WRITE(numout,*) ' Variable (T) or constant (F) mixing efficiency = ', ln_mevar 984 996 WRITE(numout,*) ' Differential internal wave-driven mixing (T) or not (F) = ', ln_tsdiff 997 IF(lflush) CALL flush(numout) 985 998 ENDIF 986 999 … … 995 1008 WRITE(numout,*) ' Force the background value applied to avm & avt in TKE to be everywhere ', & 996 1009 & 'the viscous molecular value & a very small diffusive value, resp.' 1010 IF(lflush) CALL flush(numout) 997 1011 ENDIF 998 1012 … … 1042 1056 WRITE(numout,*) ' Pycnocline-intensifed wave-breaking energy: ', zpyc * 1.e-12_wp, 'TW' 1043 1057 WRITE(numout,*) ' Critical slope wave-breaking energy: ', zcri * 1.e-12_wp, 'TW' 1058 IF(lflush) CALL flush(numout) 1044 1059 ENDIF 1045 1060 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90
r10759 r10774 250 250 NAMELIST/namctl/ ln_ctl ,sn_cfctl, nn_print, nn_ictls, nn_ictle, & 251 251 & nn_isplt, nn_jsplt, nn_jctls, nn_jctle, & 252 & nn_bench, nn_timing 252 & nn_bench, nn_timing, ln_flush 253 253 NAMELIST/namcfg/ cp_cfg, cp_cfz, jp_cfg, jpidta, jpjdta, jpkdta, jpiglo, jpjglo, & 254 254 & jpizoom, jpjzoom, jperio, ln_use_jattr … … 296 296 #endif 297 297 nprint = nn_print ! convert DOCTOR namelist names into OLD names 298 lflush = ln_flush ! convert namelist variable to model variable 298 299 !do it here because output.namelist.dyn is opened before nprint was set earlier 299 300 ! … … 405 406 END DO 406 407 WRITE(numout,cform_aaa) ! Flag AAAAAAA 408 IF(lflush) CALL flush(numout) 407 409 ! 408 410 ENDIF … … 510 512 IF( lk_asminc ) CALL asm_inc_init ! Initialize assimilation increments 511 513 IF(lwp) WRITE(numout,*) 'Euler time step switch is ', neuler 514 IF(lwp .AND. lflush) CALL flush(numout) 512 515 513 516 IF (nstop > 0) THEN … … 546 549 WRITE(numout,*) ' sn_cfctl%ptimincr = ', sn_cfctl%ptimincr 547 550 WRITE(numout,*) ' level of print nn_print = ', nn_print 551 WRITE(numout,*) ' flush numout/stat ln_flush = ', ln_flush 548 552 WRITE(numout,*) ' Start i indice for SUM control nn_ictls = ', nn_ictls 549 553 WRITE(numout,*) ' End i indice for SUM control nn_ictle = ', nn_ictle … … 554 558 WRITE(numout,*) ' benchmark parameter (0/1) nn_bench = ', nn_bench 555 559 WRITE(numout,*) ' timing activated (0/1) nn_timing = ', nn_timing 560 IF(lflush) CALL flush(numout) 556 561 ENDIF 557 562 ! … … 581 586 WRITE(numout,*) ' lateral cond. type (between 0 and 6) jperio = ', jperio 582 587 WRITE(numout,*) ' use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 588 IF(lflush) CALL flush(numout) 583 589 ENDIF 584 590 ! ! Parameter control … … 596 602 IF(lwp) WRITE(numout,*)' - The total number of processors over which the' 597 603 IF(lwp) WRITE(numout,*)' print control will be done is ijsplt : ', ijsplt 604 IF(lwp .AND. lflush) CALL flush(numout) 598 605 ! 599 606 ! ! indices used for the SUM control … … 767 774 WRITE (numout, *) 'WARNING: factorisation of number of PEs failed' 768 775 WRITE (numout, *) ' : using grid of ',num_pes,' x 1' 776 IF(lflush) CALL flush(numout) 769 777 jpnj = 1 770 778 jpni = num_pes -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/stpctl.F90
r10748 r10774 71 71 WRITE(numout,*) 'stp_ctl : time-stepping control' 72 72 WRITE(numout,*) '~~~~~~~' 73 IF(lflush) CALL flush(numout) 73 74 ! open time.step file with special treatment for SAS 74 75 IF ( nn_components == jp_iam_sas ) THEN … … 99 100 IF( lk_mpp ) CALL mpp_max( zumax ) ! max over the global domain 100 101 ! 101 IF( ll_colruns ) WRITE(numout,*) ' ==>> time-step= ',kt,' abs(U) max: ', zumax 102 IF( ll_colruns ) THEN 103 WRITE(numout,*) ' ==>> time-step= ',kt,' abs(U) max: ', zumax 104 IF(lflush) CALL flush(numout) 105 ENDIF 102 106 ! 103 107 IF( zumax > 20.e0 ) THEN … … 117 121 WRITE(numout,*) 118 122 WRITE(numout,*) ' output of last fields in numwso' 123 IF(lflush) CALL flush(numout) 119 124 ENDIF 120 125 kindic = -3 … … 133 138 IF( lk_mpp ) CALL mpp_min( zsmin ) ! min over the global domain 134 139 ! 135 IF( MOD( kt, nwrite ) == 1 .AND. lwp ) WRITE(numout,*) ' ==>> time-step= ',kt,' SSS min:', zsmin 140 IF( MOD( kt, nwrite ) == 1 .AND. lwp ) THEN 141 WRITE(numout,*) ' ==>> time-step= ',kt,' SSS min:', zsmin 142 IF(lflush) CALL flush(numout) 143 ENDIF 136 144 ! 137 145 IF( zsmin < 0.) THEN … … 188 196 WRITE(numout,9600) kt, ztmax, ii, ij 189 197 WRITE(numout,*) 'stp_ctl:tracer anomaly: ***** END OF WARNING *****' 198 IF(lflush) CALL flush(numout) 190 199 ENDIF 191 200 ENDIF … … 205 214 WRITE(numout,9700) kt, ztmin, ii, ij 206 215 WRITE(numout,*) 'stp_ctl:tracer anomaly: ***** END OF WARNING *****' 216 IF(lflush) CALL flush(numout) 207 217 ENDIF 208 218 ENDIF … … 218 228 IF( lk_dynspg_flt ) THEN ! elliptic solver statistics (if required) 219 229 ! 220 IF(ll_wrtruns) WRITE(numsol,9200) kt, niter, res, SQRT(epsr)/eps ! Solver 230 IF(ll_wrtruns) THEN 231 WRITE(numsol,9200) kt, niter, res, SQRT(epsr)/eps ! Solver 232 IF(lflush) CALL flush(numsol) 233 ENDIF 221 234 ! 222 235 IF( kindic < 0 .AND. zsmin > 0.e0 .AND. zumax <= 20.e0 ) THEN ! create a abort file if problem found … … 228 241 WRITE(numout,*) ' stpctl: output of last fields' 229 242 WRITE(numout,*) ' ====== ' 243 IF(lflush) CALL flush(numout) 230 244 ENDIF 231 245 ENDIF … … 241 255 ! 242 256 WRITE(numsol,9300) kt, zssh2, zumax, zsmin ! ssh statistics 257 IF(lflush) CALL flush(numsol) 243 258 ENDIF 244 259 ! -
branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/trc_oce.F90
r10754 r10774 115 115 WRITE(numout,*) 'trc_oce_rgb : Initialisation of the optical look-up table' 116 116 WRITE(numout,*) '~~~~~~~~~~~ ' 117 IF(lflush) CALL flush(numout) 117 118 ENDIF 118 119 ! … … 184 185 r_si2 = 1.e0 / zrgb(2, 1) ! blue with the smallest chlorophyll concentration) 185 186 IF(lwp) WRITE(numout,*) ' RGB longest depth of extinction r_si2 = ', r_si2 187 IF(lwp .AND. lflush) CALL flush(numout) 186 188 ! 187 189 DO jc = 1, 61 ! check … … 222 224 WRITE(numout,*) ' ~~~~~~~~~~~~~~~~' 223 225 WRITE(numout,*) 226 IF(lflush) CALL flush(numout) 224 227 ENDIF 225 228 ! … … 229 232 irgb = NINT( 41 + 20.* LOG10( zchl ) + 1.e-15 ) 230 233 IF(lwp) WRITE(numout,*) ' jc =', jc, ' Chl = ', zchl, ' irgb = ', irgb 234 IF(lwp .AND. lflush) CALL flush(numout) 231 235 IF( irgb /= jc ) THEN 232 236 IF(lwp) WRITE(numout,*) ' jc =', jc, ' Chl = ', zchl, ' Chl class = ', irgb … … 238 242 r_si2 = 1.e0 / prgb(1, 1) ! blue with the smallest chlorophyll concentration) 239 243 IF(lwp) WRITE(numout,*) ' RGB longest depth of extinction r_si2 = ', r_si2 244 IF(lwp .AND. lflush) CALL flush(numout) 240 245 ! 241 246 END SUBROUTINE trc_oce_rgb_read
Note: See TracChangeset
for help on using the changeset viewer.