Changeset 9321
- Timestamp:
- 2018-02-12T14:29:34+01:00 (7 years ago)
- Location:
- branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90
r8400 r9321 50 50 USE ice 51 51 #endif 52 USE timing 52 53 IMPLICIT NONE 53 54 PRIVATE … … 110 111 ! 111 112 ! ! Write the information 113 IF(nn_timing == 2) CALL timing_start('iom_rstput') 112 114 CALL iom_rstput( kt, nitbkg_r, inum, 'rdastp' , zdate ) 113 115 CALL iom_rstput( kt, nitbkg_r, inum, 'un' , un ) … … 121 123 ! CALL iom_rstput( kt, nitbkg_r, inum, 'gcx' , gcx ) 122 124 CALL iom_rstput( kt, nitbkg_r, inum, 'avt' , avt ) 125 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 123 126 ! 124 127 CALL iom_close( inum ) … … 149 152 ! 150 153 ! ! Write the information 154 IF(nn_timing == 2) CALL timing_start('iom_rstput') 151 155 CALL iom_rstput( kt, nitdin_r, inum, 'rdastp' , zdate ) 152 156 CALL iom_rstput( kt, nitdin_r, inum, 'un' , un ) … … 165 169 ENDIF 166 170 #endif 171 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 167 172 ! 168 173 CALL iom_close( inum ) -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90
r6487 r9321 254 254 IF(lwp) WRITE(numout,*) ' dia_hsb_rst at it= ', kt,' date= ', ndastp 255 255 IF(lwp) WRITE(numout,*) '~~~~~~~' 256 IF(nn_timing == 2) CALL timing_start('iom_rstget') 256 257 CALL iom_get( numror, 'frc_v', frc_v ) 257 258 CALL iom_get( numror, 'frc_t', frc_t ) … … 269 270 CALL iom_get( numror, jpdom_autoglo, 'ssh_sc_loc_ini', ssh_sc_loc_ini ) 270 271 ENDIF 272 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 271 273 ELSE 272 274 IF(lwp) WRITE(numout,*) '~~~~~~~' … … 304 306 IF(lwp) WRITE(numout,*) ' dia_hsb_rst at it= ', kt,' date= ', ndastp 305 307 IF(lwp) WRITE(numout,*) '~~~~~~~' 306 308 IF(nn_timing == 2) CALL timing_start('iom_rstput') 307 309 CALL iom_rstput( kt, nitrst, numrow, 'frc_v' , frc_v ) 308 310 CALL iom_rstput( kt, nitrst, numrow, 'frc_t' , frc_t ) … … 320 322 CALL iom_rstput( kt, nitrst, numrow, 'ssh_sc_loc_ini', ssh_sc_loc_ini ) 321 323 ENDIF 324 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 322 325 ! 323 326 ENDIF -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90
r6487 r9321 309 309 IF( iom_varid( numror, 'kt', ldstop = .FALSE. ) > 0 ) THEN 310 310 ! Get Calendar informations 311 IF(nn_timing == 2) CALL timing_start('iom_rstget') 311 312 CALL iom_get( numror, 'kt', zkt ) ! last time-step of previous run 313 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 312 314 IF(lwp) THEN 313 315 WRITE(numout,*) ' *** Info read in restart : ' … … 327 329 ! define ndastp and adatrj 328 330 IF ( nrstdt == 2 ) THEN 331 IF(nn_timing == 2) CALL timing_start('iom_rstget') 329 332 ! read the parameters correspondting to nit000 - 1 (last time step of previous run) 330 333 CALL iom_get( numror, 'ndastp', zndastp ) 331 334 ndastp = NINT( zndastp ) 332 335 CALL iom_get( numror, 'adatrj', adatrj ) 336 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 333 337 ELSE 334 338 ! parameters correspondting to nit000 - 1 (as we start the step loop with a call to day) … … 359 363 ENDIF 360 364 ! calendar control 365 IF(nn_timing == 2) CALL timing_start('iom_rstput') 361 366 CALL iom_rstput( kt, nitrst, numrow, 'kt' , REAL( kt , wp) ) ! time-step 362 367 CALL iom_rstput( kt, nitrst, numrow, 'ndastp' , REAL( ndastp, wp) ) ! date 363 368 CALL iom_rstput( kt, nitrst, numrow, 'adatrj' , adatrj ) ! number of elapsed days since 364 369 ! ! the begining of the run [s] 370 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 365 371 ENDIF 366 372 ! -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90
r6498 r9321 817 817 IF( ln_rstart ) THEN !* Read the restart file 818 818 CALL rst_read_open ! open the restart file if necessary 819 IF(nn_timing == 2) CALL timing_start('iom_rstget') 819 820 CALL iom_get( numror, jpdom_autoglo, 'sshn' , sshn ) 820 821 ! … … 892 893 ENDIF 893 894 ! 895 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 894 896 ELSE !* Initialize at "rest" 895 897 fse3t_b(:,:,:) = e3t_0(:,:,:) … … 908 910 ! ! --------- ! 909 911 ! ! all cases ! 910 ! ! --------- ! 912 ! ! --------- ! 913 IF(nn_timing == 2) CALL timing_start('iom_rstput') 911 914 CALL iom_rstput( kt, nitrst, numrow, 'fse3t_b', fse3t_b(:,:,:) ) 912 915 CALL iom_rstput( kt, nitrst, numrow, 'fse3t_n', fse3t_n(:,:,:) ) … … 922 925 CALL iom_rstput( kt, nitrst, numrow, 'hdiv_lf', hdiv_lf(:,:,:) ) 923 926 ENDIF 927 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 924 928 925 929 ENDIF -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/DOM/domwri.F90
r6487 r9321 126 126 127 127 ! ! masks (inum2) 128 IF(nn_timing == 2) CALL timing_start('iom_rstput') 128 129 CALL iom_rstput( 0, 0, inum2, 'tmask', tmask, ktype = jp_i1 ) ! ! land-sea mask 129 130 CALL iom_rstput( 0, 0, inum2, 'umask', umask, ktype = jp_i1 ) 130 131 CALL iom_rstput( 0, 0, inum2, 'vmask', vmask, ktype = jp_i1 ) 131 132 CALL iom_rstput( 0, 0, inum2, 'fmask', fmask, ktype = jp_i1 ) 133 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 132 134 133 135 CALL dom_uniq( zprw, 'T' ) … … 138 140 END DO 139 141 END DO ! ! unique point mask 142 IF(nn_timing == 2) CALL timing_start('iom_rstput') 140 143 CALL iom_rstput( 0, 0, inum2, 'tmaskutil', zprt, ktype = jp_i1 ) 144 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 141 145 CALL dom_uniq( zprw, 'U' ) 142 146 DO jj = 1, jpj … … 146 150 END DO 147 151 END DO 152 IF(nn_timing == 2) CALL timing_start('iom_rstput') 148 153 CALL iom_rstput( 0, 0, inum2, 'umaskutil', zprt, ktype = jp_i1 ) 154 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 149 155 CALL dom_uniq( zprw, 'V' ) 150 156 DO jj = 1, jpj … … 154 160 END DO 155 161 END DO 162 IF(nn_timing == 2) CALL timing_start('iom_rstput') 156 163 CALL iom_rstput( 0, 0, inum2, 'vmaskutil', zprt, ktype = jp_i1 ) 164 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 157 165 CALL dom_uniq( zprw, 'F' ) 158 166 DO jj = 1, jpj … … 162 170 END DO 163 171 END DO 172 IF(nn_timing == 2) CALL timing_start('iom_rstput') 164 173 CALL iom_rstput( 0, 0, inum2, 'fmaskutil', zprt, ktype = jp_i1 ) 165 174 … … 218 227 CALL iom_rstput( 0, 0, inum4, 'gdepw_0', gdepw_0, ktype = jp_r4 ) 219 228 ENDIF 220 229 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 221 230 IF( ln_zps ) THEN ! z-coordinate - partial steps 222 231 ! 223 232 IF( nmsh <= 6 ) THEN ! ! 3D vertical scale factors 233 IF(nn_timing == 2) CALL timing_start('iom_rstput') 224 234 CALL iom_rstput( 0, 0, inum4, 'e3t_0', e3t_0 ) 225 235 CALL iom_rstput( 0, 0, inum4, 'e3u_0', e3u_0 ) 226 236 CALL iom_rstput( 0, 0, inum4, 'e3v_0', e3v_0 ) 227 237 CALL iom_rstput( 0, 0, inum4, 'e3w_0', e3w_0 ) 238 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 228 239 ELSE ! ! 2D masked bottom ocean scale factors 229 240 DO jj = 1,jpj … … 233 244 END DO 234 245 END DO 246 IF(nn_timing == 2) CALL timing_start('iom_rstput') 235 247 CALL iom_rstput( 0, 0, inum4, 'e3t_ps', e3tp ) 236 248 CALL iom_rstput( 0, 0, inum4, 'e3w_ps', e3wp ) 249 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 237 250 END IF 238 251 ! … … 248 261 END DO 249 262 CALL lbc_lnk( zdepu, 'U', 1. ) ; CALL lbc_lnk( zdepv, 'V', 1. ) 263 IF(nn_timing == 2) CALL timing_start('iom_rstput') 250 264 CALL iom_rstput( 0, 0, inum4, 'gdepu', zdepu, ktype = jp_r4 ) 251 265 CALL iom_rstput( 0, 0, inum4, 'gdepv', zdepv, ktype = jp_r4 ) 252 266 CALL iom_rstput( 0, 0, inum4, 'gdepw_0', gdepw_0, ktype = jp_r4 ) 267 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 253 268 ELSE ! ! 2D bottom depth 254 269 DO jj = 1,jpj … … 258 273 END DO 259 274 END DO 275 IF(nn_timing == 2) CALL timing_start('iom_rstput') 260 276 CALL iom_rstput( 0, 0, inum4, 'hdept', zprt, ktype = jp_r4 ) 261 277 CALL iom_rstput( 0, 0, inum4, 'hdepw', zprw, ktype = jp_r4 ) 278 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 262 279 ENDIF 263 280 ! 281 IF(nn_timing == 2) CALL timing_start('iom_rstput') 264 282 CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d ) ! ! reference z-coord. 265 283 CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 266 284 CALL iom_rstput( 0, 0, inum4, 'e3t_1d' , e3t_1d ) 267 285 CALL iom_rstput( 0, 0, inum4, 'e3w_1d' , e3w_1d ) 286 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 268 287 ENDIF 269 288 270 289 IF( ln_zco ) THEN 271 290 ! ! z-coordinate - full steps 291 IF(nn_timing == 2) CALL timing_start('iom_rstput') 272 292 CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d ) ! ! depth 273 293 CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 274 294 CALL iom_rstput( 0, 0, inum4, 'e3t_1d' , e3t_1d ) ! ! scale factors 275 295 CALL iom_rstput( 0, 0, inum4, 'e3w_1d' , e3w_1d ) 296 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 276 297 ENDIF 277 298 ! ! ============================ -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_flt.F90
r7179 r9321 395 395 ! Caution : extra-hallow 396 396 ! gcx and gcxb are defined as: DIMENSION(1-jpr2di:jpi+jpr2di,1-jpr2dj:jpj+jpr2dj) 397 IF(nn_timing == 2) CALL timing_start('iom_rstget') 397 398 CALL iom_get( numror, jpdom_autoglo, 'gcx' , gcx (1:jpi,1:jpj) ) 398 399 CALL iom_get( numror, jpdom_autoglo, 'gcxb', gcxb(1:jpi,1:jpj) ) 400 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 399 401 IF( neuler == 0 ) gcxb(:,:) = gcx (:,:) 400 402 ELSE … … 405 407 ! Caution : extra-hallow 406 408 ! gcx and gcxb are defined as: DIMENSION(1-jpr2di:jpi+jpr2di,1-jpr2dj:jpj+jpr2dj) 409 IF(nn_timing == 2) CALL timing_start('iom_rstput') 407 410 CALL iom_rstput( kt, nitrst, numrow, 'gcx' , gcx (1:jpi,1:jpj) ) 408 411 CALL iom_rstput( kt, nitrst, numrow, 'gcxb', gcxb(1:jpi,1:jpj) ) 412 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 409 413 ENDIF 410 414 ! -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r6487 r9321 1019 1019 ! 1020 1020 IF( TRIM(cdrw) == 'READ' ) THEN 1021 IF(nn_timing == 2) CALL timing_start('iom_rstget') 1021 1022 CALL iom_get( numror, jpdom_autoglo, 'ub2_b' , ub2_b (:,:) ) 1022 1023 CALL iom_get( numror, jpdom_autoglo, 'vb2_b' , vb2_b (:,:) ) … … 1036 1037 ENDIF 1037 1038 #endif 1039 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 1038 1040 ! 1039 1041 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN 1042 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1040 1043 CALL iom_rstput( kt, nitrst, numrow, 'ub2_b' , ub2_b (:,:) ) 1041 1044 CALL iom_rstput( kt, nitrst, numrow, 'vb2_b' , vb2_b (:,:) ) … … 1056 1059 ENDIF 1057 1060 #endif 1061 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 1058 1062 ENDIF 1059 1063 ! -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90
r6755 r9321 29 29 USE icb_oce ! define iceberg arrays 30 30 USE icbutl ! iceberg utility routines 31 USE timing 31 32 32 33 IMPLICIT NONE … … 71 72 TYPE(point) :: localpt ! NOT a pointer but an actual local variable 72 73 !!---------------------------------------------------------------------- 73 74 IF(nn_timing == 2) CALL timing_start('iom_rstget') 74 75 ! Find a restart file. Assume iceberg restarts in same directory as ocean restarts 75 76 ! and are called TRIM(cn_ocerst)//'_icebergs' … … 146 147 CALL iom_close( ncid ) 147 148 ! 149 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 148 150 IF( lwp .and. nn_verbose_level >= 0) WRITE(numout,'(a)') 'icebergs, read_restart_bergs: completed' 149 151 ! … … 169 171 TYPE(point) , POINTER :: pt 170 172 !!---------------------------------------------------------------------- 171 173 IF(nn_timing == 2) CALL timing_start('iom_rstput') 172 174 ! Assume we write iceberg restarts to same directory as ocean restarts. 173 175 cl_path = TRIM(cn_ocerst_outdir) … … 374 376 nret = NF90_CLOSE(ncid) 375 377 IF (nret /= NF90_NOERR) CALL ctl_stop('icebergs, write_restart: nf_close failed') 378 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 376 379 ! 377 380 END SUBROUTINE icb_rst_write -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90
r9163 r9321 44 44 USE ioipsl, ONLY : ju2ymds ! for calendar 45 45 USE crs ! Grid coarsening 46 USE timing 46 47 47 48 IMPLICIT NONE -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r8046 r9321 26 26 USE divcur ! hor. divergence and curl (div & cur routines) 27 27 USE sbc_oce ! for icesheet freshwater input variables 28 USE timing 28 29 29 30 IMPLICIT NONE … … 134 135 INTEGER, INTENT(in) :: kt ! ocean time-step 135 136 !!---------------------------------------------------------------------- 136 137 IF(nn_timing == 2) CALL timing_start('iom_rstput') 137 138 CALL iom_rstput( kt, nitrst, numrow, 'rdt' , rdt ) ! dynamics time step 138 139 CALL iom_rstput( kt, nitrst, numrow, 'rdttra1', rdttra(1) ) ! surface tracer time step … … 168 169 ENDIF 169 170 ENDIF 171 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 170 172 171 173 IF( kt == nitrst ) THEN … … 237 239 238 240 ! Check dynamics and tracer time-step consistency and force Euler restart if changed 241 IF(nn_timing == 2) CALL timing_start('iom_rstget') 239 242 IF( iom_varid( numror, 'rdt', ldstop = .FALSE. ) > 0 ) THEN 240 243 CALL iom_get( numror, 'rdt', zrdt ) … … 300 303 antarctica_icesheet_timelapsed = 0.0 301 304 ENDIF 302 305 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 303 306 IF( neuler == 0 ) THEN ! Euler restart (neuler=0) 304 307 tsb (:,:,:,:) = tsn (:,:,:,:) ! all before fields set to now values -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r6486 r9321 19 19 USE iom ! IOM library 20 20 USE lib_mpp ! MPP library 21 USE timing 21 22 22 23 IMPLICIT NONE … … 143 144 IF( ln_rstart .AND. iom_varid( numror, 'ssh_ibb', ldstop = .FALSE. ) > 0 ) THEN 144 145 IF(lwp) WRITE(numout,*) 'sbc_apr: ssh_ibb read in the restart file' 146 IF(nn_timing == 2) CALL timing_start('iom_rstget') 145 147 CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb ) ! before inv. barometer ssh 148 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 146 149 ! 147 150 ELSE !* no restart: set from nit000 values … … 156 159 IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 157 160 IF(lwp) WRITE(numout,*) '~~~~' 161 IF(nn_timing == 2) CALL timing_start('iom_rstput') 158 162 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib ) 163 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 159 164 ENDIF 160 165 ! -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r8427 r9321 257 257 258 258 ! 259 IF( nn_timing == 1) CALL timing_start('sbc_cpl_init')259 IF( nn_timing.gt.0 .and. nn_timing .le. 2) CALL timing_start('sbc_cpl_init') 260 260 ! 261 261 CALL wrk_alloc( jpi,jpj, zacs, zaos ) … … 991 991 CALL wrk_dealloc( jpi,jpj, zacs, zaos ) 992 992 ! 993 IF( nn_timing == 1) CALL timing_stop('sbc_cpl_init')993 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_stop('sbc_cpl_init') 994 994 ! 995 995 END SUBROUTINE sbc_cpl_init … … 1062 1062 1063 1063 ! 1064 IF( nn_timing == 1) CALL timing_start('sbc_cpl_rcv')1064 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_start('sbc_cpl_rcv') 1065 1065 ! 1066 1066 CALL wrk_alloc( jpi,jpj, ztx, zty, zmsk, zemp, zqns, zqsr, ztx2, zty2 ) … … 1453 1453 CALL wrk_dealloc( jpi,jpj, ztx, zty, zmsk, zemp, zqns, zqsr, ztx2, zty2 ) 1454 1454 ! 1455 IF( nn_timing == 1) CALL timing_stop('sbc_cpl_rcv')1455 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_stop('sbc_cpl_rcv') 1456 1456 ! 1457 1457 END SUBROUTINE sbc_cpl_rcv … … 1499 1499 !!---------------------------------------------------------------------- 1500 1500 ! 1501 IF( nn_timing == 1) CALL timing_start('sbc_cpl_ice_tau')1501 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_start('sbc_cpl_ice_tau') 1502 1502 ! 1503 1503 CALL wrk_alloc( jpi,jpj, ztx, zty ) … … 1664 1664 CALL wrk_dealloc( jpi,jpj, ztx, zty ) 1665 1665 ! 1666 IF( nn_timing == 1) CALL timing_stop('sbc_cpl_ice_tau')1666 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_stop('sbc_cpl_ice_tau') 1667 1667 ! 1668 1668 END SUBROUTINE sbc_cpl_ice_tau … … 1731 1731 !!---------------------------------------------------------------------- 1732 1732 ! 1733 IF( nn_timing == 1) CALL timing_start('sbc_cpl_ice_flx')1733 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_start('sbc_cpl_ice_flx') 1734 1734 ! 1735 1735 CALL wrk_alloc( jpi,jpj, zcptn, ztmp, zicefr, zmsk, zsnw ) … … 2116 2116 CALL wrk_dealloc( jpi,jpj,jpl, zqns_ice, zqsr_ice, zdqns_ice, zqevap_ice ) 2117 2117 ! 2118 IF( nn_timing == 1) CALL timing_stop('sbc_cpl_ice_flx')2118 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_stop('sbc_cpl_ice_flx') 2119 2119 ! 2120 2120 END SUBROUTINE sbc_cpl_ice_flx … … 2141 2141 !!---------------------------------------------------------------------- 2142 2142 ! 2143 IF( nn_timing == 1) CALL timing_start('sbc_cpl_snd')2143 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_start('sbc_cpl_snd') 2144 2144 ! 2145 2145 CALL wrk_alloc( jpi,jpj, zfr_l, ztmp1, ztmp2, zotx1, zoty1, zotz1, zitx1, zity1, zitz1 ) … … 2631 2631 CALL wrk_dealloc( jpi,jpj,jpl, ztmp3, ztmp4 ) 2632 2632 ! 2633 IF( nn_timing == 1) CALL timing_stop('sbc_cpl_snd')2633 IF( nn_timing.gt.0 .and. nn_timing .le. 2 ) CALL timing_stop('sbc_cpl_snd') 2634 2634 ! 2635 2635 END SUBROUTINE sbc_cpl_snd -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90
r8280 r9321 422 422 & iom_varid( numror, 'utau_b', ldstop = .FALSE. ) > 0 ) THEN 423 423 IF(lwp) WRITE(numout,*) ' nit000-1 surface forcing fields red in the restart file' 424 IF(nn_timing == 2) CALL timing_start('iom_rstget') 424 425 CALL iom_get( numror, jpdom_autoglo, 'utau_b', utau_b ) ! before i-stress (U-point) 425 426 CALL iom_get( numror, jpdom_autoglo, 'vtau_b', vtau_b ) ! before j-stress (V-point) … … 434 435 sfx_b (:,:) = sfx(:,:) 435 436 ENDIF 437 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 436 438 ELSE !* no restart: set from nit000 values 437 439 IF(lwp) WRITE(numout,*) ' nit000-1 surface forcing fields set to nit000' … … 450 452 & 'at it= ', kt,' date= ', ndastp 451 453 IF(lwp) WRITE(numout,*) '~~~~' 454 IF(nn_timing == 2) CALL timing_start('iom_rstput') 452 455 CALL iom_rstput( kt, nitrst, numrow, 'utau_b' , utau ) 453 456 CALL iom_rstput( kt, nitrst, numrow, 'vtau_b' , vtau ) … … 457 460 CALL iom_rstput( kt, nitrst, numrow, 'emp_b' , emp ) 458 461 CALL iom_rstput( kt, nitrst, numrow, 'sfx_b' , sfx ) 462 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 459 463 ENDIF 460 464 -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r8302 r9321 27 27 USE eosbn2 28 28 USE wrk_nemo ! Memory allocation 29 USE timing 29 30 30 31 IMPLICIT NONE … … 148 149 & iom_varid( numror, 'rnf_b', ldstop = .FALSE. ) > 0 ) THEN 149 150 IF(lwp) WRITE(numout,*) ' nit000-1 runoff forcing fields red in the restart file' 151 IF(nn_timing == 2) CALL timing_start('iom_rstget') 150 152 CALL iom_get( numror, jpdom_autoglo, 'rnf_b', rnf_b ) ! before runoff 151 153 CALL iom_get( numror, jpdom_autoglo, 'rnf_hc_b', rnf_tsc_b(:,:,jp_tem) ) ! before heat content of runoff 152 154 CALL iom_get( numror, jpdom_autoglo, 'rnf_sc_b', rnf_tsc_b(:,:,jp_sal) ) ! before salinity content of runoff 155 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 153 156 ELSE !* no restart: set from nit000 values 154 157 IF(lwp) WRITE(numout,*) ' nit000-1 runoff forcing fields set to nit000' … … 164 167 & 'at it= ', kt,' date= ', ndastp 165 168 IF(lwp) WRITE(numout,*) '~~~~' 169 IF(nn_timing == 2) CALL timing_start('iom_rstput') 166 170 CALL iom_rstput( kt, nitrst, numrow, 'rnf_b' , rnf ) 167 171 CALL iom_rstput( kt, nitrst, numrow, 'rnf_hc_b', rnf_tsc(:,:,jp_tem) ) 168 172 CALL iom_rstput( kt, nitrst, numrow, 'rnf_sc_b', rnf_tsc(:,:,jp_sal) ) 173 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 169 174 ENDIF 170 175 ! -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssm.F90
r6486 r9321 21 21 USE prtctl ! Print control 22 22 USE iom ! IOM library 23 USE timing 23 24 24 25 IMPLICIT NONE … … 156 157 IF(lwp) WRITE(numout,*) '~~~~~~~' 157 158 zf_sbc = REAL( nn_fsbc, wp ) 159 IF(nn_timing == 2) CALL timing_start('iom_rstput') 158 160 CALL iom_rstput( kt, nitrst, numrow, 'nn_fsbc', zf_sbc ) ! sbc frequency 159 161 CALL iom_rstput( kt, nitrst, numrow, 'ssu_m' , ssu_m ) ! sea surface mean fields … … 164 166 IF( lk_vvl ) CALL iom_rstput( kt, nitrst, numrow, 'e3t_m' , e3t_m ) 165 167 CALL iom_rstput( kt, nitrst, numrow, 'frq_m' , frq_m ) 168 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 166 169 ! 167 170 ENDIF … … 206 209 IF( ln_rstart .AND. iom_varid( numror, 'nn_fsbc', ldstop = .FALSE. ) > 0 ) THEN 207 210 l_ssm_mean = .TRUE. 211 IF(nn_timing == 2) CALL timing_start('iom_rstget') 208 212 CALL iom_get( numror , 'nn_fsbc', zf_sbc ) ! sbc frequency of previous run 209 213 CALL iom_get( numror, jpdom_autoglo, 'ssu_m' , ssu_m ) ! sea surface mean velocity (T-point) … … 219 223 frq_m(:,:) = 1._wp ! default definition 220 224 ENDIF 225 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 221 226 ! 222 227 IF( zf_sbc /= REAL( nn_fsbc, wp ) ) THEN ! nn_fsbc has changed between 2 runs -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/STO/stopar.F90
r6487 r9321 22 22 USE iom ! I/O module 23 23 USE lib_mpp 24 24 USE timing 25 25 26 26 IMPLICIT NONE … … 697 697 ! Get stochastic parameters from restart file: 698 698 ! 2D stochastic parameters 699 IF(nn_timing == 2) CALL timing_start('iom_rstget') 699 700 DO jsto = 1 , jpsto2d 700 701 WRITE(clsto2d(7:9),'(i3.3)') jsto … … 717 718 CALL kiss_seed( ziseed(1) , ziseed(2) , ziseed(3) , ziseed(4) ) 718 719 ENDIF 720 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 719 721 720 722 ! Close the restart file … … 760 762 CALL kiss_state( ziseed(1) , ziseed(2) , ziseed(3) , ziseed(4) ) 761 763 zrseed = TRANSFER( ziseed , zrseed) 764 IF(nn_timing == 2) CALL timing_start('iom_rstput') 762 765 DO jseed = 1 , 4 763 766 WRITE(clseed(5:5) ,'(i1.1)') jseed … … 775 778 CALL iom_rstput( kt, nitrst, numstow, clsto3d , sto3d(:,:,:,jsto) ) 776 779 END DO 780 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 777 781 ! close the restart file 778 782 CALL iom_close( numstow ) -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_cen2.F90
r7179 r9321 286 286 ! avmb, avtb will be read in zdfini in restart case as they are used in zdftke, kpp etc... 287 287 IF( lrst_oce .AND. cdtype == 'TRA' ) THEN 288 IF(nn_timing == 2) CALL timing_start('iom_rstput') 288 289 CALL iom_rstput( kt, nitrst, numrow, 'avmb', avmb ) 289 290 CALL iom_rstput( kt, nitrst, numrow, 'avtb', avtb ) 291 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 290 292 ENDIF 291 293 ! -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/TRA/traqsr.F90
r6498 r9321 368 368 & 'at it= ', kt,' date= ', ndastp 369 369 IF(lwp) WRITE(numout,*) '~~~~' 370 IF(nn_timing == 2) CALL timing_start('iom_rstput') 370 371 CALL iom_rstput( kt, nitrst, numrow, 'qsr_hc_b' , qsr_hc ) 371 372 CALL iom_rstput( kt, nitrst, numrow, 'fraqsr_1lev', fraqsr_1lev ) ! default definition in sbcssm 373 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 372 374 ! 373 375 ENDIF … … 607 609 ! initialisation of fraqsr_1lev used in sbcssm 608 610 IF( iom_varid( numror, 'fraqsr_1lev', ldstop = .FALSE. ) > 0 ) THEN 611 IF(nn_timing == 2) CALL timing_start('iom_rstget') 609 612 CALL iom_get( numror, jpdom_autoglo, 'fraqsr_1lev' , fraqsr_1lev ) 613 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 610 614 ELSE 611 615 fraqsr_1lev(:,:) = 1._wp ! default definition -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r8400 r9321 213 213 & 'at it= ', kt,' date= ', ndastp 214 214 IF(lwp) WRITE(numout,*) '~~~~' 215 IF(nn_timing == 2) CALL timing_start('iom_rstput') 215 216 CALL iom_rstput( kt, nitrst, numrow, 'sbc_hc_b', sbc_tsc(:,:,jp_tem) ) 216 217 CALL iom_rstput( kt, nitrst, numrow, 'sbc_sc_b', sbc_tsc(:,:,jp_sal) ) 218 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 217 219 ENDIF 218 220 ! … … 257 259 & 'at it= ', kt,' date= ', ndastp 258 260 IF(lwp) WRITE(numout,*) '~~~~' 261 IF(nn_timing == 2) CALL timing_start('iom_rstput') 259 262 CALL iom_rstput( kt, nitrst, numrow, 'fwf_isf_b', fwfisf(:,:) ) 260 263 CALL iom_rstput( kt, nitrst, numrow, 'isf_hc_b' , risf_tsc(:,:,jp_tem) ) 261 264 CALL iom_rstput( kt, nitrst, numrow, 'isf_sc_b' , risf_tsc(:,:,jp_sal) ) 265 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 262 266 ENDIF 263 267 END IF -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl_rst.F90
r6486 r9321 16 16 USE iom ! I/O module 17 17 USE restart ! only for lrst_oce 18 USE timing 18 19 19 20 IMPLICIT NONE … … 79 80 WRITE(numout,*) 80 81 ENDIF 81 82 IF(nn_timing == 2) CALL timing_start('iom_rstput') 82 83 IF( ln_trdmxl_instant ) THEN 83 84 !-- Temperature … … 115 116 CALL iom_rstput( kt, nitrst, nummxlw, 'smltrd_atf_sumb' , smltrd_atf_sumb ) 116 117 ENDIF 118 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 117 119 ! 118 120 IF( kt == nitrst ) THEN … … 158 160 159 161 CALL iom_open( TRIM(clpath)//TRIM(cn_trdrst_in), inum, kiolib = jlibalt ) 160 162 IF(nn_timing == 2) CALL timing_start('iom_rstget') 161 163 IF( ln_trdmxl_instant ) THEN 162 164 !-- Temperature … … 194 196 CALL iom_get( inum, jpdom_autoglo, 'smltrd_atf_sumb' , smltrd_atf_sumb) 195 197 ! 196 CALL iom_close( inum ) 197 ENDIF 198 ENDIF 199 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 200 CALL iom_close( inum ) 198 201 ! 199 202 END SUBROUTINE trd_mxl_rst_read -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90
r6487 r9321 1184 1184 ! 1185 1185 IF( MIN( id1, id2, id3, id4, id5, id6 ) > 0 ) THEN ! all required arrays exist 1186 IF(nn_timing == 2) CALL timing_start('iom_rstget') 1186 1187 CALL iom_get( numror, jpdom_autoglo, 'en' , en ) 1187 1188 CALL iom_get( numror, jpdom_autoglo, 'avt' , avt ) … … 1190 1191 CALL iom_get( numror, jpdom_autoglo, 'avmv' , avmv ) 1191 1192 CALL iom_get( numror, jpdom_autoglo, 'mxln' , mxln ) 1193 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 1192 1194 ELSE 1193 1195 IF(lwp) WRITE(numout,*) ' ===>>>> : previous run without gls scheme, en and mxln computed by iterative loop' … … 1209 1211 ! ! ------------------- 1210 1212 IF(lwp) WRITE(numout,*) '---- gls-rst ----' 1213 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1211 1214 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) 1212 1215 CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt_k ) … … 1215 1218 CALL iom_rstput( kt, nitrst, numrow, 'avmv' , avmv_k ) 1216 1219 CALL iom_rstput( kt, nitrst, numrow, 'mxln' , mxln ) 1220 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 1217 1221 ! 1218 1222 ENDIF -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90
r6498 r9321 937 937 CALL iom_get( numror, jpdom_autoglo, 'en', en ) 938 938 IF( MIN( id2, id3, id4, id5, id6 ) > 0 ) THEN ! all required arrays exist 939 IF(nn_timing == 2) CALL timing_start('iom_rstget') 939 940 CALL iom_get( numror, jpdom_autoglo, 'avt' , avt ) 940 941 CALL iom_get( numror, jpdom_autoglo, 'avm' , avm ) … … 942 943 CALL iom_get( numror, jpdom_autoglo, 'avmv' , avmv ) 943 944 CALL iom_get( numror, jpdom_autoglo, 'dissl', dissl ) 945 IF(nn_timing == 2) CALL timing_stop('iom_rstget') 944 946 ELSE ! one at least array is missing 945 947 CALL tke_avn ! compute avt, avm, avmu, avmv and dissl (approximation) … … 970 972 ! ! ------------------- 971 973 IF(lwp) WRITE(numout,*) '---- tke-rst ----' 974 IF(nn_timing == 2) CALL timing_start('iom_rstput') 972 975 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) 973 976 CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt_k ) … … 976 979 CALL iom_rstput( kt, nitrst, numrow, 'avmv' , avmv_k ) 977 980 CALL iom_rstput( kt, nitrst, numrow, 'dissl', dissl ) 981 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 978 982 ! 979 983 ENDIF -
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90
r8400 r9321 208 208 CALL Agrif_ParentGrid_To_ChildGrid() 209 209 IF( lk_diaobs ) CALL dia_obs_wri 210 IF( nn_timing == 1) CALL timing_finalize210 IF( nn_timing > 0 ) CALL timing_finalize 211 211 CALL Agrif_ChildGrid_To_ParentGrid() 212 212 ENDIF 213 213 #endif 214 IF( nn_timing == 1) CALL timing_finalize214 IF( nn_timing > 0 ) CALL timing_finalize 215 215 ! 216 216 CALL nemo_closefile … … 405 405 ENDIF 406 406 ! 407 IF( nn_timing == 1) CALL timing_init407 IF( nn_timing > 0 ) CALL timing_init 408 408 ! 409 409 ! ! General initialization
Note: See TracChangeset
for help on using the changeset viewer.