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_rot_vel.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_rot_vel.F90

    r2287 r2715  
    5555      !!---------------------------------------------------------------------- 
    5656      !! * Modules used 
    57     
     57      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released    
     58      USE wrk_nemo, ONLY: zsingu => wrk_2d_1, zcosgu => wrk_2d_2, & 
     59                          zsingv => wrk_2d_3, zcosgv => wrk_2d_4 
    5860      !! * Arguments 
    5961      TYPE(obs_prof), INTENT(INOUT) :: profdata    ! Profile data to be read 
     
    6365         & pv 
    6466      !! * Local declarations 
    65       REAL(wp), DIMENSION(jpi,jpj) :: & 
    66          & zsingu, & 
    67          & zcosgu, & 
    68          & zsingv, & 
    69          & zcosgv 
    7067      REAL(wp), DIMENSION(2,2,1) :: zweig 
    7168      REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: & 
     
    9693      INTEGER :: jk 
    9794 
     95      IF(wrk_in_use(2, 1,2,3,4))THEN 
     96         CALL ctl_stop('obs_rotvel : requested workspace arrays unavailable.') 
     97         RETURN 
     98      END IF 
     99 
    98100      !----------------------------------------------------------------------- 
    99101      ! Allocate data for message parsing and interpolation 
     
    227229         & ) 
    228230 
     231      IF(wrk_not_released(2, 1,2,3,4))THEN 
     232         CALL ctl_stop('obs_rotvel : failed to release workspace arrays.') 
     233      END IF 
     234 
    229235   END SUBROUTINE obs_rotvel 
    230236 
Note: See TracChangeset for help on using the changeset viewer.