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

    r2474 r2715  
    3939   USE obs_types                ! Definitions for observation types 
    4040   USE mpp_map                  ! MPP mapping 
     41   USE lib_mpp                  ! For ctl_warn/stop 
    4142 
    4243   IMPLICIT NONE 
     
    10261027         & frld 
    10271028#endif 
    1028  
     1029      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
     1030#if ! defined key_ice_lim 
     1031      USE wrk_nemo, ONLY: frld => wrk_2d_1 
     1032#endif 
    10291033      IMPLICIT NONE 
    10301034 
     
    10321036      INTEGER, INTENT(IN) :: kstp                         ! Current timestep 
    10331037      !! * Local declarations 
    1034 #if ! defined key_ice_lim 
    1035       REAL(wp), DIMENSION(jpi,jpj) :: frld 
    1036 #endif 
    10371038      INTEGER :: idaystp                ! Number of timesteps per day 
    10381039      INTEGER :: jprofset               ! Profile data set loop variable 
     
    10441045      CHARACTER(LEN=20) :: datestr=" ",timestr=" " 
    10451046  
     1047#if ! defined key_ice_lim 
     1048      IF(wrk_in_use(2, 1))THEN 
     1049         CALL ctl_stop('dia_obs : requested workspace array unavailable.') 
     1050         RETURN 
     1051      END IF 
     1052#endif 
     1053 
    10461054      IF(lwp) THEN 
    10471055         WRITE(numout,*) 
     
    11211129      ENDIF 
    11221130 
     1131#if ! defined key_ice_lim 
     1132      IF(wrk_not_released(2, 1))THEN 
     1133         CALL ctl_stop('dia_obs : failed to release workspace array.') 
     1134      END IF 
     1135#endif 
     1136 
    11231137   END SUBROUTINE dia_obs 
    11241138   
Note: See TracChangeset for help on using the changeset viewer.