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/TOP_SRC/LOBSTER/trcopt.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/TOP_SRC/LOBSTER/trcopt.F90

    r2528 r2715  
    5252      !!                xze    ??? 
    5353      !!--------------------------------------------------------------------- 
     54      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
     55      USE wrk_nemo, ONLY: zpar100 => wrk_2d_1, & ! irradiance at euphotic layer depth 
     56                          zpar0m  => wrk_2d_2    ! irradiance just below the surface 
     57      USE wrk_nemo, ONLY: zparr => wrk_3d_2, &   ! red and green compound of par 
     58                          zparg => wrk_3d_3 
     59      !! 
    5460      INTEGER, INTENT( in ) ::   kt   ! index of the time stepping 
    5561      !! 
     
    5965      REAL(wp) ::   zkr, zkg            ! total absorption coefficient in red and green 
    6066      REAL(wp) ::   zcoef               ! temporary scalar 
    61       REAL(wp), DIMENSION(jpi,jpj)     ::   zpar100         ! irradiance at euphotic layer depth 
    62       REAL(wp), DIMENSION(jpi,jpj)     ::   zpar0m          ! irradiance just below the surface 
    63       REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zparr, zparg    ! red and green compound of par 
    6467 
    6568      !!--------------------------------------------------------------------- 
     69 
     70      IF( ( wrk_in_use(2, 1,2)) .OR. ( wrk_in_use(3, 2,3)) )THEN 
     71         CALL ctl_stop('trc_opt : requested workspace arrays unavailable')   ;   RETURN 
     72      END IF 
    6673 
    6774      IF( kt == nit000 ) THEN 
     
    130137      ENDIF 
    131138      ! 
     139      IF( wrk_not_released(2, 1,2)  .OR.  wrk_not_released(3, 2,3)  )   & 
     140          CALL ctl_stop('trc_opt : failed to release workspace arrays') 
     141      ! 
    132142   END SUBROUTINE trc_opt 
    133143 
Note: See TracChangeset for help on using the changeset viewer.