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 11467 for NEMO/branches/UKMO/dev_r10037_GPU/src/OCE/TRA/trasbc.F90 – NEMO

Ignore:
Timestamp:
2019-08-22T11:49:08+02:00 (5 years ago)
Author:
andmirek
Message:

Ticket #2197 allocate arrays at the beggining of the run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/dev_r10037_GPU/src/OCE/TRA/trasbc.F90

    r10843 r11467  
    7373      !!              - send trends to trdtra module for further diagnostics(l_trdtra=T) 
    7474      !!---------------------------------------------------------------------- 
     75      USE scoce, ONLY : ztrdt => scr1, ztrds => scr2 
    7576      INTEGER, INTENT(in) ::   kt   ! ocean time-step index 
    7677      ! 
     
    7879      INTEGER  ::   ikt, ikb                    ! local integers 
    7980      REAL(wp) ::   zfact, z1_e3t, zdep, ztim   ! local scalar 
    80       REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::  ztrdt, ztrds 
    8181      !!---------------------------------------------------------------------- 
    8282      ! 
     
    9090      ! 
    9191      IF( l_trdtra ) THEN                    !* Save ta and sa trends 
    92          ALLOCATE( ztrdt(jpi,jpj,jpk) , ztrds(jpi,jpj,jpk) )  
    9392         ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 
    9493         ztrds(:,:,:) = tsa(:,:,:,jp_sal) 
     
    276275         CALL trd_tra( kt, 'TRA', jp_tem, jptra_nsr, ztrdt ) 
    277276         CALL trd_tra( kt, 'TRA', jp_sal, jptra_nsr, ztrds ) 
    278          DEALLOCATE( ztrdt , ztrds )  
    279277      ENDIF 
    280278      ! 
Note: See TracChangeset for help on using the changeset viewer.