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 11055 for branches/UKMO/dev_r5518_GO6_fix_zemp_ice/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90 – NEMO

Ignore:
Timestamp:
2019-05-24T14:57:22+02:00 (6 years ago)
Author:
dancopsey
Message:

Put the switch back in again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_fix_zemp_ice/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r11045 r11055  
    184184   LOGICAL     ::   ln_usecplmask          !  use a coupling mask file to merge data received from several models 
    185185                                           !   -> file cplmask.nc with the float variable called cplmask (jpi,jpj,nn_cplmodel) 
     186   LOGICAL, PUBLIC ::   ln_fix_sea_ice_fluxes     ! Apply sea ice flux bug fixes (GMED#449) 
    186187 
    187188   TYPE ::   DYNARR      
     
    260261         &                  ln_usecplmask, nn_coupled_iceshelf_fluxes, ln_iceshelf_init_atmos,        & 
    261262         &                  rn_greenland_total_fw_flux, rn_greenland_calving_fraction, & 
    262          &                  rn_antarctica_total_fw_flux, rn_antarctica_calving_fraction, rn_iceshelf_fluxes_tolerance 
     263         &                  rn_antarctica_total_fw_flux, rn_antarctica_calving_fraction, rn_iceshelf_fluxes_tolerance, & 
     264         &                  ln_fix_sea_ice_fluxes 
    263265      !!--------------------------------------------------------------------- 
    264266 
     
    330332         WRITE(numout,*)'  nn_cplmodel                         = ', nn_cplmodel 
    331333         WRITE(numout,*)'  ln_usecplmask                       = ', ln_usecplmask 
     334         WRITE(numout,*)'  ln_fix_sea_ice_fluxes               = ', ln_fix_sea_ice_fluxes 
    332335         WRITE(numout,*)'  nn_coupled_iceshelf_fluxes          = ', nn_coupled_iceshelf_fluxes 
    333336         WRITE(numout,*)'  ln_iceshelf_init_atmos              = ', ln_iceshelf_init_atmos 
     
    17711774         IF ( TRIM(sn_rcv_emp%clcat) == 'yes' ) THEN 
    17721775            ! zemp_ice is the sum of frcv(jpr_ievp)%z3(:,:,1) over all layers - snow 
    1773             zemp_ice(:,:) = - frcv(jpr_snow)%z3(:,:,1) * zicefr(:,:) 
     1776            IF ( ln_fix_sea_ice_fluxes ) THEN 
     1777               zemp_ice(:,:) = - frcv(jpr_snow)%z3(:,:,1) * zicefr(:,:) 
     1778            ELSE 
     1779               zemp_ice(:,:) = - frcv(jpr_snow)%z3(:,:,1) 
     1780            ENDIF 
    17741781            DO jl=1,jpl 
    1775                zemp_ice(:,:   ) = zemp_ice(:,:) + frcv(jpr_ievp)%z3(:,:,jl) * a_i_last_couple(:,:,jl) 
     1782               IF ( ln_fix_sea_ice_fluxes ) THEN 
     1783                  zemp_ice(:,:   ) = zemp_ice(:,:) + frcv(jpr_ievp)%z3(:,:,jl) * a_i_last_couple(:,:,jl) 
     1784               ELSE 
     1785                  zemp_ice(:,:   ) = zemp_ice(:,:) + frcv(jpr_ievp)%z3(:,:,jl) 
     1786               ENDIF 
    17761787            ENDDO 
    17771788            ! latent heat coupled for each category in CICE 
Note: See TracChangeset for help on using the changeset viewer.