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 2599 – NEMO

Changeset 2599


Ignore:
Timestamp:
2011-02-20T16:02:36+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; LIM-3 case: DOCTOR norm alb_ice.. changed in zalb_ice...

File:
1 edited

Legend:

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

    r2590 r2599  
    44   !! Surface module :  update the ocean surface boundary condition over ice 
    55   !!       &           covered area using LIM sea-ice model 
    6    !! Sea-Ice model  :  LIM 3.0 Sea ice model time-stepping 
     6   !! Sea-Ice model  :  LIM-3 Sea ice model time-stepping 
    77   !!===================================================================== 
    88   !! History :  2.0  ! 2006-12  (M. Vancoppenolle) Original code 
     
    1010   !!             -   ! 2008-04  (G. Madec)  sltyle and lim_ctl routine 
    1111   !!            3.3  ! 2010-11  (G. Madec) ice-ocean stress always computed at each ocean time-step 
     12   !!            4.0  ! 2011-01  (A Porter)  dynamical allocation 
    1213   !!---------------------------------------------------------------------- 
    1314#if defined key_lim3 
     
    6263#  include "vectopt_loop_substitute.h90" 
    6364   !!---------------------------------------------------------------------- 
    64    !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
     65   !! NEMO/OPA 4.0 , UCL NEMO Consortium (2010) 
    6566   !! $Id$ 
    6667   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    8990      !!--------------------------------------------------------------------- 
    9091      USE wrk_nemo, ONLY: wrk_use, wrk_release 
    91       USE wrk_nemo, ONLY: alb_ice_os => wrk_3d_1 ! albedo of the ice under overcast sky 
    92       USE wrk_nemo, ONLY: alb_ice_os => wrk_3d_2 ! albedo of ice under clear sky 
     92      USE wrk_nemo, ONLY: zalb_ice_os => wrk_3d_1 ! albedo of the ice under overcast sky 
     93      USE wrk_nemo, ONLY: zalb_ice_cs => wrk_3d_2 ! albedo of ice under clear sky 
    9394      !! 
    9495      INTEGER, INTENT(in) ::   kt      ! ocean time step 
     
    99100      !!---------------------------------------------------------------------- 
    100101 
    101       IF(.NOT. wrk_use(3, 1,2))THEN 
    102          CALL ctl_stop('sbc_ice_lim: requested workspace arrays are unavailable.') 
    103          RETURN 
    104       ELSE IF(jpl > jpk)THEN 
    105          CALL ctl_stop('sbc_ice_lim: extent of 3rd dimension of workspace arrays needs to exceed jpk.') 
    106          RETURN 
    107       END IF 
     102      IF( .NOT. wrk_use(3, 1,2) ) THEN 
     103         CALL ctl_stop( 'sbc_ice_lim: requested workspace arrays are unavailable.' )   ;   RETURN 
     104      ELSEIF( jpl > jpk ) THEN 
     105         CALL ctl_stop( 'sbc_ice_lim: extent of 3rd dimension of workspace arrays needs to exceed jpk.' )   ;   RETURN 
     106      ENDIF 
    108107 
    109108      IF( kt == nit000 ) THEN 
     
    131130         t_bo(:,:) = tfreez( sss_m ) +  rt0          ! masked sea surface freezing temperature [Kelvin] 
    132131         !                                           ! (set to rt0 over land) 
    133          CALL albedo_ice( t_su, ht_i, ht_s, alb_ice_cs, alb_ice_os )  ! ... ice albedo 
     132         CALL albedo_ice( t_su, ht_i, ht_s, zalb_ice_cs, zalb_ice_os )  ! ... ice albedo 
    134133 
    135134         DO jl = 1, jpl 
     
    146145         SELECT CASE( kblk ) 
    147146         CASE( 3 )                                       ! CLIO bulk formulation 
    148             CALL blk_ice_clio( t_su , alb_ice_cs, alb_ice_os,                           & 
     147            CALL blk_ice_clio( t_su , zalb_ice_cs, zalb_ice_os,                           & 
    149148               &                      utau_ice  , vtau_ice  , qns_ice   , qsr_ice   ,   & 
    150149               &                      qla_ice   , dqns_ice  , dqla_ice  ,               & 
     
    153152            !          
    154153         CASE( 4 )                                       ! CORE bulk formulation 
    155             CALL blk_ice_core( t_su , u_ice     , v_ice     , alb_ice_cs,               & 
     154            CALL blk_ice_core( t_su , u_ice     , v_ice     , zalb_ice_cs,               & 
    156155               &                      utau_ice  , vtau_ice  , qns_ice   , qsr_ice   ,   & 
    157156               &                      qla_ice   , dqns_ice  , dqla_ice  ,               & 
     
    255254!!gm   remark, the ocean-ice stress is not saved in ice diag call above .....  find a solution!!! 
    256255      ! 
    257       IF(.NOT. wrk_release(3, 1,2))THEN 
    258          CALL ctl_stop('sbc_ice_lim: failed to release workspace arrays.') 
     256      IF( .NOT. wrk_release(3, 1,2) ) THEN 
     257         CALL ctl_stop( 'sbc_ice_lim: failed to release workspace arrays.' ) 
    259258      END IF 
    260259      ! 
     
    277276 
    278277      inb_altests = 10 
    279       inb_alp(:) = 0 
     278      inb_alp(:)  = 0 
    280279 
    281280      ! Alert if incompatible volume and concentration 
Note: See TracChangeset for help on using the changeset viewer.