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 9125 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/TRP/trcldf.F90 – NEMO

Ignore:
Timestamp:
2017-12-19T09:47:17+01:00 (6 years ago)
Author:
timgraham
Message:

Removed wrk_arrays from whole code. No change in SETTE results from this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/TRP/trcldf.F90

    r9124 r9125  
    7070      REAL(wp)           :: zdep 
    7171      CHARACTER (len=22) :: charout 
    72       REAL(wp), POINTER, DIMENSION(:,:,:)   ::   zahu, zahv 
     72      REAL(wp), DIMENSION(jpi,jpj,jpk)   ::   zahu, zahv 
    7373      REAL(wp), POINTER, DIMENSION(:,:,:,:) ::   ztrtrd 
    7474      !!---------------------------------------------------------------------- 
     
    7777      ! 
    7878      IF( l_trdtrc )  THEN 
    79          CALL wrk_alloc( jpi,jpj,jpk,jptra,   ztrtrd ) 
     79         ALLOCATE( ztrtrd(jpi,jpj,jpk,jptra) ) 
    8080         ztrtrd(:,:,:,:)  = tra(:,:,:,:) 
    8181      ENDIF 
    8282      !                                  !* set the lateral diffusivity coef. for passive tracer       
    83       CALL wrk_alloc( jpi,jpj,jpk,   zahu, zahv ) 
    8483      zahu(:,:,:) = rldf * ahtu(:,:,:)  
    8584      zahv(:,:,:) = rldf * ahtv(:,:,:) 
     
    113112           CALL trd_tra( kt, 'TRC', jn, jptra_ldf, ztrtrd(:,:,:,jn) ) 
    114113        END DO 
    115         CALL wrk_dealloc( jpi, jpj, jpk, jptra, ztrtrd ) 
     114        DEALLOCATE( ztrtrd ) 
    116115      ENDIF 
    117116      !                 
     
    121120         CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) 
    122121      ENDIF 
    123       ! 
    124       CALL wrk_dealloc( jpi,jpj,jpk,   zahu, zahv ) 
    125122      ! 
    126123      IF( ln_timing )   CALL timing_stop('trc_ldf') 
Note: See TracChangeset for help on using the changeset viewer.