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 9124 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zopt.F90 – NEMO

Ignore:
Timestamp:
2017-12-19T09:26:25+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: ln_timing instead of nn_timing + restricted timing to nemo_init and routine called by step in OPA_SRC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zopt.F90

    r7970 r9124  
    1818   USE prtctl_trc      !  print control for debugging 
    1919 
    20  
    2120   IMPLICIT NONE 
    2221   PRIVATE 
     
    5958      !! ** Method  : - ??? 
    6059      !!--------------------------------------------------------------------- 
    61       ! 
    6260      INTEGER, INTENT(in) ::   kt, knt   ! ocean time step 
    6361      ! 
     
    7270      !!--------------------------------------------------------------------- 
    7371      ! 
    74       IF( nn_timing == 1 )  CALL timing_start('p4z_opt') 
     72      IF( ln_timing )  CALL timing_start('p4z_opt') 
    7573      ! 
    7674      ! Allocate temporary workspace 
     
    250248                   CALL wrk_dealloc( jpi, jpj, jpk, zpar   ,  ze0, ze1, ze2, ze3, zchl3d ) 
    251249      ! 
    252       IF( nn_timing == 1 )  CALL timing_stop('p4z_opt') 
     250      IF( ln_timing )  CALL timing_stop('p4z_opt') 
    253251      ! 
    254252   END SUBROUTINE p4z_opt 
     253 
    255254 
    256255   SUBROUTINE p4z_opt_par( kt, pqsr, pe1, pe2, pe3, pe0, pqsr100 )  
     
    334333      !! 
    335334      !!---------------------------------------------------------------------- 
    336       !! * arguments 
    337335      INTEGER ,                INTENT(in) ::   kt     ! ocean time step 
    338  
    339       !! * local declarations 
     336      ! 
    340337      INTEGER  :: ji,jj 
    341338      REAL(wp) :: zcoef 
    342339      !!--------------------------------------------------------------------- 
    343340      ! 
    344       IF( nn_timing == 1 )  CALL timing_start('p4z_optsbc') 
     341      IF( ln_timing )  CALL timing_start('p4z_optsbc') 
    345342      ! 
    346343      ! Compute par_varsw at nit000 or only if there is more than 1 time record in par coefficient file 
     
    352349      ENDIF 
    353350      ! 
    354       IF( nn_timing == 1 )  CALL timing_stop('p4z_optsbc') 
     351      IF( ln_timing )  CALL timing_stop('p4z_optsbc') 
    355352      ! 
    356353   END SUBROUTINE p4z_opt_sbc 
     354 
    357355 
    358356   SUBROUTINE p4z_opt_init 
     
    365363      !! ** Input   :   external ascii and netcdf files 
    366364      !!---------------------------------------------------------------------- 
    367       ! 
    368365      INTEGER :: numpar 
    369366      INTEGER :: ierr 
     
    375372      ! 
    376373      NAMELIST/nampisopt/cn_dir, sn_par, ln_varpar, parlux 
    377  
    378       !!---------------------------------------------------------------------- 
    379  
    380       IF( nn_timing == 1 )  CALL timing_start('p4z_opt_init') 
     374      !!---------------------------------------------------------------------- 
    381375 
    382376      REWIND( numnatp_ref )              ! Namelist nampisopt in reference namelist : Pisces attenuation coef. and PAR 
     
    434428      IF( ln_qsr_bio )   etot3    (:,:,:) = 0._wp 
    435429      !  
    436       IF( nn_timing == 1 )  CALL timing_stop('p4z_opt_init') 
    437       ! 
    438430   END SUBROUTINE p4z_opt_init 
    439431 
Note: See TracChangeset for help on using the changeset viewer.