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 3139 – NEMO

Changeset 3139


Ignore:
Timestamp:
2011-11-16T17:11:51+01:00 (12 years ago)
Author:
rblod
Message:

Add timing module see ticket #829

Location:
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/IOM/in_out_manager.F90

    r3104 r3139  
    8787   !!---------------------------------------------------------------------- 
    8888   LOGICAL ::   ln_ctl     = .FALSE.   !: run control for debugging 
     89   INTEGER ::   nn_timing    =    0    !: run control for timing 
    8990   INTEGER ::   nn_print     =    0    !: level of print (0 no print) 
    9091   INTEGER ::   nn_ictls     =    0    !: Start i indice for the SUM control 
     
    106107   !!---------------------------------------------------------------------- 
    107108   INTEGER ::   numstp      =   -1      !: logical unit for time step 
     109   INTEGER ::   numtime     =   -1      !: logical unit for timing 
    108110   INTEGER ::   numout      =    6      !: logical unit for output print 
    109111   INTEGER ::   numnam      =   -1      !: logical unit for namelist 
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r3116 r3139  
    176176      ENDIF 
    177177      ! 
     178      IF( nn_timing == 1 )   CALL timing_finalize 
     179      ! 
    178180      CALL nemo_closefile 
    179181#if defined key_oasis3 || defined key_oasis4 
     
    197199      !! 
    198200      NAMELIST/namctl/ ln_ctl  , nn_print, nn_ictls, nn_ictle,   & 
    199          &             nn_isplt, nn_jsplt, nn_jctls, nn_jctle, nn_bench 
     201         &             nn_isplt, nn_jsplt, nn_jctls, nn_jctle,   & 
     202         &             nn_bench, nn_timing 
    200203      !!---------------------------------------------------------------------- 
    201204      ! 
     
    294297      ELSE                            ;   CALL mpp_init2     ! eliminate land processors 
    295298      ENDIF 
     299      ! 
     300      IF( nn_timing == 1 )  CALL timing_init 
    296301      ! 
    297302      !                                      ! General initialization 
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/step.F90

    r3116 r3139  
    266266      IF( lk_cpl           )   CALL sbc_cpl_snd( kstp )     ! coupled mode : field exchanges 
    267267      ! 
     268      IF( nn_timing == 1 .AND.  kstp == nit000  )   CALL timing_reset 
    268269      ! 
    269270   END SUBROUTINE stp 
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/step_oce.F90

    r3116 r3139  
    9595   USE diaobs           ! Observation operator 
    9696 
     97   USE timing           ! Timing             
     98 
    9799#if defined key_agrif 
    98100   USE agrif_opa_sponge ! Momemtum and tracers sponges 
Note: See TracChangeset for help on using the changeset viewer.