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 3294 for trunk/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90 – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90

    r2715 r3294  
    3636   USE lbclnk          ! lateral boundary condition - MPP links 
    3737   USE lib_mpp         ! MPP library 
     38   USE wrk_nemo        ! work arrays 
    3839   USE in_out_manager  ! I/O manager 
    3940   USE prtctl          ! Print control 
     
    8182      !! ** References : H. Goosse et al. 1996, Bul. Soc. Roy. Sc. Liege, 65, 87-90 
    8283      !!--------------------------------------------------------------------- 
    83       USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
    84       USE wrk_nemo, ONLY:   zqlbsbq => wrk_2d_1   ! 2D workspace 
    85       ! 
    8684      INTEGER, INTENT(in) ::   kt    ! number of iteration 
    8785      !! 
     
    9290      REAL(wp) ::   zinda, zindb, zthsnice, zfric_u     ! local scalar 
    9391      REAL(wp) ::   zfntlat, zpareff, zareamin, zcoef   !    -         - 
     92      REAL(wp), POINTER, DIMENSION(:,:) ::   zqlbsbq   ! link with lead energy budget qldif 
    9493      !!------------------------------------------------------------------- 
    9594 
    96       IF( wrk_in_use(2, 1) ) THEN 
    97          CALL ctl_stop( 'lim_thd : requested workspace arrays unavailable' )   ;   RETURN 
    98       ENDIF 
     95      CALL wrk_alloc( jpi, jpj, zqlbsbq ) 
    9996    
    10097      !------------------------------------------------------------------------------! 
     
    458455      ENDIF 
    459456      ! 
    460       IF( wrk_not_released(2, 1) )   CALL ctl_stop( 'lim_thd: failed to release workspace arrays' ) 
     457      CALL wrk_dealloc( jpi, jpj, zqlbsbq ) 
    461458      ! 
    462459   END SUBROUTINE lim_thd 
Note: See TracChangeset for help on using the changeset viewer.