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/trcrad.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/trcrad.F90

    r9124 r9125  
    139139      REAL(wp) :: ztrcorb, ztrmasb   ! temporary scalars 
    140140      REAL(wp) :: zcoef, ztrcorn, ztrmasn   !    "         " 
    141       REAL(wp), POINTER, DIMENSION(:,:,:) ::   ztrtrdb, ztrtrdn   ! workspace arrays 
     141      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::   ztrtrdb, ztrtrdn   ! workspace arrays 
    142142      REAL(wp) :: zs2rdt 
    143143      LOGICAL ::   lldebug = .FALSE. 
     
    145145 
    146146  
    147       IF( l_trdtrc )  CALL wrk_alloc( jpi, jpj, jpk, ztrtrdb, ztrtrdn ) 
     147      IF( l_trdtrc )  ALLOCATE( ztrtrdb(jpi,jpj,jpk), ztrtrdn(jpi,jpj,jpk) ) 
    148148       
    149149      IF( PRESENT( cpreserv )  ) THEN   !  total tracer concentration is preserved  
     
    226226      ENDIF 
    227227 
    228       IF( l_trdtrc )  CALL wrk_dealloc( jpi, jpj, jpk, ztrtrdb, ztrtrdn ) 
     228      IF( l_trdtrc )  DEALLOCATE( ztrtrdb, ztrtrdn ) 
    229229 
    230230   END SUBROUTINE trc_rad_sms 
Note: See TracChangeset for help on using the changeset viewer.