Changeset 8904
- Timestamp:
- 2017-12-05T17:01:17+01:00 (7 years ago)
- Location:
- branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90
r8895 r8904 50 50 USE ice 51 51 #endif 52 USE timing53 52 IMPLICIT NONE 54 53 PRIVATE … … 111 110 ! 112 111 ! ! Write the information 113 IF(nn_timing == 2) CALL timing_start('rst_put')114 112 CALL iom_rstput( kt, nitbkg_r, inum, 'rdastp' , zdate ) 115 113 CALL iom_rstput( kt, nitbkg_r, inum, 'un' , un ) … … 122 120 #endif 123 121 CALL iom_rstput( kt, nitbkg_r, inum, 'gcx' , gcx ) 124 IF(nn_timing == 2) CALL timing_stop('rst_put')125 122 ! 126 123 CALL iom_close( inum ) … … 151 148 ! 152 149 ! ! Write the information 153 IF(nn_timing == 2) CALL timing_start('rst_put')154 150 CALL iom_rstput( kt, nitdin_r, inum, 'rdastp' , zdate ) 155 151 CALL iom_rstput( kt, nitdin_r, inum, 'un' , un ) … … 167 163 ENDIF 168 164 #endif 169 IF(nn_timing == 2) CALL timing_stop('rst_put')170 165 ! 171 166 CALL iom_close( inum ) -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/CRS/crsdomwri.F90
r8895 r8904 122 122 !======================================================== 123 123 ! ! masks (inum2) 124 IF(nn_timing == 2) CALL timing_start('rst_put')125 124 CALL iom_rstput( 0, 0, inum2, 'tmask', tmask_crs, ktype = jp_i1 ) ! ! land-sea mask 126 125 CALL iom_rstput( 0, 0, inum2, 'umask', umask_crs, ktype = jp_i1 ) 127 126 CALL iom_rstput( 0, 0, inum2, 'vmask', vmask_crs, ktype = jp_i1 ) 128 127 CALL iom_rstput( 0, 0, inum2, 'fmask', fmask_crs, ktype = jp_i1 ) 129 IF(nn_timing == 2) CALL timing_stop('rst_put')130 128 131 129 … … 158 156 fpol_crs(jpiglo_crs/2+1:jpiglo_crs,:)=0._wp 159 157 ENDIF 160 IF(nn_timing == 2) CALL timing_start('rst_put')158 161 159 CALL iom_rstput( 0, 0, inum2, 'tmaskutil', tmask_i_crs, ktype = jp_i1 ) 162 IF(nn_timing == 2) CALL timing_stop('rst_put')160 ! ! unique point mask 163 161 CALL dom_uniq_crs( zprw, 'U' ) 164 162 zprt = umask_crs(:,:,1) * zprw 165 IF(nn_timing == 2) CALL timing_start('rst_put')166 163 CALL iom_rstput( 0, 0, inum2, 'umaskutil', zprt, ktype = jp_i1 ) 167 IF(nn_timing == 2) CALL timing_stop('rst_put')168 164 CALL dom_uniq_crs( zprw, 'V' ) 169 165 zprt = vmask_crs(:,:,1) * zprw 170 IF(nn_timing == 2) CALL timing_start('rst_put')171 166 CALL iom_rstput( 0, 0, inum2, 'vmaskutil', zprt, ktype = jp_i1 ) 172 IF(nn_timing == 2) CALL timing_stop('rst_put')173 167 CALL dom_uniq_crs( zprw, 'F' ) 174 168 zprt = fmask_crs(:,:,1) * zprw 175 IF(nn_timing == 2) CALL timing_start('rst_put')176 169 CALL iom_rstput( 0, 0, inum2, 'fmaskutil', zprt, ktype = jp_i1 ) 177 170 !======================================================== … … 198 191 199 192 CALL iom_rstput( 0, 0, inum3, 'ff', ff_crs, ktype = jp_r8 ) ! ! coriolis factor 200 IF(nn_timing == 2) CALL timing_stop('rst_put') 193 201 194 !======================================================== 202 195 ! ! vertical mesh (inum4) 203 196 ! ! note that mbkt is set to 1 over land ==> use surface tmask_crs 204 197 zprt(:,:) = tmask_crs(:,:,1) * REAL( mbkt_crs(:,:) , wp ) 205 IF(nn_timing == 2) CALL timing_start('rst_put')206 198 CALL iom_rstput( 0, 0, inum4, 'mbathy', zprt, ktype = jp_i2 ) ! ! nb of ocean T-points 207 IF(nn_timing == 2) CALL timing_stop('rst_put')208 199 209 200 IF( ln_zps ) THEN ! z-coordinate - partial steps … … 211 202 212 203 IF ( nn_msh_crs <= 6 ) THEN 213 IF(nn_timing == 2) CALL timing_start('rst_put')214 204 CALL iom_rstput( 0, 0, inum4, 'e3t', e3t_crs ) 215 205 CALL iom_rstput( 0, 0, inum4, 'e3w', e3w_crs ) 216 206 CALL iom_rstput( 0, 0, inum4, 'e3u', e3u_crs ) 217 207 CALL iom_rstput( 0, 0, inum4, 'e3v', e3v_crs ) 218 IF(nn_timing == 2) CALL timing_stop('rst_put')219 208 ELSE 220 209 DO jj = 1,jpj_crs … … 227 216 CALL crs_lbc_lnk( ze3tp,'T', 1.0 ) 228 217 CALL crs_lbc_lnk( ze3wp,'W', 1.0 ) 229 IF(nn_timing == 2) CALL timing_start('rst_put')218 230 219 CALL iom_rstput( 0, 0, inum4, 'e3t_ps', ze3tp ) 231 220 CALL iom_rstput( 0, 0, inum4, 'e3w_ps', ze3wp ) 232 IF(nn_timing == 2) CALL timing_stop('rst_put')233 221 ENDIF 234 222 … … 245 233 246 234 CALL crs_lbc_lnk( zdepu,'U', 1. ) ; CALL crs_lbc_lnk( zdepv,'V', 1. ) 247 IF(nn_timing == 2) CALL timing_start('rst_put')248 235 CALL iom_rstput( 0, 0, inum4, 'gdepu', zdepu, ktype = jp_r4 ) 249 236 CALL iom_rstput( 0, 0, inum4, 'gdepv', zdepv, ktype = jp_r4 ) 250 237 CALL iom_rstput( 0, 0, inum4, 'gdepw', gdepw_crs, ktype = jp_r4 ) 251 IF(nn_timing == 2) CALL timing_stop('rst_put')252 238 ELSE 253 239 DO jj = 1,jpj_crs … … 257 243 END DO 258 244 END DO 259 IF(nn_timing == 2) CALL timing_start('rst_put')260 245 CALL iom_rstput( 0, 0, inum4, 'hdept', zprt, ktype = jp_r4 ) 261 246 CALL iom_rstput( 0, 0, inum4, 'hdepw', zprw, ktype = jp_r4 ) 262 IF(nn_timing == 2) CALL timing_stop('rst_put')263 247 ENDIF 264 IF(nn_timing == 2) CALL timing_start('rst_put') 248 265 249 CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d ) ! ! reference z-coord. 266 250 CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) … … 285 269 CALL iom_rstput( 0, 0, inum4, 'crs_surfv_wgt', crs_surfv_wgt ) 286 270 CALL iom_rstput( 0, 0, inum4, 'crs_volt_wgt' , crs_volt_wgt ) 287 IF(nn_timing == 2) CALL timing_stop('rst_put') 271 288 272 ENDIF 289 273 290 274 IF( ln_zco ) THEN 291 275 ! ! z-coordinate - full steps 292 IF(nn_timing == 2) CALL timing_start('rst_put')293 276 CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d ) ! ! depth 294 277 CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 295 278 CALL iom_rstput( 0, 0, inum4, 'e3t_1d' , e3t_1d ) ! ! scale factors 296 279 CALL iom_rstput( 0, 0, inum4, 'e3w_1d' , e3w_1d ) 297 IF(nn_timing == 2) CALL timing_stop('rst_put')298 280 ENDIF 299 281 ! ! ============================ -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90
r8895 r8904 304 304 IF(lwp) WRITE(numout,*) ' dia_hsb_rst at it= ', kt,' date= ', ndastp 305 305 IF(lwp) WRITE(numout,*) '~~~~~~~' 306 IF(nn_timing == 2) CALL timing_start('rst_put') 306 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 == 2) CALL timing_stop('rst_put')323 322 ! 324 323 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90
r8895 r8904 359 359 ENDIF 360 360 ! calendar control 361 IF(nn_timing == 2) CALL timing_start('rst_put')362 361 CALL iom_rstput( kt, nitrst, numrow, 'kt' , REAL( kt , wp) ) ! time-step 363 362 CALL iom_rstput( kt, nitrst, numrow, 'ndastp' , REAL( ndastp, wp) ) ! date 364 363 CALL iom_rstput( kt, nitrst, numrow, 'adatrj' , adatrj ) ! number of elapsed days since 365 364 ! ! the begining of the run [s] 366 IF(nn_timing == 2) CALL timing_stop('rst_put')367 365 ENDIF 368 366 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90
r8895 r8904 909 909 ! ! all cases ! 910 910 ! ! --------- ! 911 IF(nn_timing == 2) CALL timing_start('rst_put')912 911 CALL iom_rstput( kt, nitrst, numrow, 'fse3t_b', fse3t_b(:,:,:) ) 913 912 CALL iom_rstput( kt, nitrst, numrow, 'fse3t_n', fse3t_n(:,:,:) ) … … 923 922 CALL iom_rstput( kt, nitrst, numrow, 'hdiv_lf', hdiv_lf(:,:,:) ) 924 923 ENDIF 925 IF(nn_timing == 2) CALL timing_stop('rst_put') 924 926 925 ENDIF 927 926 IF( nn_timing == 1 ) CALL timing_stop('dom_vvl_rst') -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DOM/domwri.F90
r8895 r8904 126 126 127 127 ! ! masks (inum2) 128 IF(nn_timing == 2) CALL timing_start('rst_put')129 128 CALL iom_rstput( 0, 0, inum2, 'tmask', tmask, ktype = jp_i1 ) ! ! land-sea mask 130 129 CALL iom_rstput( 0, 0, inum2, 'umask', umask, ktype = jp_i1 ) 131 130 CALL iom_rstput( 0, 0, inum2, 'vmask', vmask, ktype = jp_i1 ) 132 131 CALL iom_rstput( 0, 0, inum2, 'fmask', fmask, ktype = jp_i1 ) 133 IF(nn_timing == 2) CALL timing_stop('rst_put')134 132 135 133 CALL dom_uniq( zprw, 'T' ) … … 140 138 END DO 141 139 END DO ! ! unique point mask 142 IF(nn_timing == 2) CALL timing_start('rst_put')143 140 CALL iom_rstput( 0, 0, inum2, 'tmaskutil', zprt, ktype = jp_i1 ) 144 IF(nn_timing == 2) CALL timing_stop('rst_put')145 141 CALL dom_uniq( zprw, 'U' ) 146 142 DO jj = 1, jpj … … 150 146 END DO 151 147 END DO 152 IF(nn_timing == 2) CALL timing_start('rst_put')153 148 CALL iom_rstput( 0, 0, inum2, 'umaskutil', zprt, ktype = jp_i1 ) 154 IF(nn_timing == 2) CALL timing_stop('rst_put')155 149 CALL dom_uniq( zprw, 'V' ) 156 150 DO jj = 1, jpj … … 160 154 END DO 161 155 END DO 162 IF(nn_timing == 2) CALL timing_start('rst_put')163 156 CALL iom_rstput( 0, 0, inum2, 'vmaskutil', zprt, ktype = jp_i1 ) 164 IF(nn_timing == 2) CALL timing_stop('rst_put')165 157 CALL dom_uniq( zprw, 'F' ) 166 158 DO jj = 1, jpj … … 170 162 END DO 171 163 END DO 172 IF(nn_timing == 2) CALL timing_start('rst_put')173 164 CALL iom_rstput( 0, 0, inum2, 'fmaskutil', zprt, ktype = jp_i1 ) 174 165 … … 195 186 196 187 CALL iom_rstput( 0, 0, inum3, 'ff', ff, ktype = jp_r8 ) ! ! coriolis factor 197 IF(nn_timing == 2) CALL timing_stop('rst_put')188 198 189 ! note that mbkt is set to 1 over land ==> use surface tmask 199 190 zprt(:,:) = ssmask(:,:) * REAL( mbkt(:,:) , wp ) 200 IF(nn_timing == 2) CALL timing_start('rst_put')201 191 CALL iom_rstput( 0, 0, inum4, 'mbathy', zprt, ktype = jp_i2 ) ! ! nb of ocean T-points 202 IF(nn_timing == 2) CALL timing_stop('rst_put')203 192 zprt(:,:) = ssmask(:,:) * REAL( mikt(:,:) , wp ) 204 IF(nn_timing == 2) CALL timing_start('rst_put')205 193 CALL iom_rstput( 0, 0, inum4, 'misf', zprt, ktype = jp_i2 ) ! ! nb of ocean T-points 206 IF(nn_timing == 2) CALL timing_stop('rst_put')207 194 zprt(:,:) = ssmask(:,:) * REAL( risfdep(:,:) , wp ) 208 IF(nn_timing == 2) CALL timing_start('rst_put')209 195 CALL iom_rstput( 0, 0, inum4, 'isfdraft', zprt, ktype = jp_r4 ) ! ! nb of ocean T-points 210 IF(nn_timing == 2) CALL timing_stop('rst_put')211 196 212 197 IF( ln_sco ) THEN ! s-coordinate 213 IF(nn_timing == 2) CALL timing_start('rst_put')214 198 CALL iom_rstput( 0, 0, inum4, 'hbatt', hbatt ) 215 199 CALL iom_rstput( 0, 0, inum4, 'hbatu', hbatu ) … … 233 217 CALL iom_rstput( 0, 0, inum4, 'gdept_0', gdept_0, ktype = jp_r4 ) 234 218 CALL iom_rstput( 0, 0, inum4, 'gdepw_0', gdepw_0, ktype = jp_r4 ) 235 IF(nn_timing == 2) CALL timing_stop('rst_put')236 219 ENDIF 237 220 … … 239 222 ! 240 223 IF( nmsh <= 6 ) THEN ! ! 3D vertical scale factors 241 IF(nn_timing == 2) CALL timing_start('rst_put')242 224 CALL iom_rstput( 0, 0, inum4, 'e3t_0', e3t_0 ) 243 225 CALL iom_rstput( 0, 0, inum4, 'e3u_0', e3u_0 ) 244 226 CALL iom_rstput( 0, 0, inum4, 'e3v_0', e3v_0 ) 245 227 CALL iom_rstput( 0, 0, inum4, 'e3w_0', e3w_0 ) 246 IF(nn_timing == 2) CALL timing_stop('rst_put')247 228 ELSE ! ! 2D masked bottom ocean scale factors 248 229 DO jj = 1,jpj … … 252 233 END DO 253 234 END DO 254 IF(nn_timing == 2) CALL timing_start('rst_put')255 235 CALL iom_rstput( 0, 0, inum4, 'e3t_ps', e3tp ) 256 236 CALL iom_rstput( 0, 0, inum4, 'e3w_ps', e3wp ) 257 IF(nn_timing == 2) CALL timing_stop('rst_put')258 237 END IF 259 238 ! 260 239 IF( nmsh <= 3 ) THEN ! ! 3D depth 261 IF(nn_timing == 2) CALL timing_start('rst_put')262 240 CALL iom_rstput( 0, 0, inum4, 'gdept_0', gdept_0, ktype = jp_r4 ) 263 IF(nn_timing == 2) CALL timing_stop('rst_put')264 241 DO jk = 1,jpk 265 242 DO jj = 1, jpjm1 … … 271 248 END DO 272 249 CALL lbc_lnk( zdepu, 'U', 1. ) ; CALL lbc_lnk( zdepv, 'V', 1. ) 273 IF(nn_timing == 2) CALL timing_start('rst_put')274 250 CALL iom_rstput( 0, 0, inum4, 'gdepu', zdepu, ktype = jp_r4 ) 275 251 CALL iom_rstput( 0, 0, inum4, 'gdepv', zdepv, ktype = jp_r4 ) 276 252 CALL iom_rstput( 0, 0, inum4, 'gdepw_0', gdepw_0, ktype = jp_r4 ) 277 IF(nn_timing == 2) CALL timing_stop('rst_put')278 253 ELSE ! ! 2D bottom depth 279 254 DO jj = 1,jpj … … 283 258 END DO 284 259 END DO 285 IF(nn_timing == 2) CALL timing_start('rst_put')286 260 CALL iom_rstput( 0, 0, inum4, 'hdept', zprt, ktype = jp_r4 ) 287 261 CALL iom_rstput( 0, 0, inum4, 'hdepw', zprw, ktype = jp_r4 ) 288 IF(nn_timing == 2) CALL timing_stop('rst_put')289 262 ENDIF 290 263 ! 291 IF(nn_timing == 2) CALL timing_start('rst_put')292 264 CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d ) ! ! reference z-coord. 293 265 CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 294 266 CALL iom_rstput( 0, 0, inum4, 'e3t_1d' , e3t_1d ) 295 267 CALL iom_rstput( 0, 0, inum4, 'e3w_1d' , e3w_1d ) 296 IF(nn_timing == 2) CALL timing_stop('rst_put')297 268 ENDIF 298 269 299 270 IF( ln_zco ) THEN 300 271 ! ! z-coordinate - full steps 301 IF(nn_timing == 2) CALL timing_start('rst_put')302 272 CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d ) ! ! depth 303 273 CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 304 274 CALL iom_rstput( 0, 0, inum4, 'e3t_1d' , e3t_1d ) ! ! scale factors 305 275 CALL iom_rstput( 0, 0, inum4, 'e3w_1d' , e3w_1d ) 306 IF(nn_timing == 2) CALL timing_stop('rst_put')307 276 ENDIF 308 277 ! ! ============================ -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_flt.F90
r8895 r8904 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 == 2) CALL timing_start('rst_put')408 407 CALL iom_rstput( kt, nitrst, numrow, 'gcx' , gcx (1:jpi,1:jpj) ) 409 408 CALL iom_rstput( kt, nitrst, numrow, 'gcxb', gcxb(1:jpi,1:jpj) ) 410 IF(nn_timing == 2) CALL timing_stop('rst_put')411 409 ENDIF 412 410 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r8895 r8904 1038 1038 ! 1039 1039 ELSEIF( TRIM(cdrw) == 'WRITE' ) THEN 1040 IF(nn_timing == 2) CALL timing_start('rst_put')1041 1040 CALL iom_rstput( kt, nitrst, numrow, 'ub2_b' , ub2_b (:,:) ) 1042 1041 CALL iom_rstput( kt, nitrst, numrow, 'vb2_b' , vb2_b (:,:) ) … … 1057 1056 ENDIF 1058 1057 #endif 1059 IF(nn_timing == 2) CALL timing_stop('rst_put')1060 1058 ENDIF 1061 1059 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90
r7750 r8904 44 44 USE ioipsl, ONLY : ju2ymds ! for calendar 45 45 USE crs ! Grid coarsening 46 USE timing 46 47 47 48 IMPLICIT NONE … … 595 596 & 'with 1 or more spatial dimensions: '//cldmspc//' were found.' , & 596 597 & 'Use ncwa -a to suppress the unnecessary dimensions' ) 598 IF(nn_timing == 2) CALL timing_start('rst_get') 597 599 SELECT CASE (iom_file(kiomid)%iolib) 598 600 CASE (jpioipsl ) ; CALL iom_ioipsl_get( kiomid, idvar, pvar, itime ) … … 602 604 CALL ctl_stop( 'iom_g0d: accepted IO library are only jpioipsl, jpnf90 and jprstdimg' ) 603 605 END SELECT 606 IF(nn_timing == 2) CALL timing_stop('rst_get') 604 607 ENDIF 605 608 ENDIF … … 911 914 ENDIF 912 915 916 IF(nn_timing == 2) CALL timing_start('iom_get') 913 917 SELECT CASE (iom_file(kiomid)%iolib) 914 918 CASE (jpioipsl ) ; CALL iom_ioipsl_get( kiomid, idvar, inbdim, istart, icnt, ix1, ix2, iy1, iy2, & … … 921 925 CALL ctl_stop( TRIM(clinfo)//' accepted IO library are only jpioipsl, jpnf90 and jprstdimg' ) 922 926 END SELECT 927 IF(nn_timing == 2) CALL timing_stop('iom_get') 923 928 924 929 IF( istop == nstop ) THEN ! no additional errors until this point... … … 1066 1071 IF( iom_file(kiomid)%nfid > 0 ) THEN 1067 1072 ivid = iom_varid( kiomid, cdvar, ldstop = .FALSE. ) 1073 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1068 1074 SELECT CASE (iom_file(kiomid)%iolib) 1069 1075 CASE (jpioipsl ) ; CALL iom_ioipsl_rstput( kt, kwrite, kiomid, cdvar, ivid, ktype, pv_r0d = pvar ) … … 1073 1079 CALL ctl_stop( 'iom_rp0d: accepted IO library are only jpioipsl, jpnf90 and jprstdimg' ) 1074 1080 END SELECT 1081 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 1075 1082 ENDIF 1076 1083 ENDIF … … 1088 1095 IF( iom_file(kiomid)%nfid > 0 ) THEN 1089 1096 ivid = iom_varid( kiomid, cdvar, ldstop = .FALSE. ) 1097 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1090 1098 SELECT CASE (iom_file(kiomid)%iolib) 1091 1099 CASE (jpioipsl ) ; CALL iom_ioipsl_rstput( kt, kwrite, kiomid, cdvar, ivid, ktype, pv_r1d = pvar ) … … 1095 1103 CALL ctl_stop( 'iom_rp1d: accepted IO library are only jpioipsl, jpnf90 and jprstdimg' ) 1096 1104 END SELECT 1105 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 1097 1106 ENDIF 1098 1107 ENDIF … … 1110 1119 IF( iom_file(kiomid)%nfid > 0 ) THEN 1111 1120 ivid = iom_varid( kiomid, cdvar, ldstop = .FALSE. ) 1121 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1112 1122 SELECT CASE (iom_file(kiomid)%iolib) 1113 1123 CASE (jpioipsl ) ; CALL iom_ioipsl_rstput( kt, kwrite, kiomid, cdvar, ivid, ktype, pv_r2d = pvar ) … … 1117 1127 CALL ctl_stop( 'iom_rp2d: accepted IO library are only jpioipsl, jpnf90 and jprstdimg' ) 1118 1128 END SELECT 1129 IF(nn_timing == 2) CALL timing_stop('iom_rstput') 1119 1130 ENDIF 1120 1131 ENDIF … … 1132 1143 IF( iom_file(kiomid)%nfid > 0 ) THEN 1133 1144 ivid = iom_varid( kiomid, cdvar, ldstop = .FALSE. ) 1145 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1134 1146 SELECT CASE (iom_file(kiomid)%iolib) 1135 1147 CASE (jpioipsl ) ; CALL iom_ioipsl_rstput( kt, kwrite, kiomid, cdvar, ivid, ktype, pv_r3d = pvar ) … … 1139 1151 CALL ctl_stop( 'iom_rp3d: accepted IO library are only jpioipsl and jprstdimg' ) 1140 1152 END SELECT 1153 IF(nn_timing == 2) CALL timing_start('iom_rstput') 1141 1154 ENDIF 1142 1155 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r8895 r8904 26 26 USE divcur ! hor. divergence and curl (div & cur routines) 27 27 USE sbc_oce ! for icesheet freshwater input variables 28 USE timing29 28 30 29 IMPLICIT NONE … … 135 134 INTEGER, INTENT(in) :: kt ! ocean time-step 136 135 !!---------------------------------------------------------------------- 137 IF(nn_timing == 2) CALL timing_start('rst_put') 136 138 137 CALL iom_rstput( kt, nitrst, numrow, 'rdt' , rdt ) ! dynamics time step 139 138 CALL iom_rstput( kt, nitrst, numrow, 'rdttra1', rdttra(1) ) ! surface tracer time step … … 169 168 ENDIF 170 169 ENDIF 171 IF(nn_timing == 2) CALL timing_stop('rst_put') 170 172 171 IF( kt == nitrst ) THEN 173 172 CALL iom_close( numrow ) ! close the restart file (only at last time step) -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r8895 r8904 19 19 USE iom ! IOM library 20 20 USE lib_mpp ! MPP library 21 USE timing22 21 23 22 IMPLICIT NONE … … 157 156 IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 158 157 IF(lwp) WRITE(numout,*) '~~~~' 159 IF(nn_timing == 2) CALL timing_start('rst_put')160 158 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib ) 161 IF(nn_timing == 2) CALL timing_stop('rst_put')162 159 ENDIF 163 160 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90
r8895 r8904 443 443 & 'at it= ', kt,' date= ', ndastp 444 444 IF(lwp) WRITE(numout,*) '~~~~' 445 IF(nn_timing == 2) CALL timing_start('rst_put')446 445 CALL iom_rstput( kt, nitrst, numrow, 'utau_b' , utau ) 447 446 CALL iom_rstput( kt, nitrst, numrow, 'vtau_b' , vtau ) … … 451 450 CALL iom_rstput( kt, nitrst, numrow, 'emp_b' , emp ) 452 451 CALL iom_rstput( kt, nitrst, numrow, 'sfx_b' , sfx ) 453 IF(nn_timing == 2) CALL timing_stop('rst_put')454 452 ENDIF 455 453 -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r8895 r8904 27 27 USE eosbn2 28 28 USE wrk_nemo ! Memory allocation 29 USE timing30 29 31 30 IMPLICIT NONE … … 172 171 & 'at it= ', kt,' date= ', ndastp 173 172 IF(lwp) WRITE(numout,*) '~~~~' 174 IF(nn_timing == 2) CALL timing_start('rst_put')175 173 CALL iom_rstput( kt, nitrst, numrow, 'rnf_b' , rnf ) 176 174 CALL iom_rstput( kt, nitrst, numrow, 'rnf_hc_b', rnf_tsc(:,:,jp_tem) ) 177 175 CALL iom_rstput( kt, nitrst, numrow, 'rnf_sc_b', rnf_tsc(:,:,jp_sal) ) 178 IF(nn_timing == 2) CALL timing_stop('rst_put')179 176 ENDIF 180 177 ! … … 437 434 IF(lwp) WRITE(numout,*) ' create runoff depht file' 438 435 CALL iom_open ( TRIM( sn_dep_rnf%clname ), inum, ldwrt = .TRUE., kiolib = jprstlib ) 439 IF(nn_timing == 2) CALL timing_start('rst_put')440 436 CALL iom_rstput( 0, 0, inum, 'rodepth', h_rnf ) 441 IF(nn_timing == 2) CALL timing_stop('rst_put')442 437 CALL iom_close ( inum ) 443 438 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssm.F90
r8895 r8904 21 21 USE prtctl ! Print control 22 22 USE iom ! IOM library 23 USE timing24 23 25 24 IMPLICIT NONE … … 157 156 IF(lwp) WRITE(numout,*) '~~~~~~~' 158 157 zf_sbc = REAL( nn_fsbc, wp ) 159 IF(nn_timing == 2) CALL timing_start('rst_put')160 158 CALL iom_rstput( kt, nitrst, numrow, 'nn_fsbc', zf_sbc ) ! sbc frequency 161 159 CALL iom_rstput( kt, nitrst, numrow, 'ssu_m' , ssu_m ) ! sea surface mean fields … … 166 164 IF( lk_vvl ) CALL iom_rstput( kt, nitrst, numrow, 'e3t_m' , e3t_m ) 167 165 CALL iom_rstput( kt, nitrst, numrow, 'frq_m' , frq_m ) 168 IF(nn_timing == 2) CALL timing_stop('rst_put')169 166 ! 170 167 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/STO/stopar.F90
r8895 r8904 22 22 USE iom ! I/O module 23 23 USE lib_mpp 24 USE timing25 24 26 25 … … 764 763 WRITE(clseed(5:5) ,'(i1.1)') jseed 765 764 WRITE(clseed(7:10),'(i4.4)') narea 766 IF(nn_timing == 2) CALL timing_start('rst_put')767 765 CALL iom_rstput( kt, nitrst, numstow, clseed , zrseed(jseed) ) 768 IF(nn_timing == 2) CALL timing_stop('rst_put')769 766 END DO 770 767 ! 2D stochastic parameters 771 768 DO jsto = 1 , jpsto2d 772 769 WRITE(clsto2d(7:9),'(i3.3)') jsto 773 IF(nn_timing == 2) CALL timing_start('rst_put')774 770 CALL iom_rstput( kt, nitrst, numstow, clsto2d , sto2d(:,:,jsto) ) 775 IF(nn_timing == 2) CALL timing_stop('rst_put')776 771 END DO 777 772 ! 3D stochastic parameters 778 773 DO jsto = 1 , jpsto3d 779 774 WRITE(clsto3d(7:9),'(i3.3)') jsto 780 IF(nn_timing == 2) CALL timing_start('rst_put')781 775 CALL iom_rstput( kt, nitrst, numstow, clsto3d , sto3d(:,:,:,jsto) ) 782 IF(nn_timing == 2) CALL timing_stop('rst_put')783 776 END DO 784 777 ! close the restart file -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_cen2.F90
r8895 r8904 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('rst_put')289 288 CALL iom_rstput( kt, nitrst, numrow, 'avmb', avmb ) 290 289 CALL iom_rstput( kt, nitrst, numrow, 'avtb', avtb ) 291 IF(nn_timing == 2) CALL timing_stop('rst_put')292 290 ENDIF 293 291 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRA/traqsr.F90
r8895 r8904 368 368 & 'at it= ', kt,' date= ', ndastp 369 369 IF(lwp) WRITE(numout,*) '~~~~' 370 IF(nn_timing == 2) CALL timing_start('rst_put')371 370 CALL iom_rstput( kt, nitrst, numrow, 'qsr_hc_b' , qsr_hc ) 372 371 CALL iom_rstput( kt, nitrst, numrow, 'fraqsr_1lev', fraqsr_1lev ) ! default definition in sbcssm 373 IF(nn_timing == 2) CALL timing_stop('rst_put')374 372 ! 375 373 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r8895 r8904 209 209 & 'at it= ', kt,' date= ', ndastp 210 210 IF(lwp) WRITE(numout,*) '~~~~' 211 IF(nn_timing == 2) CALL timing_start('rst_put')212 211 CALL iom_rstput( kt, nitrst, numrow, 'sbc_hc_b', sbc_tsc(:,:,jp_tem) ) 213 212 CALL iom_rstput( kt, nitrst, numrow, 'sbc_sc_b', sbc_tsc(:,:,jp_sal) ) 214 IF(nn_timing == 2) CALL timing_stop('rst_put')215 213 ENDIF 216 214 ! … … 255 253 & 'at it= ', kt,' date= ', ndastp 256 254 IF(lwp) WRITE(numout,*) '~~~~' 257 IF(nn_timing == 2) CALL timing_start('rst_put')258 255 CALL iom_rstput( kt, nitrst, numrow, 'fwf_isf_b', fwfisf(:,:) ) 259 256 CALL iom_rstput( kt, nitrst, numrow, 'isf_hc_b' , risf_tsc(:,:,jp_tem) ) 260 257 CALL iom_rstput( kt, nitrst, numrow, 'isf_sc_b' , risf_tsc(:,:,jp_sal) ) 261 IF(nn_timing == 2) CALL timing_stop('rst_put')262 258 ENDIF 263 259 END IF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl_rst.F90
r8895 r8904 16 16 USE iom ! I/O module 17 17 USE restart ! only for lrst_oce 18 USE timing19 18 20 19 IMPLICIT NONE … … 83 82 IF( ln_trdmxl_instant ) THEN 84 83 !-- Temperature 85 IF(nn_timing == 2) CALL timing_start('rst_put')86 84 CALL iom_rstput( kt, nitrst, nummxlw, 'tmlbb' , tmlbb ) 87 85 CALL iom_rstput( kt, nitrst, nummxlw, 'tmlbn' , tmlbn ) … … 116 114 ENDDO 117 115 CALL iom_rstput( kt, nitrst, nummxlw, 'smltrd_atf_sumb' , smltrd_atf_sumb ) 118 IF(nn_timing == 2) CALL timing_stop('rst_put')119 116 ENDIF 120 117 ! -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90
r8895 r8904 1209 1209 ! ! ------------------- 1210 1210 IF(lwp) WRITE(numout,*) '---- gls-rst ----' 1211 IF(nn_timing == 2) CALL timing_start('rst_put')1212 1211 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) 1213 1212 CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt_k ) … … 1216 1215 CALL iom_rstput( kt, nitrst, numrow, 'avmv' , avmv_k ) 1217 1216 CALL iom_rstput( kt, nitrst, numrow, 'mxln' , mxln ) 1218 IF(nn_timing == 2) CALL timing_stop('rst_put')1219 1217 ! 1220 1218 ENDIF -
branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90
r8895 r8904 970 970 ! ! ------------------- 971 971 IF(lwp) WRITE(numout,*) '---- tke-rst ----' 972 IF(nn_timing == 2) CALL timing_start('rst_put')973 972 CALL iom_rstput( kt, nitrst, numrow, 'en' , en ) 974 973 CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt_k ) … … 977 976 CALL iom_rstput( kt, nitrst, numrow, 'avmv' , avmv_k ) 978 977 CALL iom_rstput( kt, nitrst, numrow, 'dissl', dissl ) 979 IF(nn_timing == 2) CALL timing_stop('rst_put')980 978 ! 981 979 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.