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 3160 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/trcsub.F90 – NEMO

Ignore:
Timestamp:
2011-11-20T15:27:18+01:00 (12 years ago)
Author:
cetlod
Message:

Add timing in TOP routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/trcsub.F90

    r3153 r3160  
    6767      REAL(wp)              ::  z1_ne3t, z1_ne3u, z1_ne3v, z1_ne3w 
    6868      !!------------------------------------------------------------------- 
    69  
    70        IF( kt == nit000 ) THEN 
     69      ! 
     70      IF( nn_timing == 1 )  CALL timing_start('trc_sub_stp') 
     71      ! 
     72      IF( kt == nit000 ) THEN 
    7173           IF(lwp) WRITE(numout,*) 
    7274           IF(lwp) WRITE(numout,*) 'trc_sub_stp : substepping of the passive tracers' 
     
    8183           r1_ndttrcp1      = 1._wp / REAL( nn_dttrc + 1, wp ) 
    8284           ! 
    83        ENDIF   
     85      ENDIF   
    8486 
    8587       IF( MOD( kt , nn_dttrc ) /= 0 ) THEN 
     
    539541         CALL lbc_lnk( hvr   (:,:)         , 'V', 1. )  
    540542      ENDIF 
    541  
    542  
     543      ! 
     544      IF( nn_timing == 1 )  CALL timing_start('trc_sub_stp') 
     545      ! 
    543546   END SUBROUTINE trc_sub_stp 
    544547 
     
    554557      INTEGER ::   ierr 
    555558      !!------------------------------------------------------------------- 
    556  
     559      ! 
     560      IF( nn_timing == 1 )  CALL timing_start('trc_sub_ini') 
     561      ! 
    557562      IF(lwp) WRITE(numout,*) 
    558563      IF(lwp) WRITE(numout,*) 'trc_sub_ini : initial set up of the passive tracers substepping' 
     
    643648#endif 
    644649      ! 
     650      IF( nn_timing == 1 )  CALL timing_stop('trc_sub_ini') 
     651      ! 
    645652   END SUBROUTINE trc_sub_ini 
    646653 
     
    657664      INTEGER :: jk                 ! dummy loop indices 
    658665      !!------------------------------------------------------------------- 
    659  
     666      ! 
     667      IF( nn_timing == 1 )  CALL timing_start('trc_sub_reset') 
     668      ! 
    660669      !   restore physics variables 
    661670      un    (:,:,:)   =  un_temp    (:,:,:) 
     
    867876#endif 
    868877      ! 
     878      IF( nn_timing == 1 )  CALL timing_stop('trc_sub_reset') 
     879      ! 
    869880   END SUBROUTINE trc_sub_reset 
    870881 
     
    896907      REAL(wp), POINTER, DIMENSION(:,:) :: zhdiv 
    897908      !!--------------------------------------------------------------------- 
    898  
     909      ! 
     910      IF( nn_timing == 1 )  CALL timing_start('trc_sub_ssh') 
     911      ! 
    899912      ! Allocate temporary workspace 
    900913      CALL wrk_alloc( jpi, jpj, zhdiv ) 
     
    10001013      CALL wrk_dealloc( jpi, jpj, zhdiv ) 
    10011014      ! 
     1015      IF( nn_timing == 1 )  CALL timing_stop('trc_sub_ssh') 
     1016      ! 
    10021017   END SUBROUTINE trc_sub_ssh 
    10031018 
Note: See TracChangeset for help on using the changeset viewer.