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 1270 for trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90 – NEMO

Ignore:
Timestamp:
2009-01-14T19:35:02+01:00 (15 years ago)
Author:
rblod
Message:

Light bug in blk_ice, see ticket #289

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90

    r1269 r1270  
    3030   USE prtctl          ! Print control 
    3131#if defined key_lim3 
    32    USE par_ice 
    3332   USE ice 
    3433   USE ice_oce         ! For ice surface temperature 
    3534#elif defined key_lim2 
    36    USE par_ice_2 
    3735   USE ice_2 
    3836#endif 
     
    414412      &                      p_qla , p_dqns, p_dqla,          & 
    415413      &                      p_tpr , p_spr ,                  & 
    416       &                      p_fr1 , p_fr2 , cd_grid  ) 
     414      &                      p_fr1 , p_fr2 , cd_grid, pdim  ) 
    417415      !!--------------------------------------------------------------------------- 
    418416      !!                     ***  ROUTINE blk_ice_clio  *** 
     
    452450      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_fr2    ! 2nd fraction of qsr penetration in ice         [%] 
    453451      CHARACTER(len=1), INTENT(in   )             ::   cd_grid  ! type of sea-ice grid ("C" or "B" grid) 
     452      INTEGER, INTENT(in   )                      ::   pdim     ! number of ice categories 
    454453      !! 
    455454      INTEGER  ::   ji, jj, jl    ! dummy loop indices 
     
    467466      REAL(wp), DIMENSION(jpi,jpj) ::   zevsqr  ! vapour pressure square-root 
    468467      REAL(wp), DIMENSION(jpi,jpj) ::   zrhoa   ! air density 
    469       REAL(wp), DIMENSION(jpi,jpj,SIZE(pst,3)) ::   z_qlw, z_qsb 
     468      REAL(wp), DIMENSION(jpi,jpj,pdim) ::   z_qlw, z_qsb 
    470469      !!--------------------------------------------------------------------- 
    471470 
    472       ijpl  = SIZE( pst, 3 )                 ! number of ice categories 
     471      ijpl  = pdim                           ! number of ice categories 
    473472      zpatm = 101000.                        ! atmospheric pressure  (assumed constant  here) 
    474473 
Note: See TracChangeset for help on using the changeset viewer.