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/p5zmort.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/p5zmort.F90

    r7646 r9124  
    7474      !!--------------------------------------------------------------------- 
    7575      ! 
    76       IF( nn_timing == 1 )  CALL timing_start('p5z_nano') 
     76      IF( ln_timing )   CALL timing_start('p5z_nano') 
    7777      ! 
    7878      prodcal(:,:,:) = 0.  !: calcite production variable set to zero 
     
    124124       ENDIF 
    125125      ! 
    126       IF( nn_timing == 1 )  CALL timing_stop('p5z_nano') 
     126      IF( ln_timing )   CALL timing_stop('p5z_nano') 
    127127      ! 
    128128   END SUBROUTINE p5z_nano 
     129 
    129130 
    130131   SUBROUTINE p5z_pico 
     
    143144      !!--------------------------------------------------------------------- 
    144145      ! 
    145       IF( nn_timing == 1 )  CALL timing_start('p5z_pico') 
     146      IF( ln_timing )   CALL timing_start('p5z_pico') 
    146147      ! 
    147148      DO jk = 1, jpkm1 
     
    184185       ENDIF 
    185186      ! 
    186       IF( nn_timing == 1 )  CALL timing_stop('p5z_pico') 
     187      IF( ln_timing )   CALL timing_stop('p5z_pico') 
    187188      ! 
    188189   END SUBROUTINE p5z_pico 
     
    204205      !!--------------------------------------------------------------------- 
    205206      ! 
    206       IF( nn_timing == 1 )  CALL timing_start('p5z_diat') 
     207      IF( ln_timing )   CALL timing_start('p5z_diat') 
    207208      ! 
    208209 
     
    262263      ENDIF 
    263264      ! 
    264       IF( nn_timing == 1 )  CALL timing_stop('p5z_diat') 
     265      IF( ln_timing )   CALL timing_stop('p5z_diat') 
    265266      ! 
    266267   END SUBROUTINE p5z_diat 
    267268 
     269 
    268270   SUBROUTINE p5z_mort_init 
    269  
    270271      !!---------------------------------------------------------------------- 
    271272      !!                  ***  ROUTINE p5z_mort_init  *** 
     
    279280      !! 
    280281      !!---------------------------------------------------------------------- 
    281  
     282      INTEGER :: ios                 ! Local integer output status for namelist read 
     283      !! 
    282284      NAMELIST/namp5zmort/ wchln, wchlp, wchld, wchldm, mpratn, mpratp, mpratd 
    283       INTEGER :: ios                 ! Local integer output status for namelist read 
     285      !!---------------------------------------------------------------------- 
    284286 
    285287      REWIND( numnatp_ref )              ! Namelist nampismort in reference namelist : Pisces phytoplankton 
     
    289291      REWIND( numnatp_cfg )              ! Namelist nampismort in configuration namelist : Pisces phytoplankton 
    290292      READ  ( numnatp_cfg, namp5zmort, IOSTAT = ios, ERR = 902 ) 
    291 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp5zmort in configuration namelist', lwp ) 
     293902   IF( ios > 0 ) CALL ctl_nam ( ios , 'namp5zmort in configuration namelist', lwp ) 
    292294      IF(lwm) WRITE ( numonp, namp5zmort ) 
    293295 
Note: See TracChangeset for help on using the changeset viewer.