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/P2Z – 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

Location:
branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P2Z
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P2Z/p2zbio.F90

    r9085 r9124  
    101101      !!--------------------------------------------------------------------- 
    102102      ! 
    103       IF( nn_timing == 1 )  CALL timing_start('p2z_bio') 
     103      IF( ln_timing )   CALL timing_start('p2z_bio') 
    104104      ! 
    105105      IF( lk_iomput ) THEN 
     
    382382      ENDIF 
    383383      ! 
    384       IF( nn_timing == 1 )  CALL timing_stop('p2z_bio') 
     384      IF( ln_timing )  CALL timing_stop('p2z_bio') 
    385385      ! 
    386386   END SUBROUTINE p2z_bio 
     387 
    387388 
    388389   SUBROUTINE p2z_bio_init 
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P2Z/p2zexp.F90

    r7646 r9124  
    6868      !!--------------------------------------------------------------------- 
    6969      ! 
    70       IF( nn_timing == 1 )  CALL timing_start('p2z_exp') 
     70      IF( ln_timing )   CALL timing_start('p2z_exp') 
    7171      ! 
    7272      IF( kt == nittrc000 )   CALL p2z_exp_init 
     
    155155      ENDIF 
    156156      ! 
    157       IF( nn_timing == 1 )  CALL timing_stop('p2z_exp') 
     157      IF( ln_timing )  CALL timing_stop('p2z_exp') 
    158158      ! 
    159159   END SUBROUTINE p2z_exp 
     160 
    160161 
    161162   SUBROUTINE p2z_exp_init 
     
    166167      INTEGER  ::   ji, jj, jk 
    167168      REAL(wp) ::   zmaskt, zfluo, zfluu 
    168       REAL(wp), POINTER, DIMENSION(:,:  ) :: zrro 
    169       REAL(wp), POINTER, DIMENSION(:,:,:) :: zdm0 
    170       !!--------------------------------------------------------------------- 
    171  
     169      REAL(wp), POINTER, DIMENSION(:,:  ) ::   zrro 
     170      REAL(wp), POINTER, DIMENSION(:,:,:) ::   zdm0 
     171      !!--------------------------------------------------------------------- 
     172      ! 
    172173      IF(lwp) THEN 
    173174         WRITE(numout,*) 
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P2Z/p2zopt.F90

    r9019 r9124  
    1111   !!             3.2  !  2009-04  (C. Ethe, G. Madec)  minor optimisation + style 
    1212   !!---------------------------------------------------------------------- 
     13 
     14   !!---------------------------------------------------------------------- 
    1315   !!   p2z_opt        :   Compute the light availability in the water column 
    1416   !!---------------------------------------------------------------------- 
     
    6971      !!--------------------------------------------------------------------- 
    7072      ! 
    71       IF( nn_timing == 1 )  CALL timing_start('p2z_opt') 
     73      IF( ln_timing )   CALL timing_start('p2z_opt') 
    7274      ! 
    7375      ! Allocate temporary workspace 
     
    143145      CALL wrk_dealloc( jpi, jpj, jpk, zparr, zparg    ) 
    144146      ! 
    145       IF( nn_timing == 1 )  CALL timing_stop('p2z_opt') 
     147      IF( ln_timing )   CALL timing_stop('p2z_opt') 
    146148      ! 
    147149   END SUBROUTINE p2z_opt 
     
    157159      !! 
    158160      !!---------------------------------------------------------------------- 
     161      INTEGER ::   ios   ! Local integer 
     162      !! 
    159163      NAMELIST/namlobopt/ xkg0, xkr0, xkgp, xkrp, xlg, xlr, rpig 
    160164      NAMELIST/namlobrat/ rcchl, redf, reddom 
    161       INTEGER :: ios                 ! Local integer output status for namelist read 
    162165      !!---------------------------------------------------------------------- 
    163166 
     
    168171      REWIND( numnatp_cfg )              ! Namelist namlobopt in configuration namelist : Lobster options 
    169172      READ  ( numnatp_cfg, namlobopt, IOSTAT = ios, ERR = 902 ) 
    170 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlobopt in configuration namelist', lwp ) 
     173902   IF( ios > 0 ) CALL ctl_nam ( ios , 'namlobopt in configuration namelist', lwp ) 
    171174      IF(lwm) WRITE ( numonp, namlobopt ) 
    172175 
     
    190193      REWIND( numnatp_cfg )              ! Namelist namlobrat in configuration namelist : Lobster ratios 
    191194      READ  ( numnatp_cfg, namlobrat, IOSTAT = ios, ERR = 904 ) 
    192 904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlobrat in configuration namelist', lwp ) 
     195904   IF( ios > 0 ) CALL ctl_nam ( ios , 'namlobrat in configuration namelist', lwp ) 
    193196      IF(lwm) WRITE ( numonp, namlobrat ) 
    194197 
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P2Z/p2zsed.F90

    r7646 r9124  
    3535   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    3636   !!---------------------------------------------------------------------- 
    37  
    3837CONTAINS 
    3938 
     
    5655      !!              trend of passive tracers is saved for futher diagnostics. 
    5756      !!--------------------------------------------------------------------- 
    58       !! 
    5957      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index       
    60       !! 
     58      ! 
    6159      INTEGER  ::   ji, jj, jk, jl, ierr 
    6260      CHARACTER (len=25) :: charout 
     
    6563      !!--------------------------------------------------------------------- 
    6664      ! 
    67       IF( nn_timing == 1 )  CALL timing_start('p2z_sed') 
     65      IF( ln_timing )   CALL timing_start('p2z_sed') 
    6866      ! 
    6967      IF( kt == nittrc000 ) THEN 
     
    119117      ENDIF 
    120118      ! 
    121       IF( nn_timing == 1 )  CALL timing_stop('p2z_sed') 
     119      IF( ln_timing )   CALL timing_stop('p2z_sed') 
    122120      ! 
    123121   END SUBROUTINE p2z_sed 
     122 
    124123 
    125124   SUBROUTINE p2z_sed_init 
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/PISCES/P2Z/p2zsms.F90

    r7681 r9124  
    66   !! History :   1.0  !            M. Levy 
    77   !!             2.0  !  2007-12  (C. Ethe, G. Madec)  revised architecture 
     8   !!---------------------------------------------------------------------- 
     9 
    810   !!---------------------------------------------------------------------- 
    911   !!   p2zsms        :  Time loop of passive tracers sms 
     
    4244      !! ** Method  : - ??? 
    4345      !! -------------------------------------------------------------------- 
    44       !! 
    4546      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index       
    4647      ! 
    47       INTEGER :: jn 
     48      INTEGER ::   jn   ! dummy loop index 
    4849      !! -------------------------------------------------------------------- 
    4950      ! 
    50       IF( nn_timing == 1 )  CALL timing_start('p2z_sms') 
     51      IF( ln_timing )   CALL timing_start('p2z_sms') 
    5152      ! 
    5253      CALL p2z_opt( kt )      ! optical model 
     
    5455      CALL p2z_sed( kt )      ! sedimentation model 
    5556      CALL p2z_exp( kt )      ! export 
    56  
     57      ! 
    5758      IF( l_trdtrc ) THEN 
    5859         DO jn = jp_pcs0, jp_pcs1 
     
    6061         END DO 
    6162      END IF 
    62  
    6363      ! 
    6464      IF ( lwm .AND. kt == nittrc000 ) CALL FLUSH    ( numonp )     ! flush output namelist PISCES 
    65       IF( nn_timing == 1 )  CALL timing_stop('p2z_sms') 
     65      IF( ln_timing )   CALL timing_stop('p2z_sms') 
    6666      ! 
    6767   END SUBROUTINE p2z_sms 
Note: See TracChangeset for help on using the changeset viewer.