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 13601 for NEMO/trunk/src/ICE/icecor.F90 – NEMO

Ignore:
Timestamp:
2020-10-14T17:59:34+02:00 (4 years ago)
Author:
clem
Message:

trunk: rewrite heat budget of sea ice to make it perfectly conservative by construction. Also, activating ln_icediachk now gives an ascii file (icedrift_diagnostics.ascii) containing mass, salt and heat global conservation issues (if any). In addition, 2D drift files can be outputed (icedrift_mass…) and field_def is changed accordingly. Note that advection schemes are not yet commited since there is still a restartability issue that I do not understand.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/ICE/icecor.F90

    r13497 r13601  
    9595               zsal = sv_i(ji,jj,jl) 
    9696               sv_i(ji,jj,jl) = MIN(  MAX( rn_simin*v_i(ji,jj,jl) , sv_i(ji,jj,jl) ) , rn_simax*v_i(ji,jj,jl)  ) 
    97                sfx_res(ji,jj) = sfx_res(ji,jj) - ( sv_i(ji,jj,jl) - zsal ) * zzc   ! associated salt flux 
     97               IF( kn /= 0 ) & ! no ice-ocean exchanges if kn=0 (for bdy for instance) otherwise conservation diags will fail 
     98                  &   sfx_res(ji,jj) = sfx_res(ji,jj) - ( sv_i(ji,jj,jl) - zsal ) * zzc   ! associated salt flux 
    9899            END_2D 
    99100         END DO 
    100101      ENDIF 
    101       !                             !----------------------------------------------------- 
    102       CALL ice_var_zapsmall         !  Zap small values                                  ! 
    103       !                             !----------------------------------------------------- 
    104102 
     103      IF( kn /= 0 ) THEN   ! no zapsmall if kn=0 (for bdy for instance) because we do not want ice-ocean exchanges (wfx,sfx,hfx) 
     104         !                                                              otherwise conservation diags will fail 
     105         !                          !----------------------------------------------------- 
     106         CALL ice_var_zapsmall      !  Zap small values                                  ! 
     107         !                          !----------------------------------------------------- 
     108      ENDIF 
    105109      !                             !----------------------------------------------------- 
    106110      IF( kn == 2 ) THEN            !  Ice drift case: Corrections to avoid wrong values ! 
Note: See TracChangeset for help on using the changeset viewer.