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/p4zmort.F90 – NEMO

Ignore:
Timestamp:
2017-12-19T09:26:25+01:00 (7 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/p4zmort.F90

    r7753 r9124  
    7272      !!--------------------------------------------------------------------- 
    7373      ! 
    74       IF( nn_timing == 1 )  CALL timing_start('p4z_nano') 
     74      IF( ln_timing )   CALL timing_start('p4z_nano') 
    7575      ! 
    7676      prodcal(:,:,:) = 0.  !: calcite production variable set to zero 
     
    126126       ENDIF 
    127127      ! 
    128       IF( nn_timing == 1 )  CALL timing_stop('p4z_nano') 
     128      IF( ln_timing )   CALL timing_stop('p4z_nano') 
    129129      ! 
    130130   END SUBROUTINE p4z_nano 
     131 
    131132 
    132133   SUBROUTINE p4z_diat 
     
    145146      !!--------------------------------------------------------------------- 
    146147      ! 
    147       IF( nn_timing == 1 )  CALL timing_start('p4z_diat') 
     148      IF( ln_timing )   CALL timing_start('p4z_diat') 
    148149      ! 
    149150 
     
    201202      ENDIF 
    202203      ! 
    203       IF( nn_timing == 1 )  CALL timing_stop('p4z_diat') 
     204      IF( ln_timing )   CALL timing_stop('p4z_diat') 
    204205      ! 
    205206   END SUBROUTINE p4z_diat 
    206207 
     208 
    207209   SUBROUTINE p4z_mort_init 
    208  
    209210      !!---------------------------------------------------------------------- 
    210211      !!                  ***  ROUTINE p4z_mort_init  *** 
     
    218219      !! 
    219220      !!---------------------------------------------------------------------- 
    220  
     221      INTEGER ::   ios   ! Local integer 
     222      ! 
    221223      NAMELIST/namp4zmort/ wchl, wchld, wchldm, mprat, mprat2 
    222       INTEGER :: ios                 ! Local integer output status for namelist read 
    223  
     224      !!---------------------------------------------------------------------- 
     225      ! 
    224226      REWIND( numnatp_ref )              ! Namelist nampismort in reference namelist : Pisces phytoplankton 
    225227      READ  ( numnatp_ref, namp4zmort, IOSTAT = ios, ERR = 901) 
    226228901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp4zmort in reference namelist', lwp ) 
    227  
     229      ! 
    228230      REWIND( numnatp_cfg )              ! Namelist nampismort in configuration namelist : Pisces phytoplankton 
    229231      READ  ( numnatp_cfg, namp4zmort, IOSTAT = ios, ERR = 902 ) 
    230 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp4zmort in configuration namelist', lwp ) 
     232902   IF( ios > 0 ) CALL ctl_nam ( ios , 'namp4zmort in configuration namelist', lwp ) 
    231233      IF(lwm) WRITE ( numonp, namp4zmort ) 
    232  
     234      ! 
    233235      IF(lwp) THEN                         ! control print 
    234236         WRITE(numout,*) ' ' 
     
    241243         WRITE(numout,*) '    Diatoms mortality rate                    mprat2    =', mprat2 
    242244      ENDIF 
    243  
     245      ! 
    244246   END SUBROUTINE p4z_mort_init 
    245247 
Note: See TracChangeset for help on using the changeset viewer.