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/OPA_SRC/FLO/floats.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/OPA_SRC/FLO/floats.F90

    r5836 r9124  
    77   !!   NEMO     1.0  ! 2002-06  (A. Bozec)  F90, Free form and module 
    88   !!---------------------------------------------------------------------- 
    9 #if   defined key_floats 
     9#if   defined   key_floats 
    1010   !!---------------------------------------------------------------------- 
    1111   !!   'key_floats'                                     float trajectories 
     
    2222   USE flo4rk          ! Trajectories, Runge Kutta scheme (flo_4rk routine) 
    2323   USE floblk          ! Trajectories, Blanke scheme      (flo_blk routine) 
     24   ! 
    2425   USE in_out_manager  ! I/O manager 
    2526   USE timing          ! preformance summary 
     
    5253      !!---------------------------------------------------------------------- 
    5354      ! 
    54       IF( nn_timing == 1 )   CALL timing_start('flo_stp') 
     55      IF( ln_timing )   CALL timing_start('flo_stp') 
    5556      ! 
    5657      IF( ln_flork4 ) THEN   ;   CALL flo_4rk( kt )        ! Trajectories using a 4th order Runge Kutta scheme 
     
    6667      wb(:,:,:) = wn(:,:,:)         ! Save the old vertical velocity field 
    6768      ! 
    68       IF( nn_timing == 1 )   CALL timing_stop('flo_stp') 
     69      IF( ln_timing )   CALL timing_stop('flo_stp') 
    6970      ! 
    7071   END SUBROUTINE flo_stp 
     
    7778      !! ** Purpose :   Read the namelist of floats 
    7879      !!---------------------------------------------------------------------- 
    79       INTEGER :: jfl 
    80       INTEGER :: ios                 ! Local integer output status for namelist read 
     80      INTEGER ::   jfl 
     81      INTEGER ::   ios                 ! Local integer output status for namelist read 
    8182      ! 
    8283      NAMELIST/namflo/ jpnfl, jpnnewflo, ln_rstflo, nn_writefl, nn_stockfl, ln_argo, ln_flork4, ln_ariane, ln_flo_ascii 
    8384      !!--------------------------------------------------------------------- 
    84       ! 
    85       IF( nn_timing == 1 )   CALL timing_start('flo_init') 
    8685      ! 
    8786      IF(lwp) WRITE(numout,*) 
     
    125124      IF( flo_rst_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'flo_rst : unable to allocate arrays' ) 
    126125      ! 
    127       !memory allocation  
    128       jpnrstflo = jpnfl-jpnnewflo 
    129  
    130       !vertical axe for netcdf IOM ouput 
    131       DO jfl=1,jpnfl ; nfloat(jfl)=jfl ; ENDDO 
    132  
     126      jpnrstflo = jpnfl-jpnnewflo   ! memory allocation  
     127      ! 
     128      DO jfl = 1, jpnfl             ! vertical axe for netcdf IOM ouput 
     129         nfloat(jfl) = jfl  
     130      END DO 
    133131      ! 
    134132      CALL flo_dom                  ! compute/read initial position of floats 
    135  
     133      ! 
    136134      wb(:,:,:) = wn(:,:,:)         ! set wb for computation of floats trajectories at the first time step 
    137       ! 
    138       IF( nn_timing == 1 )   CALL timing_stop('flo_init') 
    139135      ! 
    140136   END SUBROUTINE flo_init 
Note: See TracChangeset for help on using the changeset viewer.