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/diaobs.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/diaobs.F90

    r2977 r3183  
    1616   !!---------------------------------------------------------------------- 
    1717   !! * Modules used    
     18   USE wrk_nemo_2               ! Memory Allocation 
    1819   USE par_kind                 ! Precision variables 
    1920   USE in_out_manager           ! I/O manager 
     
    10181019         & frld 
    10191020#endif 
    1020       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    1021 #if ! defined key_ice_lim 
    1022       USE wrk_nemo, ONLY: frld => wrk_2d_1 
    1023 #endif 
    10241021      IMPLICIT NONE 
    10251022 
     
    10341031      INTEGER :: jveloset               ! velocity profile data loop variable 
    10351032      INTEGER :: jvar                   ! Variable number     
     1033#if ! defined key_ice_lim 
     1034      REAL(wp), POINTER, DIMENSION(:,:) :: frld    
     1035#endif 
    10361036      CHARACTER(LEN=20) :: datestr=" ",timestr=" " 
    10371037  
    10381038#if ! defined key_ice_lim 
    1039       IF(wrk_in_use(2, 1))THEN 
    1040          CALL ctl_stop('dia_obs : requested workspace array unavailable.') 
    1041          RETURN 
    1042       END IF 
     1039      CALL wrk_alloc(jpi,jpj,frld)  
    10431040#endif 
    10441041 
     
    11231120 
    11241121#if ! defined key_ice_lim 
    1125       IF(wrk_not_released(2, 1))THEN 
    1126          CALL ctl_stop('dia_obs : failed to release workspace array.') 
    1127       END IF 
     1122      CALL wrk_dealloc(jpi,jpj,frld)  
    11281123#endif 
    11291124 
Note: See TracChangeset for help on using the changeset viewer.