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

Changeset 1234


Ignore:
Timestamp:
2008-12-29T17:37:02+01:00 (15 years ago)
Author:
rblod
Message:

Fix control print problem, see ticket #289

Location:
trunk/NEMO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_2/par_ice_2.F90

    r1156 r1234  
    11MODULE par_ice_2 
    2 #if defined key_lim2 
    32   !!====================================================================== 
    43   !!                       ***  MODULE par_ice_2   *** 
    54   !! Sea-Ice model : definition of the parameters 
    65   !!====================================================================== 
     6#if defined key_lim2 
    77   !!---------------------------------------------------------------------- 
    8    !!  LIM 2.0, UCL-LOCEAN-IPSL (2005) 
    9    !! $Id$ 
    10    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
     8   !!  'key_lim2'                                       LIM-2 sea-ice model 
    119   !!---------------------------------------------------------------------- 
    12    !! * Modules used 
    1310   USE par_oce 
    1411 
     
    1613   PUBLIC               ! allows par_oce and par_kind to be known in ice modules 
    1714 
    18    INTEGER, PUBLIC, PARAMETER ::   &  !: 
    19       jpkmax =  1    ,      &  !: ??? 
    20       jpsmax = 2              !: ??? 
     15   INTEGER, PUBLIC, PARAMETER ::   jpl        = 1              !: number of ice categories (only 1 in LIM-2) 
     16   INTEGER, PUBLIC, PARAMETER ::   jpkmax     = 1              !: ??? 
     17   INTEGER, PUBLIC, PARAMETER ::   jpsmax     = 2              !: ??? 
    2118 
    22    INTEGER, PUBLIC, PARAMETER ::   &  !:  
    23       jplayers   = 2 ,           &  !: number of vertical ice layers 
    24       jplayersp1 = jplayers + 1     !: ??? 
     19   INTEGER, PUBLIC, PARAMETER ::   jplayers   = 2              !: number of vertical ice layers 
     20   INTEGER, PUBLIC, PARAMETER ::   jplayersp1 = jplayers + 1   !: ??? 
    2521 
     22#else 
     23   !!---------------------------------------------------------------------- 
     24   !!  Default option                                No LIM-2 sea-ice model 
     25   !!---------------------------------------------------------------------- 
     26#endif 
     27   !!---------------------------------------------------------------------- 
     28   !! NEMO/LIM 2.0, UCL-LOCEAN-IPSL (2008) 
     29   !! $Id$ 
     30   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    2631   !!====================================================================== 
    27 #endif 
    2832END MODULE par_ice_2 
  • trunk/NEMO/OPA_SRC/SBC/sbcblk_core.F90

    r1200 r1234  
    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 
    3336#if defined key_lim3 
     37   USE par_ice         ! For number of ice categories 
    3438   USE ice_oce         ! For ice surface temperature 
    3539#endif 
     
    348352      !! caution : the net upward water flux has with mm/day unit 
    349353      !!--------------------------------------------------------------------- 
    350       REAL(wp), INTENT(in   ), DIMENSION(:,:,:)   ::   pst      ! ice surface temperature (>0, =rt0 over land) [Kelvin] 
    351       REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj) ::   pui      ! ice surface velocity (i- and i- components      [m/s] 
    352       REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj) ::   pvi      !    at I-point (B-grid) or U & V-point (C-grid) 
    353       REAL(wp), INTENT(in   ), DIMENSION(:,:,:)   ::   palb     ! ice albedo (clear sky) (alb_ice_cs)               [%] 
    354       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_taui   ! i- & j-components of surface ice stress        [N/m2] 
    355       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_tauj   !   at I-point (B-grid) or U & V-point (C-grid) 
    356       REAL(wp), INTENT(  out), DIMENSION(:,:,:)   ::   p_qns    ! non solar heat flux over ice (T-point)         [W/m2] 
    357       REAL(wp), INTENT(  out), DIMENSION(:,:,:)   ::   p_qsr    !     solar heat flux over ice (T-point)         [W/m2] 
    358       REAL(wp), INTENT(  out), DIMENSION(:,:,:)   ::   p_qla    ! latent    heat flux over ice (T-point)         [W/m2] 
    359       REAL(wp), INTENT(  out), DIMENSION(:,:,:)   ::   p_dqns   ! non solar heat sensistivity  (T-point)         [W/m2] 
    360       REAL(wp), INTENT(  out), DIMENSION(:,:,:)   ::   p_dqla   ! latent    heat sensistivity  (T-point)         [W/m2] 
    361       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_tpr    ! total precipitation          (T-point)      [Kg/m2/s] 
    362       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_spr    ! solid precipitation          (T-point)      [Kg/m2/s] 
    363       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_fr1    ! 1sr fraction of qsr penetration in ice (T-point)  [%] 
    364       REAL(wp), INTENT(  out), DIMENSION(jpi,jpj) ::   p_fr2    ! 2nd fraction of qsr penetration in ice (T-point)  [%] 
    365       CHARACTER(len=1), INTENT(in   )             ::   cd_grid  ! ice grid ( C or B-grid) 
     354      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj,jpl)  ::   pst      ! ice surface temperature (>0, =rt0 over land) [Kelvin] 
     355      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj)      ::   pui      ! ice surface velocity (i- and i- components      [m/s] 
     356      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj)      ::   pvi      !    at I-point (B-grid) or U & V-point (C-grid) 
     357      REAL(wp), INTENT(in   ), DIMENSION(jpi,jpj,jpl)  ::   palb     ! ice albedo (clear sky) (alb_ice_cs)               [%] 
     358      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_taui   ! i- & j-components of surface ice stress        [N/m2] 
     359      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_tauj   !   at I-point (B-grid) or U & V-point (C-grid) 
     360      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_qns    ! non solar heat flux over ice (T-point)         [W/m2] 
     361      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_qsr    !     solar heat flux over ice (T-point)         [W/m2] 
     362      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_qla    ! latent    heat flux over ice (T-point)         [W/m2] 
     363      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_dqns   ! non solar heat sensistivity  (T-point)         [W/m2] 
     364      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj,jpl)  ::   p_dqla   ! latent    heat sensistivity  (T-point)         [W/m2] 
     365      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_tpr    ! total precipitation          (T-point)      [Kg/m2/s] 
     366      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_spr    ! solid precipitation          (T-point)      [Kg/m2/s] 
     367      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_fr1    ! 1sr fraction of qsr penetration in ice (T-point)  [%] 
     368      REAL(wp), INTENT(  out), DIMENSION(jpi,jpj)      ::   p_fr2    ! 2nd fraction of qsr penetration in ice (T-point)  [%] 
     369      CHARACTER(len=1), INTENT(in   )                  ::   cd_grid  ! ice grid ( C or B-grid) 
    366370      !! 
    367371      INTEGER  ::   ji, jj, jl    ! dummy loop indices 
     
    373377      REAL(wp) ::             zwndi_t , zwndj_t                  ! relative wind components at T-point 
    374378      REAL(wp), DIMENSION(jpi,jpj) ::   z_wnds_t                 ! wind speed ( = | U10m - U_ice | ) at T-point 
    375       REAL(wp), DIMENSION(jpi,jpj,SIZE(pst,3)) ::   z_qlw        ! long wave heat flux over ice 
    376       REAL(wp), DIMENSION(jpi,jpj,SIZE(pst,3)) ::   z_qsb        ! sensible  heat flux over ice 
    377       REAL(wp), DIMENSION(jpi,jpj,SIZE(pst,3)) ::   z_dqlw       ! sensible  heat flux over ice 
    378       REAL(wp), DIMENSION(jpi,jpj,SIZE(pst,3)) ::   z_dqsb       ! sensible  heat flux over ice 
     379      REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_qlw                ! long wave heat flux over ice 
     380      REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_qsb                ! sensible  heat flux over ice 
     381      REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_dqlw               ! sensible  heat flux over ice 
     382      REAL(wp), DIMENSION(jpi,jpj,jpl) ::   z_dqsb               ! sensible  heat flux over ice 
    379383      !!--------------------------------------------------------------------- 
    380384 
    381       ijpl  = SIZE( pst, 3 )                 ! number of ice categories 
     385      ijpl  = jpl                            ! number of ice categories 
    382386 
    383387      ! local scalars ( place there for vector optimisation purposes) 
Note: See TracChangeset for help on using the changeset viewer.