Changeset 3294 for trunk/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90
- Timestamp:
- 2012-01-28T17:44:18+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90
r2715 r3294 19 19 USE in_out_manager ! I/O manager 20 20 USE lib_mpp ! MPP library 21 USE wrk_nemo ! work arrays 21 22 22 23 IMPLICIT NONE … … 65 66 !! References : Shine and Hendersson-Sellers 1985, JGR, 90(D1), 2243-2250. 66 67 !!---------------------------------------------------------------------- 67 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released68 USE wrk_nemo, ONLY: wrk_3d_6 , wrk_3d_7 ! 3D workspace69 !!70 68 REAL(wp), INTENT(in ), DIMENSION(:,:,:) :: pt_ice ! ice surface temperature (Kelvin) 71 69 REAL(wp), INTENT(in ), DIMENSION(:,:,:) :: ph_ice ! sea-ice thickness … … 91 89 ijpl = SIZE( pt_ice, 3 ) ! number of ice categories 92 90 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 ) 99 92 100 93 IF( albd_init == 0 ) CALL albedo_init ! initialization … … 173 166 pa_ice_os(:,:,:) = pa_ice_cs(:,:,:) + rn_cloud ! Oberhuber correction 174 167 ! 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 ) 176 169 ! 177 170 END SUBROUTINE albedo_ice
Note: See TracChangeset
for help on using the changeset viewer.