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 2715 for trunk/NEMOGCM/NEMO/LIM_SRC_2/limmsh_2.F90 – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/LIM_SRC_2/limmsh_2.F90

    r2528 r2715  
    1919   USE lbclnk 
    2020   USE in_out_manager 
     21   USE lib_mpp          ! MPP library 
    2122 
    2223   IMPLICIT NONE 
     
    4546      !! ** Refer.  : Deleersnijder et al. Ocean Modelling 100, 7-10  
    4647      !!---------------------------------------------------------------------  
     48      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
     49      USE wrk_nemo, ONLY: zd2d1 => wrk_2d_1, zd1d2 => wrk_2d_2 
    4750      INTEGER :: ji, jj      ! dummy loop indices 
    4851      REAL(wp) ::   zusden   ! local scalars 
     
    5154      REAL(wp) ::   zh1p  , zh2p      !   -      - 
    5255      REAL(wp) ::   zd2d1p, zd1d2p    !   -      - 
    53       REAL(wp), DIMENSION(jpi,jpj) ::   zd2d1 , zd1d2   ! 2D workspace 
    5456#endif 
    5557      !!--------------------------------------------------------------------- 
     58 
     59      IF( wrk_in_use(2, 1,2) ) THEN 
     60         CALL ctl_stop('lim_msh_2 : requested workspace arrays unavailable')   ;   RETURN 
     61      ENDIF 
    5662 
    5763      IF(lwp) THEN 
     
    275281      area(:,:) = e1t(:,:) * e2t(:,:) 
    276282      ! 
     283      IF( wrk_not_released(2, 1,2) )   CALL ctl_stop('lim_msh_2 : failed to release workspace arrays') 
     284      ! 
    277285   END SUBROUTINE lim_msh_2 
    278286 
Note: See TracChangeset for help on using the changeset viewer.