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 3152 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_lim.F90 – NEMO

Ignore:
Timestamp:
2011-11-18T10:19:26+01:00 (12 years ago)
Author:
smasson
Message:

dev_NEMO_MERGE_2011: new dynamical allocation in IOM and SBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_lim.F90

    r2777 r3152  
    5050   USE lbclnk          ! lateral boundary condition - MPP link 
    5151   USE lib_mpp         ! MPP library 
     52   USE wrk_nemo_2      ! work arrays 
    5253   USE iom             ! I/O manager library 
    5354   USE in_out_manager  ! I/O manager 
     
    8990      !!                utau, vtau, taum, wndm, qns , qsr, emp , emps 
    9091      !!--------------------------------------------------------------------- 
    91       USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
    92       USE wrk_nemo, ONLY:   wrk_3d_1, wrk_3d_2   ! for albedo of ice under overcast/clear sky 
    93       !! 
    9492      INTEGER, INTENT(in) ::   kt      ! ocean time step 
    9593      INTEGER, INTENT(in) ::   kblk    ! type of bulk (=3 CLIO, =4 CORE) 
     
    10098      !!---------------------------------------------------------------------- 
    10199 
    102       IF( wrk_in_use(3, 1,2) ) THEN 
    103          CALL ctl_stop( 'sbc_ice_lim: requested workspace arrays are unavailable' )   ;   RETURN 
    104       ENDIF 
    105       zalb_ice_os => wrk_3d_1(:,:,1:jpl)   ;    zalb_ice_cs => wrk_3d_2(:,:,1:jpl) 
     100      CALL wrk_alloc( jpi,jpj,jpl, zalb_ice_os, zalb_ice_cs ) 
    106101 
    107102      IF( kt == nit000 ) THEN 
     
    253248!!gm   remark, the ocean-ice stress is not saved in ice diag call above .....  find a solution!!! 
    254249      ! 
    255       IF( wrk_not_released(3, 1,2) )   CALL ctl_stop( 'sbc_ice_lim: failed to release workspace arrays' ) 
     250      CALL wrk_dealloc( jpi,jpj,jpl, zalb_ice_os, zalb_ice_cs ) 
    256251      ! 
    257252   END SUBROUTINE sbc_ice_lim 
Note: See TracChangeset for help on using the changeset viewer.