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

Changeset 1270


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

Light bug in blk_ice, see ticket #289

Location:
trunk/NEMO/OPA_SRC/SBC
Files:
4 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 
  • trunk/NEMO/OPA_SRC/SBC/sbcblk_core.F90

    r1242 r1270  
    3131   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    3232   USE prtctl          ! Print control 
    33 #if defined key_lim2 
    34    USE par_ice_2       ! For number of ice categories 
    35 #endif 
    3633#if defined key_lim3 
    37    USE par_ice         ! For number of ice categories 
    3834   USE ice_oce         ! For ice surface temperature 
    3935#endif 
     
    342338      &                      p_qla , p_dqns, p_dqla,          & 
    343339      &                      p_tpr , p_spr ,                  & 
    344       &                      p_fr1 , p_fr2 , cd_grid  )  
     340      &                      p_fr1 , p_fr2 , cd_grid, pdim  )  
    345341      !!--------------------------------------------------------------------- 
    346342      !!                     ***  ROUTINE blk_ice_core  *** 
     
    355351      !! caution : the net upward water flux has with mm/day unit 
    356352      !!--------------------------------------------------------------------- 
    357       REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj,jpl)  ::   pst      ! ice surface temperature (>0, =rt0 over land) [Kelvin] 
    358       REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj)      ::   pui      ! ice surface velocity (i- and i- components      [m/s] 
    359       REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj)      ::   pvi      !    at I-point (B-grid) or U & V-point (C-grid) 
    360       REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj,jpl)  ::   palb     ! ice albedo (clear sky) (alb_ice_cs)               [%] 
    361       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_taui   ! i- & j-components of surface ice stress        [N/m2] 
    362       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_tauj   !   at I-point (B-grid) or U & V-point (C-grid) 
    363       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_qns    ! non solar heat flux over ice (T-point)         [W/m2] 
    364       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_qsr    !     solar heat flux over ice (T-point)         [W/m2] 
    365       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_qla    ! latent    heat flux over ice (T-point)         [W/m2] 
    366       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_dqns   ! non solar heat sensistivity  (T-point)         [W/m2] 
    367       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_dqla   ! latent    heat sensistivity  (T-point)         [W/m2] 
    368       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_tpr    ! total precipitation          (T-point)      [Kg/m2/s] 
    369       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_spr    ! solid precipitation          (T-point)      [Kg/m2/s] 
    370       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_fr1    ! 1sr fraction of qsr penetration in ice (T-point)  [%] 
    371       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_fr2    ! 2nd fraction of qsr penetration in ice (T-point)  [%] 
    372       CHARACTER(len=1), INTENT(in   )                  ::   cd_grid  ! ice grid ( C or B-grid) 
     353      REAL(wp), INTENT(in   ), DIMENSION(:,:,:)      ::   pst      ! ice surface temperature (>0, =rt0 over land) [Kelvin] 
     354      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj)    ::   pui      ! ice surface velocity (i- and i- components      [m/s] 
     355      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj)    ::   pvi      !    at I-point (B-grid) or U & V-point (C-grid) 
     356      REAL(wp), INTENT(in   ), DIMENSION(:,:,:)      ::   palb     ! ice albedo (clear sky) (alb_ice_cs)               [%] 
     357      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)    ::   p_taui   ! i- & j-components of surface ice stress        [N/m2] 
     358      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)    ::   p_tauj   !   at I-point (B-grid) or U & V-point (C-grid) 
     359      REAL(wp), INTENT(  out), DIMENSION(:,:,:)      ::   p_qns    ! non solar heat flux over ice (T-point)         [W/m2] 
     360      REAL(wp), INTENT(  out), DIMENSION(:,:,:)      ::   p_qsr    !     solar heat flux over ice (T-point)         [W/m2] 
     361      REAL(wp), INTENT(  out), DIMENSION(:,:,:)      ::   p_qla    ! latent    heat flux over ice (T-point)         [W/m2] 
     362      REAL(wp), INTENT(  out), DIMENSION(:,:,:)      ::   p_dqns   ! non solar heat sensistivity  (T-point)         [W/m2] 
     363      REAL(wp), INTENT(  out), DIMENSION(:,:,:)      ::   p_dqla   ! latent    heat sensistivity  (T-point)         [W/m2] 
     364      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)    ::   p_tpr    ! total precipitation          (T-point)      [Kg/m2/s] 
     365      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)    ::   p_spr    ! solid precipitation          (T-point)      [Kg/m2/s] 
     366      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)    ::   p_fr1    ! 1sr fraction of qsr penetration in ice (T-point)  [%] 
     367      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)    ::   p_fr2    ! 2nd fraction of qsr penetration in ice (T-point)  [%] 
     368      CHARACTER(len=1), INTENT(in   )                ::   cd_grid  ! ice grid ( C or B-grid) 
     369      INTEGER, INTENT(in   )                         ::   pdim     ! number of ice categories 
    373370      !! 
    374371      INTEGER  ::   ji, jj, jl    ! dummy loop indices 
     
    380377      REAL(wp) ::             zwndi_t , zwndj_t                  ! relative wind components at T-point 
    381378      REAL(wp), DIMENSION(jpi,jpj) ::   z_wnds_t                 ! wind speed ( = | U10m - U_ice | ) at T-point 
    382       REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_qlw                ! long wave heat flux over ice 
    383       REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_qsb                ! sensible  heat flux over ice 
    384       REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_dqlw               ! sensible  heat flux over ice 
    385       REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_dqsb               ! sensible  heat flux over ice 
     379      REAL(wp), DIMENSION(jpi,jpj,pdim) ::   z_qlw                ! long wave heat flux over ice 
     380      REAL(wp), DIMENSION(jpi,jpj,pdim) ::   z_qsb                ! sensible  heat flux over ice 
     381      REAL(wp), DIMENSION(jpi,jpj,pdim) ::   z_dqlw               ! sensible  heat flux over ice 
     382      REAL(wp), DIMENSION(jpi,jpj,pdim) ::   z_dqsb               ! sensible  heat flux over ice 
    386383      !!--------------------------------------------------------------------- 
    387384 
    388       ijpl  = jpl                            ! number of ice categories 
     385      ijpl  = pdim                            ! number of ice categories 
    389386 
    390387      ! local scalars ( place there for vector optimisation purposes) 
  • trunk/NEMO/OPA_SRC/SBC/sbcice_lim.F90

    r1240 r1270  
    145145               &                      qla_ice   , dqns_ice  , dqla_ice  ,               & 
    146146               &                      tprecip   , sprecip   ,                           & 
    147                &                      fr1_i0    , fr2_i0    , cl_grid  ) 
     147               &                      fr1_i0    , fr2_i0    , cl_grid, jpl  ) 
    148148            !          
    149149         CASE( 4 )                                       ! CORE bulk formulation 
     
    152152               &                      qla_ice  , dqns_ice  , dqla_ice  ,               & 
    153153               &                      tprecip  , sprecip   ,                           & 
    154                &                      fr1_i0   , fr2_i0    , cl_grid  ) 
     154               &                      fr1_i0   , fr2_i0    , cl_grid, jpl  ) 
    155155         END SELECT 
    156156 
  • trunk/NEMO/OPA_SRC/SBC/sbcice_lim_2.F90

    r1239 r1270  
    2121   USE lib_mpp 
    2222   USE ice_2 
     23   USE par_ice_2 
    2324   USE iceini_2 
    2425   USE ice_oce         ! ice variables 
     
    154155               &                      zqla_ice  , zdqns_ice  , zdqla_ice ,             & 
    155156               &                      tprecip   , sprecip    ,                         & 
    156                &                      fr1_i0    , fr2_i0     , cl_grid  ) 
     157               &                      fr1_i0    , fr2_i0     , cl_grid, jpl  ) 
    157158 
    158159         CASE( 4 )           ! CORE bulk formulation 
     
    161162               &                      zqla_ice  , zdqns_ice  , zdqla_ice ,             & 
    162163               &                      tprecip   , sprecip    ,                         & 
    163                &                      fr1_i0    , fr2_i0     , cl_grid  ) 
     164               &                      fr1_i0    , fr2_i0     , cl_grid, jpl  ) 
    164165         CASE( 5 )           ! Coupled formulation : atmosphere-ice stress only (fluxes provided after ice dynamics) 
    165166            CALL sbc_cpl_ice_tau( utaui_ice , vtaui_ice ) 
Note: See TracChangeset for help on using the changeset viewer.