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 5146 for trunk/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90 – NEMO

Ignore:
Timestamp:
2015-03-11T18:30:22+01:00 (9 years ago)
Author:
vancop
Message:

Fixes on the LIM3 coupled interface (important for ESMs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90

    r5128 r5146  
    146146            hfx_out(ji,jj) = hfx_out(ji,jj) + zf_mass + zfcm1 
    147147 
     148            ! Add the residual from heat diffusion equation (W.m-2) 
     149            !------------------------------------------------------- 
     150            hfx_out(ji,jj) = hfx_out(ji,jj) + hfx_err_dif(ji,jj) 
     151 
    148152            ! New qsr and qns used to compute the oceanic heat flux at the next time step 
    149153            !--------------------------------------------------- 
     
    164168            !  computing freshwater exchanges at the ice/ocean interface 
    165169            IF( lk_cpl ) THEN  
    166                zemp = - emp_tot(ji,jj) + emp_ice(ji,jj) * ( 1. - pfrld(ji,jj) )    &   ! 
    167                   &   + wfx_snw(ji,jj) 
     170                zemp =   emp_tot(ji,jj)                                    &   ! net mass flux over grid cell 
     171                   &   - emp_ice(ji,jj) * ( 1._wp - pfrld(ji,jj) )         &   ! minus the mass flux intercepted by sea ice 
     172                   &   + sprecip(ji,jj) * ( pfrld(ji,jj) - pfrld(ji,jj)**rn_betas )   ! 
    168173            ELSE 
    169174               zemp =   emp(ji,jj)     *           pfrld(ji,jj)            &   ! evaporation over oceanic fraction 
Note: See TracChangeset for help on using the changeset viewer.