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 8239 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limitd_me.F90 – NEMO

Ignore:
Timestamp:
2017-06-28T17:55:50+02:00 (7 years ago)
Author:
clem
Message:

merge with v3_6_CMIP6_ice_diagnostics@r8238

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limitd_me.F90

    r8233 r8239  
    500500      INTEGER ::   icells            ! number of cells with a_i > puny 
    501501      REAL(wp) ::   hL, hR, farea    ! left and right limits of integration 
     502      REAL(wp) ::   zwfx_snw         ! snow mass flux increment 
    502503 
    503504      INTEGER , POINTER, DIMENSION(:) ::   indxi, indxj   ! compressed indices 
     
    654655                  &                            - sm_i(ji,jj,jl1) * vsw(ij) * rhoic * r1_rdtice     ! and get  sm_i  from the ocean  
    655656            ENDIF 
    656                 
     657 
    657658            !------------------------------------------             
    658659            ! 3.7 Put the snow somewhere in the ocean 
     
    663664            !  During the next time step, thermo_rates will determine whether 
    664665            !  the ocean cools or new ice grows. 
    665             wfx_snw(ji,jj) = wfx_snw(ji,jj) + ( rhosn * vsrdg(ij) * ( 1._wp - rn_fsnowrdg )   &  
    666                &                              + rhosn * vsrft(ij) * ( 1._wp - rn_fsnowrft ) ) * r1_rdtice  ! fresh water source for ocean 
     666            zwfx_snw           = ( rhosn * vsrdg(ij) * ( 1._wp - rn_fsnowrdg )   &  
     667               &                 + rhosn * vsrft(ij) * ( 1._wp - rn_fsnowrft ) ) * r1_rdtice  ! fresh water source for ocean 
     668 
     669            wfx_snw_dyn(ji,jj)  =   wfx_snw_dyn(ji,jj) + zwfx_snw 
     670            wfx_snw(ji,jj)      =   wfx_snw(ji,jj)     + zwfx_snw 
    667671 
    668672            hfx_dyn(ji,jj) = hfx_dyn(ji,jj) + ( - esrdg(ij) * ( 1._wp - rn_fsnowrdg )         &  
     
    789793      END DO ! jl1 (deforming categories) 
    790794 
     795      ! SIMIP diagnostics 
     796      diag_dmi_dyn(:,:) = - wfx_dyn(:,:)     + rhoic * diag_trp_vi(:,:) 
     797      diag_dms_dyn(:,:) = - wfx_snw_dyn(:,:) + rhosn * diag_trp_vs(:,:) 
     798       
    791799      ! 
    792800      CALL wrk_dealloc( jpij,        indxi, indxj ) 
Note: See TracChangeset for help on using the changeset viewer.