New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 8904 for branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/CRS/crsdomwri.F90 – NEMO

Ignore:
Timestamp:
2017-12-05T17:01:17+01:00 (7 years ago)
Author:
andmirek
Message:

#1978 new timers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r7750_GO6_package_oasis_timers/NEMOGCM/NEMO/OPA_SRC/CRS/crsdomwri.F90

    r8895 r8904  
    122122      !======================================================== 
    123123      !                                                         ! masks (inum2)  
    124       IF(nn_timing == 2)  CALL timing_start('rst_put') 
    125124      CALL iom_rstput( 0, 0, inum2, 'tmask', tmask_crs, ktype = jp_i1 )     !    ! land-sea mask 
    126125      CALL iom_rstput( 0, 0, inum2, 'umask', umask_crs, ktype = jp_i1 ) 
    127126      CALL iom_rstput( 0, 0, inum2, 'vmask', vmask_crs, ktype = jp_i1 ) 
    128127      CALL iom_rstput( 0, 0, inum2, 'fmask', fmask_crs, ktype = jp_i1 ) 
    129       IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    130128       
    131129       
     
    158156         fpol_crs(jpiglo_crs/2+1:jpiglo_crs,:)=0._wp 
    159157      ENDIF 
    160       IF(nn_timing == 2)  CALL timing_start('rst_put')  
     158       
    161159      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 
    163161      CALL dom_uniq_crs( zprw, 'U' ) 
    164162      zprt = umask_crs(:,:,1) * zprw 
    165       IF(nn_timing == 2)  CALL timing_start('rst_put') 
    166163      CALL iom_rstput( 0, 0, inum2, 'umaskutil', zprt, ktype = jp_i1 )   
    167       IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    168164      CALL dom_uniq_crs( zprw, 'V' ) 
    169165      zprt = vmask_crs(:,:,1) * zprw 
    170       IF(nn_timing == 2)  CALL timing_start('rst_put') 
    171166      CALL iom_rstput( 0, 0, inum2, 'vmaskutil', zprt, ktype = jp_i1 )   
    172       IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    173167      CALL dom_uniq_crs( zprw, 'F' ) 
    174168      zprt = fmask_crs(:,:,1) * zprw 
    175       IF(nn_timing == 2)  CALL timing_start('rst_put') 
    176169      CALL iom_rstput( 0, 0, inum2, 'fmaskutil', zprt, ktype = jp_i1 )   
    177170      !======================================================== 
     
    198191       
    199192      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 
    201194      !======================================================== 
    202195      !                                                         ! vertical mesh (inum4)  
    203196!     ! note that mbkt is set to 1 over land ==> use surface tmask_crs 
    204197      zprt(:,:) = tmask_crs(:,:,1) * REAL( mbkt_crs(:,:) , wp ) 
    205       IF(nn_timing == 2)  CALL timing_start('rst_put') 
    206198      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') 
    208199 
    209200      IF( ln_zps ) THEN                       ! z-coordinate - partial steps 
     
    211202             
    212203         IF ( nn_msh_crs <= 6 ) THEN 
    213             IF(nn_timing == 2)  CALL timing_start('rst_put') 
    214204            CALL iom_rstput( 0, 0, inum4, 'e3t', e3t_crs )       
    215205            CALL iom_rstput( 0, 0, inum4, 'e3w', e3w_crs )       
    216206            CALL iom_rstput( 0, 0, inum4, 'e3u', e3u_crs )       
    217207            CALL iom_rstput( 0, 0, inum4, 'e3v', e3v_crs )       
    218             IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    219208         ELSE 
    220209            DO jj = 1,jpj_crs    
     
    227216            CALL crs_lbc_lnk( ze3tp,'T', 1.0 ) 
    228217            CALL crs_lbc_lnk( ze3wp,'W', 1.0 ) 
    229             IF(nn_timing == 2)  CALL timing_start('rst_put')  
     218   
    230219            CALL iom_rstput( 0, 0, inum4, 'e3t_ps', ze3tp )       
    231220            CALL iom_rstput( 0, 0, inum4, 'e3w_ps', ze3wp ) 
    232             IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    233221         ENDIF 
    234222 
     
    245233 
    246234            CALL crs_lbc_lnk( zdepu,'U', 1. )   ;   CALL crs_lbc_lnk( zdepv,'V', 1. )  
    247             IF(nn_timing == 2)  CALL timing_start('rst_put') 
    248235            CALL iom_rstput( 0, 0, inum4, 'gdepu', zdepu, ktype = jp_r4 ) 
    249236            CALL iom_rstput( 0, 0, inum4, 'gdepv', zdepv, ktype = jp_r4 ) 
    250237            CALL iom_rstput( 0, 0, inum4, 'gdepw', gdepw_crs, ktype = jp_r4 ) 
    251             IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    252238         ELSE 
    253239            DO jj = 1,jpj_crs    
     
    257243               END DO 
    258244            END DO 
    259             IF(nn_timing == 2)  CALL timing_start('rst_put') 
    260245            CALL iom_rstput( 0, 0, inum4, 'hdept', zprt, ktype = jp_r4 )      
    261246            CALL iom_rstput( 0, 0, inum4, 'hdepw', zprw, ktype = jp_r4 )  
    262             IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    263247         ENDIF 
    264          IF(nn_timing == 2)  CALL timing_start('rst_put') 
     248 
    265249         CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d )     !    ! reference z-coord. 
    266250         CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 
     
    285269         CALL iom_rstput(  0, 0, inum4, 'crs_surfv_wgt', crs_surfv_wgt )  
    286270         CALL iom_rstput(  0, 0, inum4, 'crs_volt_wgt' , crs_volt_wgt  )  
    287          IF(nn_timing == 2)  CALL timing_stop('rst_put')  
     271 
    288272      ENDIF 
    289273       
    290274     IF( ln_zco ) THEN 
    291275         !                                                      ! z-coordinate - full steps 
    292         IF(nn_timing == 2)  CALL timing_start('rst_put') 
    293276        CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d )     !    ! depth 
    294277        CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 
    295278        CALL iom_rstput( 0, 0, inum4, 'e3t_1d'  , e3t_1d   )     !    ! scale factors 
    296279        CALL iom_rstput( 0, 0, inum4, 'e3w_1d'  , e3w_1d   ) 
    297         IF(nn_timing == 2)  CALL timing_stop('rst_put') 
    298280     ENDIF 
    299281      !                                     ! ============================ 
Note: See TracChangeset for help on using the changeset viewer.