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 4506 for branches/dev_r4028_CNRS_LIM3_MV2014/NEMOGCM/NEMO/LIM_SRC_3/limthd_ent.F90 – NEMO

Ignore:
Timestamp:
2014-02-21T15:20:39+01:00 (10 years ago)
Author:
vancop
Message:

[Heat conservation in LIM3, part HC1 (LIM_SRC_3_HC17)]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r4028_CNRS_LIM3_MV2014/NEMOGCM/NEMO/LIM_SRC_3/limthd_ent.F90

    r4332 r4506  
    2222   USE domain         ! 
    2323   USE phycst         ! physical constants 
     24   USE sbc_oce        ! Surface boundary condition: ocean fields 
    2425   USE ice            ! LIM variables 
    2526   USE par_ice        ! LIM parameters 
     
    8687         ztmelts        ,   &  ! ice melting point 
    8788         zqsnic         ,   &  ! enthalpy of snow ice layer 
     89         zsstK          ,   &  ! SST in Kelvin 
    8890         zhsnow         ,   &  ! temporary snow thickness variable 
    8991         zswitch        ,   &  ! dummy switch argument 
     
    540542      DO ji = kideb, kiut 
    541543         ! energy of the flooding seawater 
    542          zqsnic = rau0 * rcp * ( rtt - t_bo_b(ji) ) * dh_snowice(ji) * & 
    543             (rhoic - rhosn) / rhoic * REAL(snicswi(ji)) ! generally positive 
     544         ii = MOD( npb(ji) - 1, jpi ) + 1 
     545         ij =    ( npb(ji) - 1 ) / jpi + 1 
     546         zsstK  = sst_m(ii,ij) + rt0 
     547         zqsnic = ( rhosn - rhoic ) * dh_snowice(ji) * rcp * ( zsstK - rt0 ) * REAL ( snicswi(ji) ) ! MV HC 2014 
     548          
    544549         ! Heat conservation diagnostic 
    545550         qt_i_in(ji,jl) = qt_i_in(ji,jl) + zqsnic  
    546  
    547          qldif_1d(ji)   = qldif_1d(ji) + zqsnic * a_i_b(ji) 
    548551 
    549552         ! enthalpy of the newly formed snow-ice layer 
Note: See TracChangeset for help on using the changeset viewer.