Changeset 11872
- Timestamp:
- 2019-11-07T17:55:13+01:00 (5 years ago)
- Location:
- NEMO/branches/2019/fix_sn_cfctl_ticket2328
- Files:
-
- 91 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/fix_sn_cfctl_ticket2328/cfgs/SHARED/namelist_ref
r11869 r11872 1322 1322 &namctl ! Control prints (default: OFF) 1323 1323 !----------------------------------------------------------------------- 1324 ln_ctl = .FALSE. ! Toggle all report printing on/off (T/F); Ignored if sn_cfctl%l_config is T 1324 sn_cfctl%l_glochk = .FALSE. ! Range sanity checks are local (F) or global (T). Set T for debugging only 1325 sn_cfctl%l_allon = .FALSE. ! IF T activate all options. If F deactivate all unless l_config is T 1325 1326 sn_cfctl%l_config = .TRUE. ! IF .true. then control which reports are written with the following 1326 1327 sn_cfctl%l_runstat = .FALSE. ! switches and which areas produce reports with the proc integer settings. … … 1328 1329 sn_cfctl%l_oceout = .FALSE. ! that all areas report. 1329 1330 sn_cfctl%l_layout = .FALSE. ! 1330 sn_cfctl%l_ mppout= .FALSE. !1331 sn_cfctl%l_ mpptop= .FALSE. !1331 sn_cfctl%l_prtctl = .FALSE. ! 1332 sn_cfctl%l_prttrc = .FALSE. ! 1332 1333 sn_cfctl%l_oasout = .FALSE. ! 1333 1334 sn_cfctl%procmin = 0 ! Minimum area number for reporting [default:0] -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/icecor.F90
r11869 r11872 165 165 ! 166 166 ! controls 167 IF( ln_ctl .OR. sn_cfctl%l_mppout) &167 IF( sn_cfctl%l_prtctl ) & 168 168 & CALL ice_prt3D ('icecor') ! prints 169 169 IF( ln_icectl .AND. kn == 2 ) & -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/icectl.F90
r11612 r11872 695 695 !! *** ROUTINE ice_prt3D *** 696 696 !! 697 !! ** Purpose : CTL prints of ice arrays in case ln_ctl is activated697 !! ** Purpose : CTL prints of ice arrays in case sn_cfctl%prtctl is activated 698 698 !! 699 699 !!------------------------------------------------------------------- -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/icedyn_rdgrft.F90
r11869 r11872 268 268 269 269 ! controls 270 IF( ln_ctl .OR. sn_cfctl%l_mppout ) CALL ice_prt3D ('icedyn_rdgrft')! prints270 IF( sn_cfctl%l_prtctl ) CALL ice_prt3D ('icedyn_rdgrft') ! prints 271 271 IF( ln_icectl ) CALL ice_prt (kt, iiceprt, jiceprt,-1, ' - ice dyn rdgrft - ') ! prints 272 272 IF( ln_icediachk ) CALL ice_cons_hsm(1, 'icedyn_rdgrft', rdiag_v, rdiag_s, rdiag_t, rdiag_fv, rdiag_fs, rdiag_ft) ! conservation -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/icedyn_rhg.F90
r11869 r11872 88 88 ! 89 89 ! controls 90 IF( ln_ctl .OR. sn_cfctl%l_mppout) &90 IF( sn_cfctl%l_prtctl ) & 91 91 & CALL ice_prt3D ('icedyn_rhg') ! prints 92 92 IF( ln_icediachk ) CALL ice_cons_hsm(1, 'icedyn_rhg', rdiag_v, rdiag_s, rdiag_t, rdiag_fv, rdiag_fs, rdiag_ft) ! conservation -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/icedyn_rhg_evp.F90
r11869 r11872 345 345 l_full_nf_update = jter == nn_nevp ! false: disable full North fold update (performances) for iter = 1 to nn_nevp-1 346 346 ! 347 !!$ IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN ! Convergence test347 !!$ IF(sn_cfctl%l_prtctl) THEN ! Convergence test 348 348 !!$ DO jj = 1, jpjm1 349 349 !!$ zu_ice(:,jj) = u_ice(:,jj) ! velocity at previous time step … … 667 667 ENDIF 668 668 669 !!$ IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN ! Convergence test669 !!$ IF(sn_cfctl%l_prtctl) THEN ! Convergence test 670 670 !!$ DO jj = 2 , jpjm1 671 671 !!$ zresr(:,jj) = MAX( ABS( u_ice(:,jj) - zu_ice(:,jj) ), ABS( v_ice(:,jj) - zv_ice(:,jj) ) ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/icethd.F90
r11869 r11872 252 252 ! controls 253 253 IF( ln_icectl ) CALL ice_prt (kt, iiceprt, jiceprt, 1, ' - ice thermodyn. - ') ! prints 254 IF( ln_ctl .OR. sn_cfctl%l_mppout) &254 IF( sn_cfctl%l_prtctl ) & 255 255 & CALL ice_prt3D ('icethd') ! prints 256 256 IF( ln_timing ) CALL timing_stop('icethd') ! timing -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/ICE/iceupdate.F90
r11869 r11872 286 286 #endif 287 287 IF( ln_icectl ) CALL ice_prt (kt, iiceprt, jiceprt, 3, 'Final state ice_update') ! prints 288 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL ice_prt3D ('iceupdate') ! prints288 IF( sn_cfctl%l_prtctl ) CALL ice_prt3D ('iceupdate') ! prints 289 289 IF( ln_timing ) CALL timing_stop ('ice_update') ! timing 290 290 ! -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/C1D/dyncor_c1d.F90
r11869 r11872 95 95 96 96 ! 97 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' cor - Ua: ', mask1=umask, &98 & tab3d_2=va, clinfo2=' Va: ' , mask2=vmask )97 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' cor - Ua: ', mask1=umask, & 98 & tab3d_2=va, clinfo2=' Va: ' , mask2=vmask ) 99 99 ! 100 100 END SUBROUTINE dyn_cor_c1d -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/C1D/dyndmp.F90
r11869 r11872 219 219 ! 220 220 ! ! Control print 221 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua(:,:,:), clinfo1=' dmp - Ua: ', mask1=umask, &222 & 221 IF( sn_cfctl%l_prtctl ) CALL prt_ctl( tab3d_1=ua(:,:,:), clinfo1=' dmp - Ua: ', mask1=umask, & 222 & tab3d_2=va(:,:,:), clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 223 223 ! 224 224 ! -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DOM/daymod.F90
r11869 r11872 277 277 IF( nsec_week > 7*nsecd ) nsec_week = ndt05 ! New week 278 278 279 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN279 IF(sn_cfctl%l_prtctl) THEN 280 280 WRITE(charout,FMT="('kt =', I4,' d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear 281 281 CALL prt_ctl_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynadv_cen2.F90
r11869 r11872 139 139 ENDIF 140 140 ! ! Control print 141 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' cen2 adv - Ua: ', mask1=umask, &142 & 141 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' cen2 adv - Ua: ', mask1=umask, & 142 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 143 143 ! 144 144 END SUBROUTINE dyn_adv_cen2 -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynadv_ubs.F90
r11869 r11872 232 232 ENDIF 233 233 ! ! Control print 234 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' ubs2 adv - Ua: ', mask1=umask, &235 & 234 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' ubs2 adv - Ua: ', mask1=umask, & 235 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 236 236 ! 237 237 END SUBROUTINE dyn_adv_ubs -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynhpg.F90
r11869 r11872 119 119 ENDIF 120 120 ! 121 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' hpg - Ua: ', mask1=umask, &122 & 121 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' hpg - Ua: ', mask1=umask, & 122 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 123 123 ! 124 124 IF( ln_timing ) CALL timing_stop('dyn_hpg') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynkeg.F90
r11869 r11872 147 147 ENDIF 148 148 ! 149 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' keg - Ua: ', mask1=umask, &150 & 149 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' keg - Ua: ', mask1=umask, & 150 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 151 151 ! 152 152 IF( ln_timing ) CALL timing_stop('dyn_keg') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynldf.F90
r11869 r11872 77 77 ENDIF 78 78 ! ! print sum trends (used for debugging) 79 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' ldf - Ua: ', mask1=umask, &80 & 79 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' ldf - Ua: ', mask1=umask, & 80 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 81 81 ! 82 82 IF( ln_timing ) CALL timing_stop('dyn_ldf') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynldf_iso.F90
r11869 r11872 286 286 287 287 ! print sum trends (used for debugging) 288 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' ldfh - Ua: ', mask1=umask, &289 & 288 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' ldfh - Ua: ', mask1=umask, & 289 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 290 290 291 291 -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynnxt.F90
r11869 r11872 368 368 ENDIF 369 369 ! 370 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=un, clinfo1=' nxt - Un: ', mask1=umask, &371 & 370 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=un, clinfo1=' nxt - Un: ', mask1=umask, & 371 & tab3d_2=vn, clinfo2=' Vn: ' , mask2=vmask ) 372 372 ! 373 373 IF( ln_dynspg_ts ) DEALLOCATE( zue, zve ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynspg.F90
r11869 r11872 172 172 ENDIF 173 173 ! ! print mean trends (used for debugging) 174 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' spg - Ua: ', mask1=umask, &175 & 174 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' spg - Ua: ', mask1=umask, & 175 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 176 176 ! 177 177 IF( ln_timing ) CALL timing_stop('dyn_spg') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynvor.F90
r11869 r11872 179 179 ! 180 180 ! ! print sum trends (used for debugging) 181 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' vor - Ua: ', mask1=umask, &182 & 181 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' vor - Ua: ', mask1=umask, & 182 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 183 183 ! 184 184 IF( ln_timing ) CALL timing_stop('dyn_vor') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynzad.F90
r11869 r11872 114 114 ENDIF 115 115 ! ! Control print 116 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' zad - Ua: ', mask1=umask, &117 & 116 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' zad - Ua: ', mask1=umask, & 117 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 118 118 ! 119 119 IF( ln_timing ) CALL timing_stop('dyn_zad') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/dynzdf.F90
r11869 r11872 492 492 ENDIF 493 493 ! ! print mean trends (used for debugging) 494 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=ua, clinfo1=' zdf - Ua: ', mask1=umask, &495 & 494 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=ua, clinfo1=' zdf - Ua: ', mask1=umask, & 495 & tab3d_2=va, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 496 496 ! 497 497 IF( ln_timing ) CALL timing_stop('dyn_zdf') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/DYN/sshwzv.F90
r11869 r11872 121 121 ! !------------------------------! 122 122 ! 123 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab2d_1=ssha, clinfo1=' ssha - : ', mask1=tmask )123 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab2d_1=ssha, clinfo1=' ssha - : ', mask1=tmask ) 124 124 ! 125 125 IF( ln_timing ) CALL timing_stop('ssh_nxt') … … 262 262 ENDIF 263 263 ! 264 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab2d_1=sshb, clinfo1=' sshb - : ', mask1=tmask )264 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab2d_1=sshb, clinfo1=' sshb - : ', mask1=tmask ) 265 265 ! 266 266 IF( ln_timing ) CALL timing_stop('ssh_swp') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/IOM/in_out_manager.F90
r11869 r11872 96 96 !! output monitoring 97 97 !!---------------------------------------------------------------------- 98 LOGICAL :: ln_ctl !: run control for debugging 99 TYPE :: sn_ctl !: optional use structure for finer control over output selection 98 TYPE :: sn_ctl !: structure for control over output selection 99 LOGICAL :: l_glochk = .FALSE. !: range sanity checks are local (F) or global (T) 100 ! Use global setting for debugging only; 101 ! local breaches will still be reported 102 ! and stop the code in most cases. 103 LOGICAL :: l_allon = .FALSE. !: overall control; activate all following output options 100 104 LOGICAL :: l_config = .FALSE. !: activate/deactivate finer control 101 ! Note if l_config is True then ln_ctl is ignored. 102 ! Otherwise setting ln_ctl True is equivalent to setting 103 ! all the following logicals in this structure True 105 ! Note if l_config is True then sn_cfctl%l_allon is ignored. 106 ! Otherwise setting sn_cfctl%l_allon T/F is equivalent to 107 ! setting all the following logicals in this structure T/F 108 ! and disabling subsetting of processors 104 109 LOGICAL :: l_runstat = .FALSE. !: Produce/do not produce run.stat file (T/F) 105 110 LOGICAL :: l_trcstat = .FALSE. !: Produce/do not produce tracer.stat file (T/F) 106 111 LOGICAL :: l_oceout = .FALSE. !: Produce all ocean.outputs (T) or just one (F) 107 112 LOGICAL :: l_layout = .FALSE. !: Produce all layout.dat files (T) or just one (F) 108 LOGICAL :: l_ mppout= .FALSE. !: Produce/do not produce mpp.output_XXXX files (T/F)109 LOGICAL :: l_ mpptop= .FALSE. !: Produce/do not produce mpp.top.output_XXXX files (T/F)113 LOGICAL :: l_prtctl = .FALSE. !: Produce/do not produce mpp.output_XXXX files (T/F) 114 LOGICAL :: l_prttrc = .FALSE. !: Produce/do not produce mpp.top.output_XXXX files (T/F) 110 115 LOGICAL :: l_oasout = .FALSE. !: Produce/do not write oasis setup info to ocean.output (T/F) 111 116 ! Optional subsetting of processor report files … … 166 171 CHARACTER(lc) :: ctmp10 !: temporary character 10 167 172 LOGICAL :: lwm = .FALSE. !: boolean : true on the 1st processor only (always) 168 LOGICAL :: lwp = .FALSE. !: boolean : true on the 1st processor only .OR. ln_ctl173 LOGICAL :: lwp = .FALSE. !: boolean : true on the 1st processor only .OR. sn_cfctl%l_oceout=T 169 174 LOGICAL :: lsp_area = .TRUE. !: to make a control print over a specific area 170 175 CHARACTER(lc) :: cxios_context !: context name used in xios -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/IOM/prtctl.F90
r10068 r11872 50 50 !! debugging a new parametrization in mono or mpp. 51 51 !! 52 !! ** Method : 2 possibilities exist when setting the ln_ctl parameter to52 !! ** Method : 2 possibilities exist when setting the sn_cfctl%prtctl parameter to 53 53 !! .true. in the ocean namelist: 54 54 !! - to debug a MPI run .vs. a mono-processor one; … … 64 64 !! name must be explicitly typed if used. For instance if the 3D 65 65 !! array tn(:,:,:) must be passed through the prt_ctl subroutine, 66 !! it must look slike: CALL prt_ctl(tab3d_1=tn).66 !! it must look like: CALL prt_ctl(tab3d_1=tn). 67 67 !! 68 68 !! tab2d_1 : first 2D array -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/LBC/mppini.F90
r11866 r11872 171 171 !!---------------------------------------------------------------------- 172 172 ! 173 llwrtlay = lwm .OR. ln_ctl .OR.sn_cfctl%l_layout173 llwrtlay = lwm .OR. sn_cfctl%l_layout 174 174 ! 175 175 ! 0. read namelists parameters -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/LDF/ldfslp.F90
r11869 r11872 365 365 CALL lbc_lnk_multi( 'ldfslp', uslp , 'U', -1. , vslp , 'V', -1. , wslpi, 'W', -1., wslpj, 'W', -1. ) 366 366 367 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN367 IF(sn_cfctl%l_prtctl) THEN 368 368 CALL prt_ctl(tab3d_1=uslp , clinfo1=' slp - u : ', tab3d_2=vslp, clinfo2=' v : ', kdim=jpk) 369 369 CALL prt_ctl(tab3d_1=wslpi, clinfo1=' slp - wi: ', tab3d_2=wslpj, clinfo2=' wj: ', kdim=jpk) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/SBC/sbcblk.F90
r11869 r11872 507 507 508 508 509 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN509 IF(sn_cfctl%l_prtctl) THEN 510 510 CALL prt_ctl( tab2d_1=zqla , clinfo1=' blk_oce: zqla : ', tab2d_2=Ce_atm , clinfo2=' Ce_oce : ' ) 511 511 CALL prt_ctl( tab2d_1=zqsb , clinfo1=' blk_oce: zqsb : ', tab2d_2=Ch_atm , clinfo2=' Ch_oce : ' ) … … 553 553 ENDIF 554 554 ! 555 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN555 IF(sn_cfctl%l_prtctl) THEN 556 556 CALL prt_ctl(tab2d_1=zqsb , clinfo1=' blk_oce: zqsb : ', tab2d_2=zqlw , clinfo2=' zqlw : ') 557 557 CALL prt_ctl(tab2d_1=zqla , clinfo1=' blk_oce: zqla : ', tab2d_2=qsr , clinfo2=' qsr : ') … … 764 764 ! 765 765 ! 766 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN766 IF(sn_cfctl%l_prtctl) THEN 767 767 CALL prt_ctl(tab2d_1=utau_ice , clinfo1=' blk_ice: utau_ice : ', tab2d_2=vtau_ice , clinfo2=' vtau_ice : ') 768 768 CALL prt_ctl(tab2d_1=wndm_ice , clinfo1=' blk_ice: wndm_ice : ') … … 914 914 END WHERE 915 915 ! 916 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN916 IF(sn_cfctl%l_prtctl) THEN 917 917 CALL prt_ctl(tab3d_1=qla_ice , clinfo1=' blk_ice: qla_ice : ', tab3d_2=z_qsb , clinfo2=' z_qsb : ', kdim=jpl) 918 918 CALL prt_ctl(tab3d_1=z_qlw , clinfo1=' blk_ice: z_qlw : ', tab3d_2=dqla_ice, clinfo2=' dqla_ice : ', kdim=jpl) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/SBC/sbcmod.F90
r11869 r11872 557 557 CALL iom_put( "vtau", vtau ) ! j-wind stress 558 558 ! 559 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN! print mean trends (used for debugging)559 IF(sn_cfctl%l_prtctl) THEN ! print mean trends (used for debugging) 560 560 CALL prt_ctl(tab2d_1=fr_i , clinfo1=' fr_i - : ', mask1=tmask ) 561 561 CALL prt_ctl(tab2d_1=(emp-rnf + fwfisf), clinfo1=' emp-rnf - : ', mask1=tmask ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/eosbn2.F90
r11869 r11872 297 297 END SELECT 298 298 ! 299 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=prd, clinfo1=' eos-insitu : ', kdim=jpk )299 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=prd, clinfo1=' eos-insitu : ', kdim=jpk ) 300 300 ! 301 301 IF( ln_timing ) CALL timing_stop('eos-insitu') … … 464 464 END SELECT 465 465 ! 466 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=prd, clinfo1=' eos-pot: ', tab3d_2=prhop, clinfo2=' pot : ', kdim=jpk )466 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=prd, clinfo1=' eos-pot: ', tab3d_2=prhop, clinfo2=' pot : ', kdim=jpk ) 467 467 ! 468 468 IF( ln_timing ) CALL timing_stop('eos-pot') … … 559 559 END SELECT 560 560 ! 561 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab2d_1=prd, clinfo1=' eos2d: ' )561 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab2d_1=prd, clinfo1=' eos2d: ' ) 562 562 ! 563 563 IF( ln_timing ) CALL timing_stop('eos2d') … … 671 671 END SELECT 672 672 ! 673 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=pab(:,:,:,jp_tem), clinfo1=' rab_3d_t: ', &674 & 673 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=pab(:,:,:,jp_tem), clinfo1=' rab_3d_t: ', & 674 & tab3d_2=pab(:,:,:,jp_sal), clinfo2=' rab_3d_s : ', kdim=jpk ) 675 675 ! 676 676 IF( ln_timing ) CALL timing_stop('rab_3d') … … 785 785 END SELECT 786 786 ! 787 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab2d_1=pab(:,:,jp_tem), clinfo1=' rab_2d_t: ', &788 & 787 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab2d_1=pab(:,:,jp_tem), clinfo1=' rab_2d_t: ', & 788 & tab2d_2=pab(:,:,jp_sal), clinfo2=' rab_2d_s : ' ) 789 789 ! 790 790 IF( ln_timing ) CALL timing_stop('rab_2d') … … 929 929 END DO 930 930 ! 931 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=pn2, clinfo1=' bn2 : ', kdim=jpk )931 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=pn2, clinfo1=' bn2 : ', kdim=jpk ) 932 932 ! 933 933 IF( ln_timing ) CALL timing_stop('bn2') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/traadv.F90
r11869 r11872 168 168 ENDIF 169 169 ! ! print mean trends (used for debugging) 170 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' adv - Ta: ', mask1=tmask, &171 & 170 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' adv - Ta: ', mask1=tmask, & 171 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) 172 172 ! 173 173 IF( ln_timing ) CALL timing_stop( 'tra_adv' ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/trabbc.F90
r11869 r11872 100 100 ENDIF 101 101 ! 102 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' bbc - Ta: ', mask1=tmask, clinfo3='tra-ta' )102 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' bbc - Ta: ', mask1=tmask, clinfo3='tra-ta' ) 103 103 ! 104 104 IF( ln_timing ) CALL timing_stop('tra_bbc') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/trabbl.F90
r11869 r11872 119 119 ! 120 120 CALL tra_bbl_dif( tsb, tsa, jpts ) 121 IF( ln_ctl .OR. sn_cfctl%l_mppout) &121 IF( sn_cfctl%l_prtctl ) & 122 122 CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' bbl_ldf - Ta: ', mask1=tmask, & 123 123 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) … … 132 132 ! 133 133 CALL tra_bbl_adv( tsb, tsa, jpts ) 134 IF( ln_ctl .OR. sn_cfctl%l_mppout) &134 IF(sn_cfctl%l_prtctl) & 135 135 CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' bbl_adv - Ta: ', mask1=tmask, & 136 136 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/tradmp.F90
r11869 r11872 156 156 ENDIF 157 157 ! ! Control print 158 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' dmp - Ta: ', mask1=tmask, &159 & 158 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' dmp - Ta: ', mask1=tmask, & 159 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) 160 160 ! 161 161 IF( ln_timing ) CALL timing_stop('tra_dmp') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/traldf.F90
r11869 r11872 85 85 ENDIF 86 86 ! !* print mean trends (used for debugging) 87 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' ldf - Ta: ', mask1=tmask, &88 & 87 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' ldf - Ta: ', mask1=tmask, & 88 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) 89 89 ! 90 90 IF( ln_timing ) CALL timing_stop('tra_ldf') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/tranxt.F90
r11869 r11872 181 181 ! 182 182 ! ! control print 183 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsn(:,:,:,jp_tem), clinfo1=' nxt - Tn: ', mask1=tmask, &184 & 183 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsn(:,:,:,jp_tem), clinfo1=' nxt - Tn: ', mask1=tmask, & 184 & tab3d_2=tsn(:,:,:,jp_sal), clinfo2= ' Sn: ', mask2=tmask ) 185 185 ! 186 186 IF( ln_timing ) CALL timing_stop('tra_nxt') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/traqsr.F90
r11869 r11872 300 300 ENDIF 301 301 ! ! print mean trends (used for debugging) 302 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' qsr - Ta: ', mask1=tmask, clinfo3='tra-ta' )302 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' qsr - Ta: ', mask1=tmask, clinfo3='tra-ta' ) 303 303 ! 304 304 IF( ln_timing ) CALL timing_stop('tra_qsr') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/trasbc.F90
r11869 r11872 266 266 ENDIF 267 267 ! 268 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' sbc - Ta: ', mask1=tmask, &269 & 268 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' sbc - Ta: ', mask1=tmask, & 269 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) 270 270 ! 271 271 IF( ln_timing ) CALL timing_stop('tra_sbc') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRA/trazdf.F90
r11869 r11872 99 99 ENDIF 100 100 ! ! print mean trends (used for debugging) 101 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' zdf - Ta: ', mask1=tmask, &102 & 101 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' zdf - Ta: ', mask1=tmask, & 102 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) 103 103 ! 104 104 IF( ln_timing ) CALL timing_stop('tra_zdf') -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/TRD/trdmxl.F90
r11869 r11872 371 371 hmxlbn(:,:) = hmxl(:,:) 372 372 373 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN373 IF( sn_cfctl%l_prtctl ) THEN 374 374 WRITE(numout,*) ' we reach kt == nit000 + 1 = ', nit000+1 375 375 CALL prt_ctl(tab2d_1=tmlbb , clinfo1=' tmlbb - : ', mask1=tmask) … … 380 380 END IF 381 381 382 IF( ( ln_rstart ) .AND. ( kt == nit000 ) .AND. ( ln_ctl .OR. sn_cfctl%l_mppout )) THEN382 IF( ( ln_rstart ) .AND. ( kt == nit000 ) .AND. sn_cfctl%l_prtctl ) THEN 383 383 IF( ln_trdmxl_instant ) THEN 384 384 WRITE(numout,*) ' restart from kt == nit000 = ', nit000 … … 548 548 hmxlbn (:,:) = hmxl (:,:) 549 549 550 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN550 IF( sn_cfctl%l_prtctl ) THEN 551 551 IF( ln_trdmxl_instant ) THEN 552 552 CALL prt_ctl(tab2d_1=tmlbb , clinfo1=' tmlbb - : ', mask1=tmask) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdfddm.F90
r11869 r11872 163 163 ! ! =============== 164 164 ! 165 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN165 IF(sn_cfctl%l_prtctl) THEN 166 166 CALL prt_ctl(tab3d_1=avt , clinfo1=' ddm - t: ', tab3d_2=avs , clinfo2=' s: ', kdim=jpk) 167 167 ENDIF -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdfdrg.F90
r11869 r11872 139 139 ENDIF 140 140 ! 141 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab2d_1=pCdU, clinfo1=' Cd*U ')141 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab2d_1=pCdU, clinfo1=' Cd*U ') 142 142 ! 143 143 END SUBROUTINE zdf_drg … … 213 213 ENDIF 214 214 ! ! print mean trends (used for debugging) 215 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab3d_1=pua, clinfo1=' bfr - Ua: ', mask1=umask, &216 & 215 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab3d_1=pua, clinfo1=' bfr - Ua: ', mask1=umask, & 216 & tab3d_2=pva, clinfo2= ' Va: ', mask2=vmask, clinfo3='dyn' ) 217 217 ! 218 218 END SUBROUTINE zdf_drg_exp -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdfgls.F90
r11869 r11872 824 824 p_avt(:,:,1) = 0._wp 825 825 ! 826 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN826 IF(sn_cfctl%l_prtctl) THEN 827 827 CALL prt_ctl( tab3d_1=en , clinfo1=' gls - e: ', tab3d_2=p_avt, clinfo2=' t: ', kdim=jpk) 828 828 CALL prt_ctl( tab3d_1=p_avm, clinfo1=' gls - m: ', kdim=jpk ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdfiwm.F90
r11869 r11872 383 383 CALL iom_put( "emix_iwm", zemx_iwm ) 384 384 385 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl(tab3d_1=zav_wave , clinfo1=' iwm - av_wave: ', tab3d_2=avt, clinfo2=' avt: ', kdim=jpk)385 IF(sn_cfctl%l_prtctl) CALL prt_ctl(tab3d_1=zav_wave , clinfo1=' iwm - av_wave: ', tab3d_2=avt, clinfo2=' avt: ', kdim=jpk) 386 386 ! 387 387 END SUBROUTINE zdf_iwm -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdfmxl.F90
r11869 r11872 137 137 ENDIF 138 138 ! 139 IF( ln_ctl .OR. sn_cfctl%l_mppout) CALL prt_ctl( tab2d_1=REAL(nmln,wp), clinfo1=' nmln : ', tab2d_2=hmlp, clinfo2=' hmlp : ' )139 IF(sn_cfctl%l_prtctl) CALL prt_ctl( tab2d_1=REAL(nmln,wp), clinfo1=' nmln : ', tab2d_2=hmlp, clinfo2=' hmlp : ' ) 140 140 ! 141 141 END SUBROUTINE zdf_mxl -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdfosm.F90
r11869 r11872 1659 1659 ENDIF 1660 1660 1661 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN1661 IF(sn_cfctl%l_prtctl) THEN 1662 1662 CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' osm - Ta: ', mask1=tmask, & 1663 1663 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/ZDF/zdftke.F90
r11869 r11872 623 623 ENDIF 624 624 ! 625 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN625 IF(sn_cfctl%l_prtctl) THEN 626 626 CALL prt_ctl( tab3d_1=en , clinfo1=' tke - e: ', tab3d_2=p_avt, clinfo2=' t: ', kdim=jpk) 627 627 CALL prt_ctl( tab3d_1=p_avm, clinfo1=' tke - m: ', kdim=jpk ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/nemogcm.F90
r11869 r11872 263 263 INTEGER :: ios, ilocal_comm ! local integers 264 264 !! 265 NAMELIST/namctl/ ln_ctl , sn_cfctl, nn_print, nn_ictls, nn_ictle,&265 NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle, & 266 266 & nn_isplt , nn_jsplt, nn_jctls, nn_jctle, & 267 267 & ln_timing, ln_diacfl … … 314 314 ! 315 315 ! !--------------------! 316 ! ! Open listing units ! -> need ln_ctl from namctl to define lwp316 ! ! Open listing units ! -> need sn_cfctl from namctl to define lwp 317 317 ! !--------------------! 318 318 ! … … 325 325 ! 326 326 ! finalize the definition of namctl variables 327 IF( sn_cfctl%l_config ) THEN 327 IF( sn_cfctl%l_allon ) THEN 328 ! Turn on all options. 329 CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. ) 330 ! Ensure all processors are active 331 sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1 332 ELSEIF( sn_cfctl%l_config ) THEN 328 333 ! Activate finer control of report outputs 329 334 ! optionally switch off output from selected areas (note this only … … 333 338 & CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 334 339 ELSE 335 ! Use ln_ctl to turn on oroff all options.336 CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. )337 ENDIF 338 ! 339 lwp = (narea == 1) .OR. ln_ctl .OR.sn_cfctl%l_oceout ! control of all listing output print340 ! turn off all options. 341 CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. ) 342 ENDIF 343 ! 344 lwp = (narea == 1) .OR. sn_cfctl%l_oceout ! control of all listing output print 340 345 ! 341 346 IF(lwp) THEN ! open listing units … … 414 419 CALL dom_init("OPA") ! Domain 415 420 IF( ln_crs ) CALL crs_init ! coarsened grid: domain initialization 416 IF( ln_ctl .OR. sn_cfctl%l_mppout) &421 IF( sn_cfctl%l_prtctl ) & 417 422 & CALL prt_ctl_init ! Print control 418 423 419 CALL diurnal_sst_bulk_init! diurnal sst424 CALL diurnal_sst_bulk_init ! diurnal sst 420 425 IF( ln_diurnal ) CALL diurnal_sst_coolskin_init ! cool skin 421 426 ! 422 IF( ln_diurnal_only ) THEN! diurnal only: a subset of the initialisation routines423 CALL istate_init! ocean initial state (Dynamics and tracers)424 CALL sbc_init! Forcings : surface module425 CALL tra_qsr_init! penetrative solar radiation qsr426 IF( ln_diaobs ) THEN! Observation & model comparison427 CALL dia_obs_init! Initialize observational data428 CALL dia_obs( nit000 - 1 )! Observation operator for restart429 ENDIF430 IF( lk_asminc ) CALL asm_inc_init! Assimilation increments431 !432 RETURN ! end ofinitialization433 ENDIF427 IF( ln_diurnal_only ) THEN ! diurnal only: a subset of the initialisation routines 428 CALL istate_init ! ocean initial state (Dynamics and tracers) 429 CALL sbc_init ! Forcings : surface module 430 CALL tra_qsr_init ! penetrative solar radiation qsr 431 IF( ln_diaobs ) THEN ! Observation & model comparison 432 CALL dia_obs_init ! Initialize observational data 433 CALL dia_obs( nit000 - 1 ) ! Observation operator for restart 434 ENDIF 435 IF( lk_asminc ) CALL asm_inc_init ! Assimilation increments 436 ! 437 RETURN ! end of diurnal_only initialization 438 ENDIF 434 439 435 440 CALL istate_init ! ocean initial state (Dynamics and tracers) … … 514 519 WRITE(numout,*) '~~~~~~~~' 515 520 WRITE(numout,*) ' Namelist namctl' 516 WRITE(numout,*) ' run control (for debugging) ln_ctl = ', ln_ctl 521 WRITE(numout,*) ' sn_cfctl%l_glochk = ', sn_cfctl%l_glochk 522 WRITE(numout,*) ' sn_cfctl%l_allon = ', sn_cfctl%l_allon 517 523 WRITE(numout,*) ' finer control over o/p sn_cfctl%l_config = ', sn_cfctl%l_config 518 524 WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat … … 520 526 WRITE(numout,*) ' sn_cfctl%l_oceout = ', sn_cfctl%l_oceout 521 527 WRITE(numout,*) ' sn_cfctl%l_layout = ', sn_cfctl%l_layout 522 WRITE(numout,*) ' sn_cfctl%l_mppout = ', sn_cfctl%l_mppout 523 WRITE(numout,*) ' sn_cfctl%l_mpptop = ', sn_cfctl%l_mpptop 528 WRITE(numout,*) ' sn_cfctl%l_prtctl = ', sn_cfctl%l_prtctl 529 WRITE(numout,*) ' sn_cfctl%l_prttrc = ', sn_cfctl%l_prttrc 530 WRITE(numout,*) ' sn_cfctl%l_oasout = ', sn_cfctl%l_oasout 524 531 WRITE(numout,*) ' sn_cfctl%procmin = ', sn_cfctl%procmin 525 532 WRITE(numout,*) ' sn_cfctl%procmax = ', sn_cfctl%procmax … … 559 566 ! ! Parameter control 560 567 ! 561 IF( ln_ctl .OR. sn_cfctl%l_mppout .OR. sn_cfctl%l_mpptop ) THEN! sub-domain area indices for the control prints568 IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN ! sub-domain area indices for the control prints 562 569 IF( lk_mpp .AND. jpnij > 1 ) THEN 563 570 isplt = jpni ; jsplt = jpnj ; ijsplt = jpni*jpnj ! the domain is forced to the real split domain … … 689 696 sn_cfctl%l_oceout = setto 690 697 sn_cfctl%l_layout = setto 691 sn_cfctl%l_ mppout= setto692 sn_cfctl%l_ mpptop= setto698 sn_cfctl%l_prtctl = setto 699 sn_cfctl%l_prttrc = setto 693 700 sn_cfctl%l_oasout = setto 694 701 END SUBROUTINE nemo_set_cfctl -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OCE/stpctl.F90
r11407 r11872 72 72 ! 73 73 ll_wrtstp = ( MOD( kt, sn_cfctl%ptimincr ) == 0 ) .OR. ( kt == nitend ) 74 ll_colruns = ll_wrtstp .AND. ( ln_ctl .OR.sn_cfctl%l_runstat )74 ll_colruns = ll_wrtstp .AND. ( sn_cfctl%l_runstat ) 75 75 ll_wrtruns = ll_colruns .AND. lwm 76 76 IF( kt == nit000 .AND. lwp ) THEN … … 82 82 ! ! open run.stat file(s) at start whatever 83 83 ! ! the value of sn_cfctl%ptimincr 84 IF( lwm .AND. ( ln_ctl .OR.sn_cfctl%l_runstat ) ) THEN84 IF( lwm .AND. ( sn_cfctl%l_runstat ) ) THEN 85 85 CALL ctl_opn( numrun, 'run.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 86 86 clname = 'run.stat.nc' … … 147 147 END IF 148 148 ! !== error handling ==! 149 IF( ( ln_ctl .OR. lsomeoce ) .AND. ( & ! have use mpp_max (because ln_ctl=.T.) or contains some ocean points149 IF( ( sn_cfctl%l_glochk .OR. lsomeoce ) .AND. ( & ! domain contains some ocean points, check for sensible ranges 150 150 & zmax(1) > 20._wp .OR. & ! too large sea surface height ( > 20 m ) 151 151 & zmax(2) > 10._wp .OR. & ! too large velocity ( > 10 m/s) … … 154 154 & zmax(4) < 0._wp .OR. & ! too large sea surface salinity (keep this line for sea-ice) 155 155 & ISNAN( zmax(1) + zmax(2) + zmax(3) ) ) ) THEN ! NaN encounter in the tests 156 IF( lk_mpp .AND. ln_ctl ) THEN 156 IF( lk_mpp .AND. sn_cfctl%l_glochk ) THEN 157 ! have use mpp_max (because sn_cfctl%l_glochk=.T. and distributed) 157 158 CALL mpp_maxloc( 'stpctl', ABS(sshn) , ssmask(:,:) , zzz, ih ) 158 159 CALL mpp_maxloc( 'stpctl', ABS(un) , umask (:,:,:), zzz, iu ) … … 160 161 CALL mpp_maxloc( 'stpctl', tsn(:,:,:,jp_sal), tmask (:,:,:), zzz, is2 ) 161 162 ELSE 163 ! find local min and max locations 162 164 ih(:) = MAXLOC( ABS( sshn(:,:) ) ) + (/ nimpp - 1, njmpp - 1 /) 163 165 iu(:) = MAXLOC( ABS( un (:,:,:) ) ) + (/ nimpp - 1, njmpp - 1, 0 /) … … 175 177 CALL dia_wri_state( 'output.abort' ) ! create an output.abort file 176 178 177 IF( .NOT. ln_ctl) THEN179 IF( .NOT. sn_cfctl%l_glochk ) THEN 178 180 WRITE(ctmp8,*) 'E R R O R message from sub-domain: ', narea 179 181 CALL ctl_stop( 'STOP', ctmp1, ' ', ctmp8, ' ', ctmp2, ctmp3, ctmp4, ctmp5, ctmp6 ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OFF/dtadyn.F90
r11869 r11872 176 176 CALL eos( tsn, rhd, rhop, gdept_0(:,:,:) ) ! In any case, we need rhop 177 177 ! 178 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN! print control178 IF(sn_cfctl%l_prtctl) THEN ! print control 179 179 CALL prt_ctl(tab3d_1=tsn(:,:,:,jp_tem), clinfo1=' tn - : ', mask1=tmask, kdim=jpk ) 180 180 CALL prt_ctl(tab3d_1=tsn(:,:,:,jp_sal), clinfo1=' sn - : ', mask1=tmask, kdim=jpk ) … … 444 444 CALL eos ( tsn, rhd, rhop, gdept_0(:,:,:) ) ! In any case, we need rhop 445 445 446 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN! print control446 IF(sn_cfctl%l_prtctl) THEN ! print control 447 447 CALL prt_ctl(tab3d_1=tsn(:,:,:,jp_tem), clinfo1=' tn - : ', mask1=tmask, kdim=jpk ) 448 448 CALL prt_ctl(tab3d_1=tsn(:,:,:,jp_sal), clinfo1=' sn - : ', mask1=tmask, kdim=jpk ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/OFF/nemogcm.F90
r11869 r11872 162 162 INTEGER :: ios, ilocal_comm ! local integers 163 163 !! 164 NAMELIST/namctl/ ln_ctl , sn_cfctl, nn_print, nn_ictls, nn_ictle,&164 NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle, & 165 165 & nn_isplt , nn_jsplt, nn_jctls, nn_jctle, & 166 166 & ln_timing, ln_diacfl … … 199 199 ! 200 200 ! !--------------------! 201 ! ! Open listing units ! -> need ln_ctl from namctl to define lwp201 ! ! Open listing units ! -> need sn_cfctl from namctl to define lwp 202 202 ! !--------------------! 203 203 ! … … 210 210 ! 211 211 ! finalize the definition of namctl variables 212 IF( sn_cfctl%l_config ) THEN 212 IF( sn_cfctl%l_allon ) THEN 213 ! Turn on all options. 214 CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. ) 215 ! Ensure all processors are active 216 sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1 217 ELSEIF( sn_cfctl%l_config ) THEN 213 218 ! Activate finer control of report outputs 214 219 ! optionally switch off output from selected areas (note this only … … 218 223 & CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 219 224 ELSE 220 ! Use ln_ctl to turn on oroff all options.221 CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. )222 ENDIF 223 ! 224 lwp = (narea == 1) .OR. ln_ctl .OR.sn_cfctl%l_oceout ! control of all listing output print225 ! turn off all options. 226 CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. ) 227 ENDIF 228 ! 229 lwp = (narea == 1) .OR. sn_cfctl%l_oceout ! control of all listing output print 225 230 ! 226 231 IF(lwp) THEN ! open listing units … … 299 304 IF( lk_c1d ) CALL c1d_init ! 1D column configuration 300 305 CALL dom_init("OPA") ! Domain 301 IF( ln_ctl .OR. sn_cfctl%l_mppout) &306 IF( sn_cfctl%l_prtctl ) & 302 307 & CALL prt_ctl_init ! Print control 303 308 … … 339 344 !! ** Purpose : control print setting 340 345 !! 341 !! ** Method : - print namctl information and check some consistencies346 !! ** Method : - print namctl and namcfg information and check some consistencies 342 347 !!---------------------------------------------------------------------- 343 348 ! … … 347 352 WRITE(numout,*) '~~~~~~~~' 348 353 WRITE(numout,*) ' Namelist namctl' 349 WRITE(numout,*) ' run control (for debugging) ln_ctl = ', ln_ctl 354 WRITE(numout,*) ' sn_cfctl%l_glochk = ', sn_cfctl%l_glochk 355 WRITE(numout,*) ' sn_cfctl%l_allon = ', sn_cfctl%l_allon 350 356 WRITE(numout,*) ' finer control over o/p sn_cfctl%l_config = ', sn_cfctl%l_config 351 357 WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat … … 353 359 WRITE(numout,*) ' sn_cfctl%l_oceout = ', sn_cfctl%l_oceout 354 360 WRITE(numout,*) ' sn_cfctl%l_layout = ', sn_cfctl%l_layout 355 WRITE(numout,*) ' sn_cfctl%l_mppout = ', sn_cfctl%l_mppout 356 WRITE(numout,*) ' sn_cfctl%l_mpptop = ', sn_cfctl%l_mpptop 361 WRITE(numout,*) ' sn_cfctl%l_prtctl = ', sn_cfctl%l_prtctl 362 WRITE(numout,*) ' sn_cfctl%l_prttrc = ', sn_cfctl%l_prttrc 363 WRITE(numout,*) ' sn_cfctl%l_oasout = ', sn_cfctl%l_oasout 357 364 WRITE(numout,*) ' sn_cfctl%procmin = ', sn_cfctl%procmin 358 365 WRITE(numout,*) ' sn_cfctl%procmax = ', sn_cfctl%procmax … … 392 399 ! ! Parameter control 393 400 ! 394 IF( ln_ctl .OR. sn_cfctl%l_mppout ) THEN! sub-domain area indices for the control prints401 IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN ! sub-domain area indices for the control prints 395 402 IF( lk_mpp .AND. jpnij > 1 ) THEN 396 403 isplt = jpni ; jsplt = jpnj ; ijsplt = jpni*jpnj ! the domain is forced to the real split domain … … 507 514 sn_cfctl%l_oceout = setto 508 515 sn_cfctl%l_layout = setto 509 sn_cfctl%l_ mppout= setto510 sn_cfctl%l_ mpptop= setto516 sn_cfctl%l_prtctl = setto 517 sn_cfctl%l_prttrc = setto 511 518 sn_cfctl%l_oasout = setto 512 519 END SUBROUTINE nemo_set_cfctl -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAO/nemogcm.F90
r11869 r11872 91 91 INTEGER :: ios, ilocal_comm ! local integer 92 92 ! 93 NAMELIST/namctl/ ln_ctl , sn_cfctl, nn_print, nn_ictls, nn_ictle,&93 NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle, & 94 94 & nn_isplt , nn_jsplt, nn_jctls, nn_jctle, & 95 95 & ln_timing, ln_diacfl … … 142 142 ! 143 143 ! !--------------------! 144 ! ! Open listing units ! -> need ln_ctl from namctl to define lwp144 ! ! Open listing units ! -> need sn_cfctl from namctl to define lwp 145 145 ! !--------------------! 146 146 ! … … 153 153 ! 154 154 ! finalize the definition of namctl variables 155 IF( sn_cfctl%l_config ) THEN 155 IF( sn_cfctl%l_allon ) THEN 156 ! Turn on all options. 157 CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. ) 158 ! Ensure all processors are active 159 sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1 160 ELSEIF( sn_cfctl%l_config ) THEN 156 161 ! Activate finer control of report outputs 157 162 ! optionally switch off output from selected areas (note this only … … 161 166 & CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 162 167 ELSE 163 ! Use ln_ctl to turn on oroff all options.164 CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. )165 ENDIF 166 ! 167 lwp = (narea == 1) .OR. ln_ctl .OR.sn_cfctl%l_oceout ! control of all listing output print168 ! turn off all options. 169 CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. ) 170 ENDIF 171 ! 172 lwp = (narea == 1) .OR. sn_cfctl%l_oceout ! control of all listing output print 168 173 ! 169 174 IF(lwp) THEN ! open listing units … … 241 246 242 247 243 IF( ln_ctl .OR. sn_cfctl%l_mppout) &248 IF( sn_cfctl%l_prtctl ) & 244 249 & CALL prt_ctl_init ! Print control 245 250 … … 254 259 !! ** Purpose : control print setting 255 260 !! 256 !! ** Method : - print namctl information and check some consistencies261 !! ** Method : - print namctl and namcfg information and check some consistencies 257 262 !!---------------------------------------------------------------------- 258 263 ! … … 262 267 WRITE(numout,*) '~~~~~~~~' 263 268 WRITE(numout,*) ' Namelist namctl' 264 WRITE(numout,*) ' run control (for debugging) ln_ctl = ', ln_ctl 269 WRITE(numout,*) ' sn_cfctl%l_glochk = ', sn_cfctl%l_glochk 270 WRITE(numout,*) ' sn_cfctl%l_allon = ', sn_cfctl%l_allon 265 271 WRITE(numout,*) ' finer control over o/p sn_cfctl%l_config = ', sn_cfctl%l_config 266 272 WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat … … 268 274 WRITE(numout,*) ' sn_cfctl%l_oceout = ', sn_cfctl%l_oceout 269 275 WRITE(numout,*) ' sn_cfctl%l_layout = ', sn_cfctl%l_layout 270 WRITE(numout,*) ' sn_cfctl%l_mppout = ', sn_cfctl%l_mppout 271 WRITE(numout,*) ' sn_cfctl%l_mpptop = ', sn_cfctl%l_mpptop 276 WRITE(numout,*) ' sn_cfctl%l_prtctl = ', sn_cfctl%l_prtctl 277 WRITE(numout,*) ' sn_cfctl%l_prttrc = ', sn_cfctl%l_prttrc 278 WRITE(numout,*) ' sn_cfctl%l_oasout = ', sn_cfctl%l_oasout 272 279 WRITE(numout,*) ' sn_cfctl%procmin = ', sn_cfctl%procmin 273 280 WRITE(numout,*) ' sn_cfctl%procmax = ', sn_cfctl%procmax … … 307 314 ! ! Parameter control 308 315 ! 309 IF( ln_ctl .OR. sn_cfctl%l_mppout ) THEN! sub-domain area indices for the control prints316 IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN ! sub-domain area indices for the control prints 310 317 IF( lk_mpp .AND. jpnij > 1 ) THEN 311 318 isplt = jpni ; jsplt = jpnj ; ijsplt = jpni*jpnj ! the domain is forced to the real split domain … … 427 434 sn_cfctl%l_oceout = setto 428 435 sn_cfctl%l_layout = setto 429 sn_cfctl%l_ mppout= setto430 sn_cfctl%l_ mpptop= setto436 sn_cfctl%l_prtctl = setto 437 sn_cfctl%l_prttrc = setto 431 438 sn_cfctl%l_oasout = setto 432 439 END SUBROUTINE nemo_set_cfctl -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAS/daymod.F90
r11869 r11872 275 275 IF( nsec_week > 7*nsecd ) nsec_week = ndt05 ! New week 276 276 277 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN277 IF(sn_cfctl%l_prtctl) THEN 278 278 WRITE(charout,FMT="('kt =', I4,' d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear 279 279 CALL prt_ctl_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAS/nemogcm.F90
r11869 r11872 185 185 INTEGER :: ios, ilocal_comm ! local integers 186 186 !! 187 NAMELIST/namctl/ ln_ctl , sn_cfctl, nn_print, nn_ictls, nn_ictle,&187 NAMELIST/namctl/ sn_cfctl, nn_print, nn_ictls, nn_ictle, & 188 188 & nn_isplt , nn_jsplt, nn_jctls, nn_jctle, & 189 189 & ln_timing, ln_diacfl … … 246 246 ! 247 247 ! !--------------------! 248 ! ! Open listing units ! -> need ln_ctl from namctl to define lwp248 ! ! Open listing units ! -> need sn_cfctl from namctl to define lwp 249 249 ! !--------------------! 250 250 ! … … 257 257 ! 258 258 ! finalize the definition of namctl variables 259 IF( sn_cfctl%l_config ) THEN 259 IF( sn_cfctl%l_allon ) THEN 260 ! Turn on all options. 261 CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. ) 262 ! Ensure all processors are active 263 sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1 264 ELSEIF( sn_cfctl%l_config ) THEN 260 265 ! Activate finer control of report outputs 261 266 ! optionally switch off output from selected areas (note this only … … 265 270 & CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 266 271 ELSE 267 ! Use ln_ctl to turn on oroff all options.268 CALL nemo_set_cfctl( sn_cfctl, ln_ctl, .TRUE. )269 ENDIF 270 ! 271 lwp = (narea == 1) .OR. ln_ctl .OR.sn_cfctl%l_oceout ! control of all listing output print272 ! turn off all options. 273 CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. ) 274 ENDIF 275 ! 276 lwp = (narea == 1) .OR. sn_cfctl%l_oceout ! control of all listing output print 272 277 ! 273 278 IF(lwp) THEN ! open listing units … … 347 352 CALL eos_init ! Equation of seawater 348 353 CALL dom_init('SAS') ! Domain 349 IF( ln_ctl .OR. sn_cfctl%l_mppout) &354 IF( sn_cfctl%l_prtctl ) & 350 355 & CALL prt_ctl_init ! Print control 351 356 … … 376 381 !! ** Purpose : control print setting 377 382 !! 378 !! ** Method : - print namctl information and check some consistencies383 !! ** Method : - print namctl and namcfg information and check some consistencies 379 384 !!---------------------------------------------------------------------- 380 385 ! … … 384 389 WRITE(numout,*) '~~~~~~~~' 385 390 WRITE(numout,*) ' Namelist namctl' 386 WRITE(numout,*) ' run control (for debugging) ln_ctl = ', ln_ctl 391 WRITE(numout,*) ' sn_cfctl%l_glochk = ', sn_cfctl%l_glochk 392 WRITE(numout,*) ' sn_cfctl%l_allon = ', sn_cfctl%l_allon 387 393 WRITE(numout,*) ' finer control over o/p sn_cfctl%l_config = ', sn_cfctl%l_config 388 394 WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat … … 390 396 WRITE(numout,*) ' sn_cfctl%l_oceout = ', sn_cfctl%l_oceout 391 397 WRITE(numout,*) ' sn_cfctl%l_layout = ', sn_cfctl%l_layout 392 WRITE(numout,*) ' sn_cfctl%l_mppout = ', sn_cfctl%l_mppout 393 WRITE(numout,*) ' sn_cfctl%l_mpptop = ', sn_cfctl%l_mpptop 398 WRITE(numout,*) ' sn_cfctl%l_prtctl = ', sn_cfctl%l_prtctl 399 WRITE(numout,*) ' sn_cfctl%l_prttrc = ', sn_cfctl%l_prttrc 400 WRITE(numout,*) ' sn_cfctl%l_oasout = ', sn_cfctl%l_oasout 394 401 WRITE(numout,*) ' sn_cfctl%procmin = ', sn_cfctl%procmin 395 402 WRITE(numout,*) ' sn_cfctl%procmax = ', sn_cfctl%procmax … … 429 436 ! ! Parameter control 430 437 ! 431 IF( ln_ctl .OR. sn_cfctl%l_mppout ) THEN! sub-domain area indices for the control prints438 IF( sn_cfctl%l_prtctl .OR. sn_cfctl%l_prttrc ) THEN ! sub-domain area indices for the control prints 432 439 IF( lk_mpp .AND. jpnij > 1 ) THEN 433 440 isplt = jpni ; jsplt = jpnj ; ijsplt = jpni*jpnj ! the domain is forced to the real split domain … … 553 560 sn_cfctl%l_oceout = setto 554 561 sn_cfctl%l_layout = setto 555 sn_cfctl%l_ mppout= setto556 sn_cfctl%l_ mpptop= setto562 sn_cfctl%l_prtctl = setto 563 sn_cfctl%l_prttrc = setto 557 564 sn_cfctl%l_oasout = setto 558 565 END SUBROUTINE nemo_set_cfctl -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAS/sbcssm.F90
r11869 r11872 131 131 vb (:,:,1) = ssv_m(:,:) 132 132 133 IF( ln_ctl .OR. sn_cfctl%l_mppout) THEN ! print control133 IF(sn_cfctl%l_prtctl) THEN ! print control 134 134 CALL prt_ctl(tab2d_1=sst_m, clinfo1=' sst_m - : ', mask1=tmask ) 135 135 CALL prt_ctl(tab2d_1=sss_m, clinfo1=' sss_m - : ', mask1=tmask ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/SAS/stpctl.F90
r10603 r11872 63 63 ! 64 64 ll_wrtstp = ( MOD( kt, sn_cfctl%ptimincr ) == 0 ) .OR. ( kt == nitend ) 65 ll_colruns = ll_wrtstp .AND. ( ln_ctl .OR.sn_cfctl%l_runstat )65 ll_colruns = ll_wrtstp .AND. ( sn_cfctl%l_runstat ) 66 66 ll_wrtruns = ll_colruns .AND. lwm 67 67 IF( kt == nit000 .AND. lwp ) THEN … … 73 73 ! ! open run.stat file(s) at start whatever 74 74 ! ! the value of sn_cfctl%ptimincr 75 IF( lwm .AND. ( ln_ctl .OR.sn_cfctl%l_runstat ) ) THEN75 IF( lwm .AND. ( sn_cfctl%l_runstat ) ) THEN 76 76 CALL ctl_opn( numrun, 'run.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 77 77 clname = 'run.stat.nc' -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P2Z/p2zbio.F90
r11869 r11872 367 367 ENDIF 368 368 369 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)369 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 370 370 WRITE(charout, FMT="('bio')") 371 371 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P2Z/p2zexp.F90
r11869 r11872 146 146 ENDIF 147 147 ! 148 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)148 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 149 149 WRITE(charout, FMT="('exp')") 150 150 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P2Z/p2zopt.F90
r11869 r11872 133 133 134 134 135 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)135 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 136 136 WRITE(charout, FMT="('opt')") 137 137 CALL prt_ctl_trc_info( charout ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P2Z/p2zsed.F90
r11869 r11872 107 107 ! 108 108 109 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)109 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 110 110 WRITE(charout, FMT="('sed')") 111 111 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zagg.F90
r11869 r11872 173 173 ENDIF 174 174 ! 175 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)175 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 176 176 WRITE(charout, FMT="('agg')") 177 177 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zbio.F90
r11869 r11872 106 106 & CALL p4z_ligand( kt, knt ) 107 107 ! ! 108 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)108 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 109 109 WRITE(charout, FMT="('bio ')") 110 110 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zfechem.F90
r11869 r11872 220 220 ENDIF 221 221 222 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)222 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 223 223 WRITE(charout, FMT="('fechem')") 224 224 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zflx.F90
r11869 r11872 179 179 t_atm_co2_flx = atcco2 ! Total atmospheric pCO2 180 180 181 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)181 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 182 182 WRITE(charout, FMT="('flx ')") 183 183 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zligand.F90
r11869 r11872 94 94 ENDIF 95 95 ! 96 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)96 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 97 97 WRITE(charout, FMT="('ligand1')") 98 98 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zlys.F90
r11869 r11872 129 129 ENDIF 130 130 ! 131 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)131 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 132 132 WRITE(charout, FMT="('lys ')") 133 133 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zmeso.F90
r11869 r11872 255 255 IF (ln_ligand) DEALLOCATE( zz2ligprod ) 256 256 ! 257 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)257 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 258 258 WRITE(charout, FMT="('meso')") 259 259 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zmicro.F90
r11869 r11872 207 207 IF (ln_ligand) DEALLOCATE( zzligprod ) 208 208 ! 209 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)209 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 210 210 WRITE(charout, FMT="('micro')") 211 211 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zmort.F90
r11869 r11872 118 118 END DO 119 119 ! 120 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)120 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 121 121 WRITE(charout, FMT="('nano')") 122 122 CALL prt_ctl_trc_info(charout) … … 193 193 END DO 194 194 ! 195 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)195 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 196 196 WRITE(charout, FMT="('diat')") 197 197 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zpoc.F90
r11869 r11872 248 248 ENDIF 249 249 250 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)250 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 251 251 WRITE(charout, FMT="('poc1')") 252 252 CALL prt_ctl_trc_info(charout) … … 460 460 ENDIF 461 461 462 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)462 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 463 463 WRITE(charout, FMT="('poc2')") 464 464 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zprod.F90
r11869 r11872 456 456 ENDIF 457 457 458 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)458 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 459 459 WRITE(charout, FMT="('prod')") 460 460 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zrem.F90
r11869 r11872 207 207 END DO 208 208 209 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)209 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 210 210 WRITE(charout, FMT="('rem1')") 211 211 CALL prt_ctl_trc_info(charout) … … 233 233 END DO 234 234 235 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)235 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 236 236 WRITE(charout, FMT="('rem2')") 237 237 CALL prt_ctl_trc_info(charout) … … 268 268 END DO 269 269 270 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)270 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 271 271 WRITE(charout, FMT="('rem3')") 272 272 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zsed.F90
r11869 r11872 482 482 ENDIF 483 483 ! 484 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (USEd for debugging)484 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (USEd for debugging) 485 485 WRITE(charout, fmt="('sed ')") 486 486 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p4zsink.F90
r11869 r11872 172 172 ENDIF 173 173 ! 174 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)174 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 175 175 WRITE(charout, FMT="('sink')") 176 176 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p5zmeso.F90
r11869 r11872 376 376 ENDIF 377 377 ! 378 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)378 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 379 379 WRITE(charout, FMT="('meso')") 380 380 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p5zmicro.F90
r11869 r11872 318 318 ENDIF 319 319 ! 320 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)320 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 321 321 WRITE(charout, FMT="('micro')") 322 322 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p5zmort.F90
r11869 r11872 119 119 END DO 120 120 ! 121 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)121 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 122 122 WRITE(charout, FMT="('nano')") 123 123 CALL prt_ctl_trc_info(charout) … … 180 180 END DO 181 181 ! 182 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)182 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 183 183 WRITE(charout, FMT="('pico')") 184 184 CALL prt_ctl_trc_info(charout) … … 258 258 END DO 259 259 ! 260 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)260 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 261 261 WRITE(charout, FMT="('diat')") 262 262 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/P4Z/p5zprod.F90
r11869 r11872 554 554 ENDIF 555 555 556 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)556 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 557 557 WRITE(charout, FMT="('prod')") 558 558 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/PISCES/SED/trcdmp_sed.F90
r11869 r11872 106 106 ! 107 107 ! ! print mean trends (used for debugging) 108 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN108 IF( sn_cfctl%l_prttrc ) THEN 109 109 WRITE(charout, FMT="('dmp ')") 110 110 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcadv.F90
r11869 r11872 135 135 END SELECT 136 136 ! 137 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN !== print mean trends (used for debugging)137 IF( sn_cfctl%l_prttrc ) THEN !== print mean trends (used for debugging) 138 138 WRITE(charout, FMT="('adv ')") 139 139 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcbbl.F90
r11869 r11872 67 67 ! 68 68 CALL tra_bbl_dif( trb, tra, jptra ) 69 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN69 IF( sn_cfctl%l_prttrc ) THEN 70 70 WRITE(charout, FMT="(' bbl_dif')") ; CALL prt_ctl_trc_info(charout) 71 71 CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) … … 78 78 ! 79 79 CALL tra_bbl_adv( trb, tra, jptra ) 80 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN80 IF( sn_cfctl%l_prttrc ) THEN 81 81 WRITE(charout, FMT="(' bbl_adv')") ; CALL prt_ctl_trc_info(charout) 82 82 CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcdmp.F90
r11869 r11872 156 156 IF( l_trdtrc ) DEALLOCATE( ztrtrd ) 157 157 ! ! print mean trends (used for debugging) 158 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN158 IF( sn_cfctl%l_prttrc ) THEN 159 159 WRITE(charout, FMT="('dmp ')") 160 160 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcldf.F90
r11869 r11872 110 110 ENDIF 111 111 ! 112 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)112 IF( sn_cfctl%l_prttrc ) THEN ! print mean trends (used for debugging) 113 113 WRITE(charout, FMT="('ldf ')") 114 114 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcnxt.F90
r11869 r11872 178 178 IF( l_trdtrc ) DEALLOCATE( ztrdt ) 179 179 ! 180 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)180 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 181 181 WRITE(charout, FMT="('nxt')") 182 182 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcrad.F90
r11869 r11872 65 65 IF( ln_my_trc ) CALL trc_rad_sms( kt, trb, trn, jp_myt0, jp_myt1 ) ! MY_TRC model 66 66 ! 67 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)67 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 68 68 WRITE(charout, FMT="('rad')") 69 69 CALL prt_ctl_trc_info( charout ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trcsbc.F90
r11869 r11872 191 191 ENDIF 192 192 ! 193 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN193 IF( sn_cfctl%l_prttrc ) THEN 194 194 WRITE(charout, FMT="('sbc ')") ; CALL prt_ctl_trc_info(charout) 195 195 CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/TRP/trczdf.F90
r11869 r11872 65 65 ENDIF 66 66 ! ! print mean trends (used for debugging) 67 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN67 IF( sn_cfctl%l_prttrc ) THEN 68 68 WRITE(charout, FMT="('zdf ')") 69 69 CALL prt_ctl_trc_info(charout) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/prtctl_trc.F90
r10570 r11872 35 35 SUBROUTINE prt_ctl_trc( tab4d, mask, clinfo, ovlap, kdim, clinfo2 ) 36 36 !!---------------------------------------------------------------------- 37 !! *** ROUTINE prt_ctl ***37 !! *** ROUTINE prt_ctl_trc *** 38 38 !! 39 39 !! ** Purpose : - print sum control 3D arrays over the same area … … 41 41 !! debugging a new parametrization in mono or mpp. 42 42 !! 43 !! ** Method : 2 possibilities exist when setting the ln_ctlparameter to43 !! ** Method : 2 possibilities exist when setting the sn_cfctl%prttrc parameter to 44 44 !! .true. in the ocean namelist: 45 45 !! - to debug a MPI run .vs. a mono-processor one; … … 54 54 !! - All arguments of the above calling sequence are optional so their 55 55 !! name must be explicitly typed if used. For instance if the mask 56 !! array tmask(:,:,:) must be passed through the prt_ctl subroutine,57 !! it must look s like: CALL prt_ctl( mask=tmask ).56 !! array tmask(:,:,:) must be passed through the prt_ctl_trc subroutine, 57 !! it must look like: CALL prt_ctl_trc( mask=tmask ). 58 58 !!---------------------------------------------------------------------- 59 59 REAL(wp) , DIMENSION(:,:,:,:), INTENT(in), OPTIONAL :: tab4d ! 4D array -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/trcini.F90
r11869 r11872 140 140 ENDIF 141 141 IF(lwp) WRITE(numout,*) 142 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN ! print mean trends (used for debugging)142 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 143 143 CALL prt_ctl_trc_init 144 144 WRITE(charout, FMT="('ini ')") -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/trcsms.F90
r11869 r11872 55 55 IF( ln_my_trc ) CALL trc_sms_my_trc ( kt ) ! MY_TRC tracers 56 56 57 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN! print mean trends (used for debugging)57 IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) 58 58 WRITE(charout, FMT="('sms ')") 59 59 CALL prt_ctl_trc_info( charout ) -
NEMO/branches/2019/fix_sn_cfctl_ticket2328/src/TOP/trcstp.F90
r11869 r11872 69 69 ENDIF 70 70 ! 71 ll_trcstat = ( ln_ctl .OR.sn_cfctl%l_trcstat ) .AND. &71 ll_trcstat = ( sn_cfctl%l_trcstat ) .AND. & 72 72 & ( ( MOD( kt, sn_cfctl%ptimincr ) == 0 ) .OR. ( kt == nitend ) ) 73 73 IF( kt == nittrc000 .AND. lk_trdmxl_trc ) CALL trd_mxl_trc_init ! trends: Mixed-layer … … 89 89 IF( MOD( kt , nn_dttrc ) == 0 ) THEN ! only every nn_dttrc time step 90 90 ! 91 IF( ln_ctl .OR. sn_cfctl%l_mpptop) THEN91 IF(sn_cfctl%l_prttrc) THEN 92 92 WRITE(charout,FMT="('kt =', I4,' d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear 93 93 CALL prt_ctl_trc_info(charout)
Note: See TracChangeset
for help on using the changeset viewer.