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/OPA_SRC/OBS/obs_inter_sup.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/OPA_SRC/OBS/obs_inter_sup.F90

    r2715 r3294  
    1010   !!--------------------------------------------------------------------- 
    1111   !! * Modules used 
     12   USE wrk_nemo        ! Memory Allocation 
    1213   USE par_kind        ! Precision variables 
    1314   USE dom_oce         ! Domain variables 
     
    105106      !!        !  08-02  (K. Mogensen)  Original code 
    106107      !!---------------------------------------------------------------------- 
    107       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    108       USE wrk_nemo, ONLY: wrk_3d_1 
    109108      !! 
    110109      !! * Arguments 
     
    122121         & pgval            ! Stencil at each point 
    123122      !! * Local declarations 
    124       REAL(KIND=wp), POINTER, DIMENSION(:,:,:) :: & 
    125          & zval 
     123      REAL(KIND=wp), POINTER, DIMENSION(:,:,:) ::   zval 
    126124      REAL(KIND=wp), DIMENSION(kptsi,kptsj,1,kobs) ::& 
    127125         & zgval  
    128126 
    129127      ! Check workspace array and set-up pointer 
    130       IF(wrk_in_use(3, 1))THEN 
    131          CALL ctl_stop('obs_int_comm_2d : requested workspace array unavailable.') 
    132          RETURN 
    133       END IF 
    134       zval => wrk_3d_1(:,:,1:1) 
     128      CALL wrk_alloc(jpi,jpj,1,zval)  
    135129 
    136130      ! Set up local "3D" buffer 
     
    156150 
    157151      ! 'Release' workspace array back to pool 
    158       IF(wrk_not_released(3, 1))THEN 
    159          CALL ctl_stop('obs_int_comm_2d : failed to release workspace array.') 
    160       END IF 
     152      CALL wrk_dealloc(jpi,jpj,1,zval)  
    161153 
    162154   END SUBROUTINE obs_int_comm_2d 
Note: See TracChangeset for help on using the changeset viewer.