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

    r7646 r9124  
    8686      !!--------------------------------------------------------------------- 
    8787      ! 
    88       IF( nn_timing == 1 )  CALL timing_start('p5z_micro') 
     88      IF( ln_timing )   CALL timing_start('p5z_micro') 
    8989      ! 
    9090      CALL wrk_alloc( jpi, jpj, jpk, zgrazing ) 
     
    306306      CALL wrk_dealloc( jpi, jpj, jpk, zgrazing ) 
    307307      ! 
    308       IF( nn_timing == 1 )  CALL timing_stop('p5z_micro') 
     308      IF( ln_timing )   CALL timing_stop('p5z_micro') 
    309309      ! 
    310310   END SUBROUTINE p5z_micro 
     
    312312 
    313313   SUBROUTINE p5z_micro_init 
    314  
    315314      !!---------------------------------------------------------------------- 
    316315      !!                  ***  ROUTINE p5z_micro_init  *** 
     
    324323      !! 
    325324      !!---------------------------------------------------------------------- 
    326  
     325      INTEGER ::   ios   ! Local integer 
     326      !! 
    327327      NAMELIST/namp5zzoo/ part, grazrat, bmetexc, resrat, mzrat, xprefc, xprefn, & 
    328328         &                xprefp, xprefd, xprefz, xthreshdia, xthreshphy, & 
    329329         &                xthreshpic, xthreshpoc, xthreshzoo, xthresh, xkgraz, & 
    330330         &                epsher, ssigma, srespir, unassc, unassn, unassp 
    331  
    332       INTEGER :: ios                 ! Local integer output status for namelist read 
    333  
     331      !!---------------------------------------------------------------------- 
     332      ! 
    334333      REWIND( numnatp_ref )              ! Namelist nampiszoo in reference namelist : Pisces microzooplankton 
    335334      READ  ( numnatp_ref, namp5zzoo, IOSTAT = ios, ERR = 901) 
    336335901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp5zzoo in reference namelist', lwp ) 
    337  
     336      ! 
    338337      REWIND( numnatp_cfg )              ! Namelist nampiszoo in configuration namelist : Pisces microzooplankton 
    339338      READ  ( numnatp_cfg, namp5zzoo, IOSTAT = ios, ERR = 902 ) 
    340 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp5zzoo in configuration namelist', lwp ) 
     339902   IF( ios > 0 ) CALL ctl_nam ( ios , 'namp5zzoo in configuration namelist', lwp ) 
    341340      IF(lwm) WRITE ( numonp, namp5zzoo ) 
    342  
     341      ! 
    343342      IF(lwp) THEN                         ! control print 
    344343         WRITE(numout,*) ' ' 
     
    369368         WRITE(numout,*) '    Use of excess carbon for respiration            bmetexc     =', bmetexc 
    370369      ENDIF 
    371  
     370      ! 
    372371   END SUBROUTINE p5z_micro_init 
    373372 
Note: See TracChangeset for help on using the changeset viewer.