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 3160 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/TRP/trcldf.F90 – NEMO

Ignore:
Timestamp:
2011-11-20T15:27:18+01:00 (12 years ago)
Author:
cetlod
Message:

Add timing in TOP routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/TRP/trcldf.F90

    r3118 r3160  
    5858      INTEGER            :: jn 
    5959      CHARACTER (len=22) :: charout 
    60       REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE ::   ztrtrd 
    61       !!---------------------------------------------------------------------- 
    62  
     60      REAL(wp), POINTER, DIMENSION(:,:,:,:) ::   ztrtrd 
     61      !!---------------------------------------------------------------------- 
     62      ! 
     63      IF( nn_timing == 1 )   CALL timing_start('trc_ldf') 
     64      ! 
    6365      IF( kt == nittrc000 )   CALL ldf_ctl          ! initialisation & control of options 
    6466 
     
    6668 
    6769      IF( l_trdtrc )  THEN 
    68          ALLOCATE( ztrtrd(jpi,jpj,jpk,jptra) )  ! temporary save of trends 
     70         CALL wrk_alloc( jpi, jpj, jpk, jptra, ztrtrd ) 
    6971         ztrtrd(:,:,:,:)  = tra(:,:,:,:) 
    7072      ENDIF 
     
    105107           CALL trd_tra( kt, 'TRC', jn, jptra_trd_ldf, ztrtrd(:,:,:,jn) ) 
    106108        END DO 
    107         DEALLOCATE( ztrtrd ) 
     109        CALL wrk_dealloc( jpi, jpj, jpk, jptra, ztrtrd ) 
    108110      ENDIF 
    109111      !                                          ! print mean trends (used for debugging) 
     
    112114                                           CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) 
    113115      ENDIF 
     116      ! 
     117      IF( nn_timing == 1 )   CALL timing_stop('trc_ldf') 
    114118      ! 
    115119   END SUBROUTINE trc_ldf 
Note: See TracChangeset for help on using the changeset viewer.