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 3183 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_altbias.F90 – NEMO

Ignore:
Timestamp:
2011-11-25T16:31:02+01:00 (13 years ago)
Author:
davestorkey
Message:

Update dynamic allocation in OBS and ASM modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_altbias.F90

    r2715 r3183  
    3333   USE obs_utils               ! Various observation tools 
    3434   USE obs_inter_sup 
     35   USE wrk_nemo_2              ! Memory Allocation 
    3536 
    3637   IMPLICIT NONE 
     
    6768      !! * Modules used 
    6869      USE iom 
    69       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    70       USE wrk_nemo, ONLY: z_altbias => wrk_2d_1   ! Array to store the alt bias values 
    7170      ! 
    7271      !! * Arguments 
     
    102101         & zglam, & 
    103102         & zgphi 
     103      REAL(wp), POINTER, DIMENSION(:,:) :: & 
     104         & z_altbias 
    104105      REAL(wp) :: zlam 
    105106      REAL(wp) :: zphi 
     
    109110      INTEGER :: numaltbias 
    110111 
    111       IF(wrk_in_use(2, 1))THEN 
    112          CALL ctl_stop('obs_rea_altbias : requested workspace array unavailable.') 
    113          RETURN 
    114       END IF 
     112      CALL wrk_alloc(jpi,jpj,z_altbias)  
    115113 
    116114      IF(lwp)WRITE(numout,*)  
     
    211209      END DO 
    212210 
    213       IF(wrk_not_released(2, 1))THEN 
    214          CALL ctl_stop('obs_rea_altbias : failed to release workspace array.') 
    215       END IF 
     211      CALL wrk_dealloc(jpi,jpj,z_altbias)  
    216212 
    217213   END SUBROUTINE obs_rea_altbias 
Note: See TracChangeset for help on using the changeset viewer.