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/icestp.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/icestp.F90

    r13558 r13601  
    197197         IF( ln_icediahsb )             CALL ice_dia( kt )            ! -- Diagnostics outputs  
    198198         ! 
     199         IF( ln_icediachk )             CALL ice_drift_wri( kt )      ! -- Diagnostics outputs for conservation  
     200         ! 
    199201                                        CALL ice_wri( kt )            ! -- Ice outputs  
    200202         ! 
     
    281283      ! 
    282284      CALL ice_dia_init                ! initialization for diags 
     285      ! 
     286      CALL ice_drift_init              ! initialization for diags of conservation 
    283287      ! 
    284288      fr_i  (:,:)   = at_i(:,:)        ! initialisation of sea-ice fraction 
     
    341345      ENDIF 
    342346      ! 
    343       IF( ln_bdy .AND. ln_icediachk )   CALL ctl_warn('par_init: online conservation check does not work with BDY') 
    344       ! 
    345347      rDt_ice   = REAL(nn_fsbc) * rn_Dt          !--- sea-ice timestep and its inverse 
    346348      r1_Dt_ice = 1._wp / rDt_ice 
     
    438440      diag_trp_ei(:,:) = 0._wp   ;   diag_trp_es(:,:) = 0._wp 
    439441      diag_trp_sv(:,:) = 0._wp 
     442      diag_adv_mass(:,:) = 0._wp 
     443      diag_adv_salt(:,:) = 0._wp 
     444      diag_adv_heat(:,:) = 0._wp 
    440445       
    441446   END SUBROUTINE diag_set0 
Note: See TracChangeset for help on using the changeset viewer.