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

Changeset 1269


Ignore:
Timestamp:
2009-01-14T17:16:05+01:00 (15 years ago)
Author:
ctlod
Message:

limit the heat transfer coefficient zchcm value, see ticket: #285

File:
1 edited

Legend:

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

    r1242 r1269  
    256256      REAL(wp) ::   zdtetar, ztvmoyr, zlxins, zchcm, zclcm      !    -         - 
    257257      REAL(wp) ::   zmt1, zmt2, zmt3, ztatm3, ztamr, ztaevbk    !    -         - 
    258       REAL(wp) ::   zsst, ztatm, zcco1, zpatm                   !    -         - 
     258      REAL(wp) ::   zsst, ztatm, zcco1, zpatm, zcmax, zrmax     !    -         - 
    259259      REAL(wp) ::   zrhoa, zev, zes, zeso, zqatm, zevsqr        !    -         - 
    260260      !! 
     
    364364            zcln           = 0.0346 * zcmn 
    365365            zcmcmn         = 1. / ( 1. - zcmn * zpsim / vkarmn ) 
    366             zchcm          = zcmcmn / ( 1. - zchn * zpsih / ( vkarmn * zcmn ) ) 
     366            ! sometimes the ratio zchn * zpsih / ( vkarmn * zcmn ) is too close to 1 and zchcm becomes very very big 
     367            zcmax = 0.1               ! choice for maximum value of the heat transfer coefficient, guided by my intuition 
     368            zrmax = 1 - 3.e-4 / zcmax ! maximum value of the ratio 
     369            zchcm = zcmcmn / ( 1. - MIN ( zchn * zpsih / ( vkarmn * zcmn ) , zrmax ) ) 
    367370            zclcm          = zchcm 
    368371            !                                                          ! transfert coef. (Large and Pond 1981,1982) 
Note: See TracChangeset for help on using the changeset viewer.