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 14229 for NEMO/trunk/src/OCE/timing.F90 – NEMO

Ignore:
Timestamp:
2020-12-20T13:45:55+01:00 (3 years ago)
Author:
smasson
Message:

trunk: replace key_mpp_mpi by the opposite key key_mpi_off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/timing.F90

    r14072 r14229  
    3131   PUBLIC   timing_start, timing_stop      ! called in each routine to time 
    3232 
    33 #if defined key_mpp_mpi 
     33#if ! defined key_mpi_off 
    3434   INCLUDE 'mpif.h' 
    3535#endif 
     
    116116      CALL CPU_TIME( s_timer%t_cpu  ) 
    117117      ! clock time collection 
    118 #if defined key_mpp_mpi 
     118#if ! defined key_mpi_off 
    119119      s_timer%t_clock= MPI_Wtime() 
    120120#else 
     
    142142 
    143143      ! clock time collection 
    144 #if defined key_mpp_mpi 
     144#if ! defined key_mpi_off 
    145145      zmpitime = MPI_Wtime() 
    146146#else 
     
    166166 
    167167      ! clock time correction 
    168 #if defined key_mpp_mpi 
     168#if ! defined key_mpi_off 
    169169      zclock_raw = zmpitime - s_timer%t_clock - t_overclock ! total time including child 
    170170      s_timer%t_clock = zclock_raw - t_overclock - s_timer%tsub_clock 
     
    249249 
    250250      ! Compute clock function overhead 
    251 #if defined key_mpp_mpi 
     251#if ! defined key_mpi_off 
    252252      t_overclock = MPI_WTIME() 
    253253      t_overclock = MPI_WTIME() - t_overclock 
     
    274274 
    275275      CALL CPU_TIME(t_cpu(1)) 
    276 #if defined key_mpp_mpi 
     276#if ! defined key_mpi_off 
    277277      ! Start elapsed and CPU time counters 
    278278      t_elaps(1) = MPI_WTIME() 
     
    305305      CALL CPU_TIME(t_cpu(2)) 
    306306      t_cpu(2)   = t_cpu(2)    - t_cpu(1)   - t_overcpu 
    307 #if defined key_mpp_mpi 
     307#if ! defined key_mpi_off 
    308308      t_elaps(2) = MPI_WTIME() - t_elaps(1) - t_overclock 
    309309#else 
     
    336336      ENDIF 
    337337 
    338 #if defined key_mpp_mpi 
     338#if ! defined key_mpi_off 
    339339      ! in MPI gather some info 
    340340      ALLOCATE( all_etime(jpnij), all_ctime(jpnij) ) 
     
    360360      IF( lwriter ) WRITE(numtime,'(5x,f12.3,1x,f12.3)')  tot_etime, tot_ctime 
    361361      IF( lwriter ) WRITE(numtime,*) 
    362 #if defined key_mpp_mpi 
     362#if ! defined key_mpi_off 
    363363      IF( ll_averep ) CALL waver_info 
    364364      CALL wmpi_info 
     
    377377      &       czone(1:3),    czone(4:5) 
    378378 
    379 #if defined key_mpp_mpi 
     379#if ! defined key_mpi_off 
    380380      ALLOCATE(timing_glob(4*jpnij), stat=icode) 
    381381      CALL MPI_GATHER( (/compute_time, waiting_time(1), waiting_time(2), elapsed_time/),   & 
     
    458458   END SUBROUTINE wcurrent_info 
    459459 
    460 #if defined key_mpp_mpi 
     460#if ! defined key_mpi_off 
    461461   SUBROUTINE waver_info 
    462462      !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.