Changeset 9252
- Timestamp:
- 2018-01-17T12:42:41+01:00 (7 years ago)
- Location:
- branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90
r8904 r9252 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 == 3) CALL timing_start('rst_put') 112 114 CALL iom_rstput( kt, nitbkg_r, inum, 'rdastp' , zdate ) 113 115 CALL iom_rstput( kt, nitbkg_r, inum, 'un' , un ) … … 120 122 #endif 121 123 CALL iom_rstput( kt, nitbkg_r, inum, 'gcx' , gcx ) 124 IF(nn_timing == 3) CALL timing_stop('rst_put') 122 125 ! 123 126 CALL iom_close( inum ) … … 148 151 ! 149 152 ! ! Write the information 153 IF(nn_timing == 3) CALL timing_start('rst_put') 150 154 CALL iom_rstput( kt, nitdin_r, inum, 'rdastp' , zdate ) 151 155 CALL iom_rstput( kt, nitdin_r, inum, 'un' , un ) … … 163 167 ENDIF 164 168 #endif 169 IF(nn_timing == 3) CALL timing_stop('rst_put') 165 170 ! 166 171 CALL iom_close( inum ) -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90
r8904 r9252 304 304 IF(lwp) WRITE(numout,*) ' dia_hsb_rst at it= ', kt,' date= ', ndastp 305 305 IF(lwp) WRITE(numout,*) '~~~~~~~' 306 306 IF(nn_timing == 3) CALL timing_start('rst_put') 307 307 CALL iom_rstput( kt, nitrst, numrow, 'frc_v' , frc_v ) 308 308 CALL iom_rstput( kt, nitrst, numrow, 'frc_t' , frc_t ) … … 320 320 CALL iom_rstput( kt, nitrst, numrow, 'ssh_sc_loc_ini', ssh_sc_loc_ini ) 321 321 ENDIF 322 IF(nn_timing == 3) CALL timing_stop('rst_put') 322 323 ! 323 324 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90
r8904 r9252 359 359 ENDIF 360 360 ! calendar control 361 IF(nn_timing == 3) CALL timing_start('rst_put') 361 362 CALL iom_rstput( kt, nitrst, numrow, 'kt' , REAL( kt , wp) ) ! time-step 362 363 CALL iom_rstput( kt, nitrst, numrow, 'ndastp' , REAL( ndastp, wp) ) ! date 363 364 CALL iom_rstput( kt, nitrst, numrow, 'adatrj' , adatrj ) ! number of elapsed days since 364 365 ! ! the begining of the run [s] 366 IF(nn_timing == 3) CALL timing_stop('rst_put') 365 367 ENDIF 366 368 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90
r8904 r9252 908 908 ! ! --------- ! 909 909 ! ! all cases ! 910 ! ! --------- ! 910 ! ! --------- ! 911 IF(nn_timing == 3) CALL timing_start('rst_put') 911 912 CALL iom_rstput( kt, nitrst, numrow, 'fse3t_b', fse3t_b(:,:,:) ) 912 913 CALL iom_rstput( kt, nitrst, numrow, 'fse3t_n', fse3t_n(:,:,:) ) … … 922 923 CALL iom_rstput( kt, nitrst, numrow, 'hdiv_lf', hdiv_lf(:,:,:) ) 923 924 ENDIF 925 IF(nn_timing == 3) CALL timing_stop('rst_put') 924 926 925 927 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DOM/domwri.F90
r8904 r9252 126 126 127 127 ! ! masks (inum2) 128 IF(nn_timing == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 132 134 133 135 CALL dom_uniq( zprw, 'T' ) … … 138 140 END DO 139 141 END DO ! ! unique point mask 142 IF(nn_timing == 3) CALL timing_start('rst_put') 140 143 CALL iom_rstput( 0, 0, inum2, 'tmaskutil', zprt, ktype = jp_i1 ) 144 IF(nn_timing == 3) CALL timing_stop('rst_put') 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 == 3) CALL timing_start('rst_put') 148 153 CALL iom_rstput( 0, 0, inum2, 'umaskutil', zprt, ktype = jp_i1 ) 154 IF(nn_timing == 3) CALL timing_stop('rst_put') 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 == 3) CALL timing_start('rst_put') 156 163 CALL iom_rstput( 0, 0, inum2, 'vmaskutil', zprt, ktype = jp_i1 ) 164 IF(nn_timing == 3) CALL timing_stop('rst_put') 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 253 268 ELSE ! ! 2D bottom depth 254 269 DO jj = 1,jpj … … 258 273 END DO 259 274 END DO 275 IF(nn_timing == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 262 279 ENDIF 263 280 ! 281 IF(nn_timing == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 268 287 ENDIF 269 288 270 289 IF( ln_zco ) THEN 271 290 ! ! z-coordinate - full steps 291 IF(nn_timing == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 276 297 ENDIF 277 298 ! ! ============================ -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_flt.F90
r8904 r9252 405 405 ! Caution : extra-hallow 406 406 ! gcx and gcxb are defined as: DIMENSION(1-jpr2di:jpi+jpr2di,1-jpr2dj:jpj+jpr2dj) 407 IF(nn_timing == 3) CALL timing_start('rst_put') 407 408 CALL iom_rstput( kt, nitrst, numrow, 'gcx' , gcx (1:jpi,1:jpj) ) 408 409 CALL iom_rstput( kt, nitrst, numrow, 'gcxb', gcxb(1:jpi,1:jpj) ) 410 IF(nn_timing == 3) CALL timing_stop('rst_put') 409 411 ENDIF 410 412 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r8904 r9252 1038 1038 ! 1039 1039 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN 1040 IF(nn_timing == 3) CALL timing_start('rst_put') 1040 1041 CALL iom_rstput( kt, nitrst, numrow, 'ub2_b' , ub2_b (:,:) ) 1041 1042 CALL iom_rstput( kt, nitrst, numrow, 'vb2_b' , vb2_b (:,:) ) … … 1056 1057 ENDIF 1057 1058 #endif 1059 IF(nn_timing == 3) CALL timing_stop('rst_put') 1058 1060 ENDIF 1059 1061 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r8904 r9252 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 170 172 171 173 IF( kt == nitrst ) THEN -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r8904 r9252 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 == 3) CALL timing_start('rst_put') 145 147 CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb ) ! before inv. barometer ssh 148 IF(nn_timing == 3) CALL timing_stop('rst_put') 146 149 ! 147 150 ELSE !* no restart: set from nit000 values -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90
r8904 r9252 443 443 & 'at it= ', kt,' date= ', ndastp 444 444 IF(lwp) WRITE(numout,*) '~~~~' 445 IF(nn_timing == 3) CALL timing_start('rst_put') 445 446 CALL iom_rstput( kt, nitrst, numrow, 'utau_b' , utau ) 446 447 CALL iom_rstput( kt, nitrst, numrow, 'vtau_b' , vtau ) … … 450 451 CALL iom_rstput( kt, nitrst, numrow, 'emp_b' , emp ) 451 452 CALL iom_rstput( kt, nitrst, numrow, 'sfx_b' , sfx ) 453 IF(nn_timing == 3) CALL timing_stop('rst_put') 452 454 ENDIF 453 455 -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r8904 r9252 27 27 USE eosbn2 28 28 USE wrk_nemo ! Memory allocation 29 USE timing 29 30 30 31 IMPLICIT NONE … … 171 172 & 'at it= ', kt,' date= ', ndastp 172 173 IF(lwp) WRITE(numout,*) '~~~~' 174 IF(nn_timing == 3) CALL timing_start('rst_put') 173 175 CALL iom_rstput( kt, nitrst, numrow, 'rnf_b' , rnf ) 174 176 CALL iom_rstput( kt, nitrst, numrow, 'rnf_hc_b', rnf_tsc(:,:,jp_tem) ) 175 177 CALL iom_rstput( kt, nitrst, numrow, 'rnf_sc_b', rnf_tsc(:,:,jp_sal) ) 178 IF(nn_timing == 3) CALL timing_stop('rst_put') 176 179 ENDIF 177 180 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssm.F90
r8904 r9252 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 166 169 ! 167 170 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/STO/stopar.F90
r8904 r9252 22 22 USE iom ! I/O module 23 23 USE lib_mpp 24 24 USE timing 25 25 26 26 IMPLICIT NONE … … 760 760 CALL kiss_state( ziseed(1) , ziseed(2) , ziseed(3) , ziseed(4) ) 761 761 zrseed = TRANSFER( ziseed , zrseed) 762 IF(nn_timing == 3) CALL timing_start('rst_put') 762 763 DO jseed = 1 , 4 763 764 WRITE(clseed(5:5) ,'(i1.1)') jseed … … 775 776 CALL iom_rstput( kt, nitrst, numstow, clsto3d , sto3d(:,:,:,jsto) ) 776 777 END DO 778 IF(nn_timing == 3) CALL timing_stop('rst_put') 777 779 ! close the restart file 778 780 CALL iom_close( numstow ) -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_cen2.F90
r8904 r9252 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 == 3) CALL timing_start('rst_put') 288 289 CALL iom_rstput( kt, nitrst, numrow, 'avmb', avmb ) 289 290 CALL iom_rstput( kt, nitrst, numrow, 'avtb', avtb ) 291 IF(nn_timing == 3) CALL timing_stop('rst_put') 290 292 ENDIF 291 293 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRA/traqsr.F90
r8904 r9252 368 368 & 'at it= ', kt,' date= ', ndastp 369 369 IF(lwp) WRITE(numout,*) '~~~~' 370 IF(nn_timing == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 372 374 ! 373 375 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r8904 r9252 209 209 & 'at it= ', kt,' date= ', ndastp 210 210 IF(lwp) WRITE(numout,*) '~~~~' 211 IF(nn_timing == 3) CALL timing_start('rst_put') 211 212 CALL iom_rstput( kt, nitrst, numrow, 'sbc_hc_b', sbc_tsc(:,:,jp_tem) ) 212 213 CALL iom_rstput( kt, nitrst, numrow, 'sbc_sc_b', sbc_tsc(:,:,jp_sal) ) 214 IF(nn_timing == 3) CALL timing_stop('rst_put') 213 215 ENDIF 214 216 ! … … 253 255 & 'at it= ', kt,' date= ', ndastp 254 256 IF(lwp) WRITE(numout,*) '~~~~' 257 IF(nn_timing == 3) CALL timing_start('rst_put') 255 258 CALL iom_rstput( kt, nitrst, numrow, 'fwf_isf_b', fwfisf(:,:) ) 256 259 CALL iom_rstput( kt, nitrst, numrow, 'isf_hc_b' , risf_tsc(:,:,jp_tem) ) 257 260 CALL iom_rstput( kt, nitrst, numrow, 'isf_sc_b' , risf_tsc(:,:,jp_sal) ) 261 IF(nn_timing == 3) CALL timing_stop('rst_put') 258 262 ENDIF 259 263 END IF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl_rst.F90
r8904 r9252 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 == 3) CALL timing_start('rst_put') 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 == 3) CALL timing_stop('rst_put') 117 119 ! 118 120 IF( kt == nitrst ) THEN -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90
r8904 r9252 1209 1209 ! ! ------------------- 1210 1210 IF(lwp) WRITE(numout,*) '---- gls-rst ----' 1211 IF(nn_timing == 3) CALL timing_start('rst_put') 1211 1212 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) 1212 1213 CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt_k ) … … 1215 1216 CALL iom_rstput( kt, nitrst, numrow, 'avmv' , avmv_k ) 1216 1217 CALL iom_rstput( kt, nitrst, numrow, 'mxln' , mxln ) 1218 IF(nn_timing == 3) CALL timing_stop('rst_put') 1217 1219 ! 1218 1220 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90
r8904 r9252 970 970 ! ! ------------------- 971 971 IF(lwp) WRITE(numout,*) '---- tke-rst ----' 972 IF(nn_timing == 3) CALL timing_start('rst_put') 972 973 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) 973 974 CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt_k ) … … 976 977 CALL iom_rstput( kt, nitrst, numrow, 'avmv' , avmv_k ) 977 978 CALL iom_rstput( kt, nitrst, numrow, 'dissl', dissl ) 979 IF(nn_timing == 3) CALL timing_stop('rst_put') 978 980 ! 979 981 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.