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 8150 for branches/2016/v3_6_CMIP6_ice_diagnostics/NEMOGCM/NEMO/LIM_SRC_3/limitd_me.F90 – NEMO

Ignore:
Timestamp:
2017-06-07T16:37:36+02:00 (7 years ago)
Author:
vancop
Message:

SIMIP outputs, phase 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/v3_6_CMIP6_ice_diagnostics/NEMOGCM/NEMO/LIM_SRC_3/limitd_me.F90

    r7506 r8150  
    535535      INTEGER ::   icells            ! number of cells with a_i > puny 
    536536      REAL(wp) ::   hL, hR, farea    ! left and right limits of integration 
     537      REAL(wp) ::   zwfx_snw         ! snow mass flux increment 
    537538 
    538539      INTEGER , POINTER, DIMENSION(:) ::   indxi, indxj   ! compressed indices 
     
    648649            srdg2(ij) = srdg1(ij) + smsw(ij)                     ! salt content of new ridge 
    649650             
    650             sfx_dyn(ji,jj) = sfx_dyn(ji,jj) - smsw(ij) * rhoic * r1_rdtice 
    651             wfx_dyn(ji,jj) = wfx_dyn(ji,jj) - vsw (ij) * rhoic * r1_rdtice   ! increase in ice volume due to seawater frozen in voids 
     651            sfx_dyn(ji,jj)     = sfx_dyn(ji,jj)    - smsw(ij) * rhoic * r1_rdtice 
     652            wfx_dyn(ji,jj)     = wfx_dyn(ji,jj)    - vsw (ij) * rhoic * r1_rdtice   ! increase in ice volume due to seawater frozen in voids 
    652653             
    653654             ! virtual salt flux to keep salinity constant 
     
    666667            !  During the next time step, thermo_rates will determine whether 
    667668            !  the ocean cools or new ice grows. 
    668             wfx_snw(ji,jj) = wfx_snw(ji,jj) + ( rhosn * vsrdg(ij) * ( 1._wp - rn_fsnowrdg )   &  
    669                &                              + rhosn * vsrft(ij) * ( 1._wp - rn_fsnowrft ) ) * r1_rdtice  ! fresh water source for ocean 
     669            zwfx_snw           = ( rhosn * vsrdg(ij) * ( 1._wp - rn_fsnowrdg )   &  
     670               &                 + rhosn * vsrft(ij) * ( 1._wp - rn_fsnowrft ) ) * r1_rdtice  ! fresh water source for ocean 
     671 
     672            wfx_snw_dyn(ji,jj) = wfx_snw(ji,jj) + zwfx_snw 
     673            wfx_snw(ji,jj)     = wfx_snw(ji,jj) + zwfx_snw 
    670674 
    671675            ! SIMIP diagnostic 
    672             diag_dms_dyn(ji,jj) = diag_dms_dyn(ji,jj) - ( rhosn * vsrdg(ij) * ( 1._wp - rn_fsnowrdg )   &  
    673                &                                      - rhosn * vsrft(ij) * ( 1._wp - rn_fsnowrft ) ) * r1_rdtice 
    674             diag_dmi_dyn(ji,jj) = diag_dmi_dyn(ji,jj) + vsw (ij) * rhoic * r1_rdtice  
     676            diag_dms_dyn(ji,jj) = - wfx_dyn(ji,jj)     + diag_trp_vi(ji,jj) 
     677            diag_dmi_dyn(ji,jj) = - wfx_snw_dyn(ji,jj) + diag_trp_vs(ji,jj) 
    675678 
    676679            hfx_dyn(ji,jj) = hfx_dyn(ji,jj) + ( - esrdg(ij) * ( 1._wp - rn_fsnowrdg )         &  
Note: See TracChangeset for help on using the changeset viewer.