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 3964 for branches/2013/dev_r3406_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90 – NEMO

Ignore:
Timestamp:
2013-07-09T17:42:43+02:00 (11 years ago)
Author:
flavoni
Message:

correction of fresh water budget for LIM3, see ticket 1116

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3406_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90

    r3962 r3964  
    286286      !   mass of snow and ice per unit area          ! 
    287287      !-----------------------------------------------! 
    288       IF( nn_ice_embd /= 0 ) THEN                               ! embedded sea-ice (mass required) 
     288     !SF IF( nn_ice_embd /= 0 ) THEN                               ! embedded sea-ice (mass required) 
    289289         snwice_mass_b(:,:) = snwice_mass(:,:)                  ! save mass from the previous ice time step 
    290290         !                                                      ! new mass per unit area 
     
    292292         !                                                      ! time evolution of snow+ice mass 
    293293         snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) * r1_rdtice 
    294       ENDIF 
     294      !SF ENDIF 
    295295 
    296296      !-----------------------------------------------! 
     
    408408      !! ** input   : Namelist namicedia 
    409409      !!------------------------------------------------------------------- 
     410      REAL(wp) :: zsum, zarea 
    410411      ! 
    411412      IF(lwp) WRITE(numout,*) 
     
    435436         snwice_mass  (:,:) = tms(:,:) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:)  ) 
    436437         snwice_mass_b(:,:) = snwice_mass(:,:) 
     438         IF( .NOT.ln_rstart ) THEN           ! delete the initial ssh below sea-ice area 
     439            zarea     = glob_sum( e1e2t(:,:) )           ! interior global domain surface 
     440            zsum      = glob_sum( e1e2t(:,:) * ( snwice_mass(:,:) ) ) / zarea / rau0 
     441            sshn(:,:) = sshn(:,:) - zsum  
     442            sshb(:,:) = sshb(:,:) - zsum 
     443         ENDIF 
    437444      ! 
    438445      ! 
Note: See TracChangeset for help on using the changeset viewer.