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

    r8533 r9124  
    7676      !!--------------------------------------------------------------------- 
    7777      ! 
    78       IF( nn_timing == 1 )  CALL timing_start('p4z_meso') 
     78      IF( ln_timing )   CALL timing_start('p4z_meso') 
    7979      ! 
    8080      CALL wrk_alloc( jpi, jpj, jpk, zgrazing ) 
     
    240240      CALL wrk_dealloc( jpi, jpj, jpk, zgrazing ) 
    241241      ! 
    242       IF( nn_timing == 1 )  CALL timing_stop('p4z_meso') 
     242      IF( ln_timing )   CALL timing_stop('p4z_meso') 
    243243      ! 
    244244   END SUBROUTINE p4z_meso 
    245245 
     246 
    246247   SUBROUTINE p4z_meso_init 
    247  
    248248      !!---------------------------------------------------------------------- 
    249249      !!                  ***  ROUTINE p4z_meso_init  *** 
     
    257257      !! 
    258258      !!---------------------------------------------------------------------- 
    259  
     259      INTEGER ::   ios   ! Local integer 
     260      ! 
    260261      NAMELIST/namp4zmes/ part2, grazrat2, resrat2, mzrat2, xprefc, xprefp, xprefz,   & 
    261262         &                xprefpoc, xthresh2dia, xthresh2phy, xthresh2zoo, xthresh2poc, & 
    262263         &                xthresh2, xkgraz2, epsher2, sigma2, unass2, grazflux 
    263       INTEGER :: ios                 ! Local integer output status for namelist read 
    264  
     264      !!---------------------------------------------------------------------- 
     265      ! 
    265266      REWIND( numnatp_ref )              ! Namelist nampismes in reference namelist : Pisces mesozooplankton 
    266267      READ  ( numnatp_ref, namp4zmes, IOSTAT = ios, ERR = 901) 
    267268901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp4zmes in reference namelist', lwp ) 
    268  
     269      ! 
    269270      REWIND( numnatp_cfg )              ! Namelist nampismes in configuration namelist : Pisces mesozooplankton 
    270271      READ  ( numnatp_cfg, namp4zmes, IOSTAT = ios, ERR = 902 ) 
    271 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namp4zmes in configuration namelist', lwp ) 
     272902   IF( ios > 0 ) CALL ctl_nam ( ios , 'namp4zmes in configuration namelist', lwp ) 
    272273      IF(lwm) WRITE ( numonp, namp4zmes ) 
    273  
    274  
     274      ! 
    275275      IF(lwp) THEN                         ! control print 
    276276         WRITE(numout,*) ' '  
     
    296296         WRITE(numout,*) '    half sturation constant for grazing 2          xkgraz2      =', xkgraz2 
    297297      ENDIF 
    298  
    299  
     298      ! 
    300299   END SUBROUTINE p4z_meso_init 
    301300 
Note: See TracChangeset for help on using the changeset viewer.