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

    r7753 r9124  
    6565      !!--------------------------------------------------------------------- 
    6666      ! 
    67       IF( nn_timing == 1 )  CALL timing_start('p4z_lys') 
     67      IF( ln_timing )  CALL timing_start('p4z_lys') 
    6868      ! 
    6969      CALL wrk_alloc( jpi, jpj, jpk, zco3, zcaldiss, zhinit, zhi, zco3sat ) 
     
    141141      CALL wrk_dealloc( jpi, jpj, jpk, zco3, zcaldiss, zhinit, zhi, zco3sat ) 
    142142      ! 
    143       IF( nn_timing == 1 )  CALL timing_stop('p4z_lys') 
     143      IF( ln_timing )   CALL timing_stop('p4z_lys') 
    144144      ! 
    145145   END SUBROUTINE p4z_lys 
    146146 
     147 
    147148   SUBROUTINE p4z_lys_init 
    148  
    149149      !!---------------------------------------------------------------------- 
    150150      !!                  ***  ROUTINE p4z_lys_init  *** 
     
    158158      !! 
    159159      !!---------------------------------------------------------------------- 
    160       INTEGER  ::  ios                 ! Local integer output status for namelist read 
    161  
     160      INTEGER ::   ios   ! Local integer 
     161      ! 
    162162      NAMELIST/nampiscal/ kdca, nca 
    163163      !!---------------------------------------------------------------------- 
    164  
     164      ! 
    165165      REWIND( numnatp_ref )              ! Namelist nampiscal in reference namelist : Pisces CaCO3 dissolution 
    166166      READ  ( numnatp_ref, nampiscal, IOSTAT = ios, ERR = 901) 
    167167901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampiscal in reference namelist', lwp ) 
    168  
     168      ! 
    169169      REWIND( numnatp_cfg )              ! Namelist nampiscal in configuration namelist : Pisces CaCO3 dissolution 
    170170      READ  ( numnatp_cfg, nampiscal, IOSTAT = ios, ERR = 902 ) 
    171 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampiscal in configuration namelist', lwp ) 
     171902   IF( ios > 0 ) CALL ctl_nam ( ios , 'nampiscal in configuration namelist', lwp ) 
    172172      IF(lwm) WRITE ( numonp, nampiscal ) 
    173  
     173      ! 
    174174      IF(lwp) THEN                         ! control print 
    175175         WRITE(numout,*) ' ' 
     
    179179         WRITE(numout,*) '    order of reaction for calcite dissolution nca       =', nca 
    180180      ENDIF 
    181  
     181      ! 
    182182      ! Number of seconds per month  
    183183      rmtss =  nyear_len(1) * rday / raamo 
Note: See TracChangeset for help on using the changeset viewer.