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

    r2287 r2715  
    6767      !! * Modules used 
    6868      USE iom 
    69  
     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 
     71      ! 
    7072      !! * Arguments 
    7173      INTEGER, INTENT(IN) :: kslano      ! Number of SLA Products 
     
    9092      INTEGER :: i_var_id 
    9193 
    92       REAL(wp), DIMENSION(jpi,jpj) :: &  
    93          & z_altbias           ! Array to store the alt bias values 
    9494      REAL(wp), DIMENSION(1) :: & 
    9595         & zext, & 
     
    109109      INTEGER :: numaltbias 
    110110 
     111      IF(wrk_in_use(2, 1))THEN 
     112         CALL ctl_stop('obs_rea_altbias : requested workspace array unavailable.') 
     113         RETURN 
     114      END IF 
     115 
    111116      IF(lwp)WRITE(numout,*)  
    112117      IF(lwp)WRITE(numout,*) ' obs_rea_altbias : ' 
     
    206211      END DO 
    207212 
     213      IF(wrk_not_released(2, 1))THEN 
     214         CALL ctl_stop('obs_rea_altbias : failed to release workspace array.') 
     215      END IF 
     216 
    208217   END SUBROUTINE obs_rea_altbias 
    209218 
Note: See TracChangeset for help on using the changeset viewer.