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

Ignore:
Timestamp:
2017-04-13T16:21:08+02:00 (7 years ago)
Author:
timgraham
Message:

All wrk_alloc removed

File:
1 edited

Legend:

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

    r5134 r7910  
    2929   USE in_out_manager ! I/O manager 
    3030   USE lib_mpp        ! MPP library 
    31    USE wrk_nemo       ! work arrays 
    3231   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)   
    3332 
     
    7675      INTEGER  :: jk0, jk1   !  old/new layer indices 
    7776      ! 
    78       REAL(wp), POINTER, DIMENSION(:,:) :: zqh_cum0, zh_cum0   ! old cumulative enthlapies and layers interfaces 
    79       REAL(wp), POINTER, DIMENSION(:,:) :: zqh_cum1, zh_cum1   ! new cumulative enthlapies and layers interfaces 
    80       REAL(wp), POINTER, DIMENSION(:)   :: zhnew               ! new layers thicknesses 
     77      REAL(wp), DIMENSION(jpij,0:nlay_i+2) :: zqh_cum0, zh_cum0   ! old cumulative enthlapies and layers interfaces 
     78      REAL(wp), DIMENSION(jpij,0:nlay_i) :: zqh_cum1, zh_cum1   ! new cumulative enthlapies and layers interfaces 
     79      REAL(wp), DIMENSION(jpij)   :: zhnew               ! new layers thicknesses 
    8180      !!------------------------------------------------------------------- 
    8281 
    83       CALL wrk_alloc( jpij, nlay_i+3, zqh_cum0, zh_cum0, kjstart = 0 ) 
    84       CALL wrk_alloc( jpij, nlay_i+1, zqh_cum1, zh_cum1, kjstart = 0 ) 
    85       CALL wrk_alloc( jpij, zhnew ) 
    8682 
    8783      !-------------------------------------------------------------------------- 
     
    146142       
    147143      ! 
    148       CALL wrk_dealloc( jpij, nlay_i+3, zqh_cum0, zh_cum0, kjstart = 0 ) 
    149       CALL wrk_dealloc( jpij, nlay_i+1, zqh_cum1, zh_cum1, kjstart = 0 ) 
    150       CALL wrk_dealloc( jpij, zhnew ) 
    151144      ! 
    152145   END SUBROUTINE lim_thd_ent 
Note: See TracChangeset for help on using the changeset viewer.