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 3294 for trunk/NEMOGCM/NEMO/OPA_SRC/TRA/trabbc.F90 – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/TRA/trabbc.F90

    r2715 r3294  
    2222   USE in_out_manager  ! I/O manager 
    2323   USE prtctl          ! Print control 
     24   USE wrk_nemo        ! Memory Allocation 
     25   USE timing          ! Timing 
    2426 
    2527   IMPLICIT NONE 
     
    7173      INTEGER  ::   ji, jj, ik    ! dummy loop indices 
    7274      REAL(wp) ::   zqgh_trd      ! geothermal heat flux trend 
    73       REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   ztrdt 
     75      REAL(wp), POINTER, DIMENSION(:,:,:) ::   ztrdt 
    7476      !!---------------------------------------------------------------------- 
    7577      ! 
     78      IF( nn_timing == 1 )  CALL timing_start('tra_bbc') 
     79      ! 
    7680      IF( l_trdtra )   THEN         ! Save ta and sa trends 
    77          ALLOCATE( ztrdt(jpi,jpj,jpk) )     ;   ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 
     81         CALL wrk_alloc( jpi, jpj, jpk, ztrdt ) 
     82         ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 
    7883      ENDIF 
    7984      ! 
     
    95100         ztrdt(:,:,:) = tsa(:,:,:,jp_tem) - ztrdt(:,:,:) 
    96101         CALL trd_tra( kt, 'TRA', jp_tem, jptra_trd_bbc, ztrdt ) 
    97          DEALLOCATE( ztrdt ) 
     102         CALL wrk_dealloc( jpi, jpj, jpk, ztrdt ) 
    98103      ENDIF 
    99104      ! 
    100105      IF(ln_ctl)   CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' bbc  - Ta: ', mask1=tmask, clinfo3='tra-ta' ) 
     106      ! 
     107      IF( nn_timing == 1 )  CALL timing_stop('tra_bbc') 
    101108      ! 
    102109   END SUBROUTINE tra_bbc 
Note: See TracChangeset for help on using the changeset viewer.