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 3294 for trunk/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90 – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90

    r2715 r3294  
    1919   USE in_out_manager  ! I/O manager 
    2020   USE lib_mpp         ! MPP library 
     21   USE wrk_nemo        ! work arrays 
    2122 
    2223   IMPLICIT NONE 
     
    6566      !! References :   Shine and Hendersson-Sellers 1985, JGR, 90(D1), 2243-2250. 
    6667      !!---------------------------------------------------------------------- 
    67       USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
    68       USE wrk_nemo, ONLY:   wrk_3d_6 , wrk_3d_7    ! 3D workspace 
    69       !! 
    7068      REAL(wp), INTENT(in   ), DIMENSION(:,:,:) ::   pt_ice      !  ice surface temperature (Kelvin) 
    7169      REAL(wp), INTENT(in   ), DIMENSION(:,:,:) ::   ph_ice      !  sea-ice thickness 
     
    9189      ijpl = SIZE( pt_ice, 3 )                     ! number of ice categories 
    9290 
    93       IF( wrk_in_use(3, 6,7) ) THEN 
    94          CALL ctl_stop('albedo_ice: requested workspace arrays are unavailable')   ;   RETURN 
    95       ENDIF 
    96       ! Associate pointers with sub-arrays of workspace arrays 
    97       zalbfz  =>   wrk_3d_6(:,:,1:ijpl) 
    98       zficeth =>   wrk_3d_7(:,:,1:ijpl) 
     91      CALL wrk_alloc( jpi,jpj,ijpl, zalbfz, zficeth ) 
    9992 
    10093      IF( albd_init == 0 )   CALL albedo_init      ! initialization  
     
    173166      pa_ice_os(:,:,:) = pa_ice_cs(:,:,:) + rn_cloud       ! Oberhuber correction 
    174167      ! 
    175       IF( wrk_not_released(3, 6,7) )   CALL ctl_stop('albedo_ice: failed to release workspace arrays') 
     168      CALL wrk_dealloc( jpi,jpj,ijpl, zalbfz, zficeth ) 
    176169      ! 
    177170   END SUBROUTINE albedo_ice 
Note: See TracChangeset for help on using the changeset viewer.