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 8373 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limthd_ent.F90 – NEMO

Ignore:
Timestamp:
2017-07-25T19:44:54+02:00 (7 years ago)
Author:
clem
Message:

remove most of wrk_alloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limthd_ent.F90

    r8342 r8373  
    7373      INTEGER  :: jk0, jk1   !  old/new layer indices 
    7474      ! 
    75       REAL(wp), POINTER, DIMENSION(:,:) :: zeh_cum0, zh_cum0   ! old cumulative enthlapies and layers interfaces 
    76       REAL(wp), POINTER, DIMENSION(:,:) :: zeh_cum1, zh_cum1   ! new cumulative enthlapies and layers interfaces 
    77       REAL(wp), POINTER, DIMENSION(:)   :: zhnew               ! new layers thicknesses 
     75      REAL(wp), DIMENSION(jpij,0:nlay_i+2) :: zeh_cum0, zh_cum0   ! old cumulative enthlapies and layers interfaces 
     76      REAL(wp), DIMENSION(jpij,0:nlay_i)  :: zeh_cum1, zh_cum1   ! new cumulative enthlapies and layers interfaces 
     77      REAL(wp), DIMENSION(jpij)            :: zhnew               ! new layers thicknesses 
    7878      !!------------------------------------------------------------------- 
    79  
    80       CALL wrk_alloc( jpij, nlay_i+3, zeh_cum0, zh_cum0, kjstart = 0 ) 
    81       CALL wrk_alloc( jpij, nlay_i+1, zeh_cum1, zh_cum1, kjstart = 0 ) 
    82       CALL wrk_alloc( jpij, zhnew ) 
    8379 
    8480      !-------------------------------------------------------------------------- 
     
    142138      END DO 
    143139       
    144       ! 
    145       CALL wrk_dealloc( jpij, nlay_i+3, zeh_cum0, zh_cum0, kjstart = 0 ) 
    146       CALL wrk_dealloc( jpij, nlay_i+1, zeh_cum1, zh_cum1, kjstart = 0 ) 
    147       CALL wrk_dealloc( jpij, zhnew ) 
    148       ! 
    149140   END SUBROUTINE lim_thd_ent 
    150141 
Note: See TracChangeset for help on using the changeset viewer.