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 3402 for branches/2012/dev_r3385_NOCS04_HAMF/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90 – NEMO

Ignore:
Timestamp:
2012-05-25T18:43:49+02:00 (12 years ago)
Author:
acc
Message:

Branch: dev_r3385_NOCS04_HAMF; #665. Stage 2 of 2012 development: suppression of emps array and introduction of sfx (salt flux) array with associated code to setup the options for embedding the seaice into the ocean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3385_NOCS04_HAMF/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90

    r3294 r3402  
    8686      !!              - qns     : sea heat flux: non solar 
    8787      !!              - emp     : freshwater budget: volume flux  
    88       !!              - emps    : freshwater budget: concentration/dillution  
     88      !!              - sfx     : freshwater budget: concentration/dillution  
    8989      !!              - fr_i    : ice fraction 
    9090      !!              - tn_ice  : sea-ice surface temperature 
     
    263263 
    264264      IF( num_sal == 2 ) THEN      ! variable ice salinity: brine drainage included in the salt flux 
    265          emps(:,:) = fsbri(:,:) + fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) + emp(:,:) 
     265         sfx (:,:) = fsbri(:,:) + fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) + emp(:,:) 
    266266      ELSE                         ! constant ice salinity: 
    267          emps(:,:) =              fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) + emp(:,:) 
     267         sfx (:,:) =              fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) + emp(:,:) 
    268268      ENDIF 
    269269 
     
    285285      IF(ln_ctl) THEN 
    286286         CALL prt_ctl( tab2d_1=qsr   , clinfo1=' lim_sbc: qsr    : ', tab2d_2=qns , clinfo2=' qns     : ' ) 
    287          CALL prt_ctl( tab2d_1=emp   , clinfo1=' lim_sbc: emp    : ', tab2d_2=emps, clinfo2=' emps    : ' ) 
     287         CALL prt_ctl( tab2d_1=emp   , clinfo1=' lim_sbc: emp    : ', tab2d_2=sfx , clinfo2=' sfx     : ' ) 
    288288         CALL prt_ctl( tab2d_1=fr_i  , clinfo1=' lim_sbc: fr_i   : ' ) 
    289289         CALL prt_ctl( tab3d_1=tn_ice, clinfo1=' lim_sbc: tn_ice : ', kdim=jpl ) 
     
    402402         END WHERE 
    403403      ENDIF 
     404      !                                      ! embedded sea ice 
     405      IF( nn_ice_embd /= 0 ) THEN            ! mass exchanges between ice and ocean (case 1 or 2) set the snow+ice mass 
     406         snwice_mass  (:,:) = tms(:,:) * ( rhosn * hsnif(:,:) + rhoic * hicif(:,:)  ) * ( 1.0 - frld(:,:) ) 
     407         snwice_mass_b(:,:) = snwice_mass(:,:) 
     408      ELSE 
     409         snwice_mass  (:,:) = 0.e0           ! no mass exchanges 
     410         snwice_mass_b(:,:) = 0.e0           ! no mass exchanges 
     411      ENDIF 
     412      IF( nn_ice_embd == 2 .AND.             ! full embedment (case 2) & no restart :  
     413         &   .NOT.ln_rstart ) THEN           ! deplete the initial ssh belew sea-ice area 
     414         sshn(:,:) = sshn(:,:) - snwice_mass(:,:) * r1_rau0 
     415         sshb(:,:) = sshb(:,:) - snwice_mass(:,:) * r1_rau0 
     416      ENDIF 
    404417      ! 
    405418   END SUBROUTINE lim_sbc_init 
Note: See TracChangeset for help on using the changeset viewer.