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 10276 for branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/NEMO/OPA_SRC/SBC – NEMO

Ignore:
Timestamp:
2018-11-02T18:15:27+01:00 (5 years ago)
Author:
emmafiedler
Message:

Freeboard assimilation updates

Location:
branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/NEMO/OPA_SRC/SBC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/NEMO/OPA_SRC/SBC/sbc_ice.F90

    r10181 r10276  
    107107   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   thick_iu           !: ice thickness at NEMO U point 
    108108   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   thick_iv           !: ice thickness at NEMO V point 
     109   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   thick_su           !: snow depth at NEMO U point 
     110   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   thick_sv           !: snow depth at NEMO V point    
    109111   ! variables used in the coupled interface 
    110112   INTEGER , PUBLIC, PARAMETER ::   jpl = ncat 
     
    174176                ss_iov(jpi,jpj)       , fr_iu(jpi,jpj)        , fr_iv(jpi,jpj)        , & 
    175177                thick_iu(jpi,jpj)     , thick_iv(jpi,jpj)     ,                         & 
     178                thick_su(jpi,jpj)     , thick_sv(jpi,jpj)     ,                         &                 
    176179                ht_i(jpi,jpj,ncat)    , ht_s(jpi,jpj,ncat)    ,                         &                 
    177180                a_i(jpi,jpj,ncat)     , topmelt(jpi,jpj,ncat) , botmelt(jpi,jpj,ncat) , & 
  • branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/NEMO/OPA_SRC/SBC/sbc_oce.F90

    r10181 r10276  
    122122   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   fr_i              !: ice fraction = 1 - lead fraction      (between 0 to 1) 
    123123   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   thick_i           !: ice thickness [m] 
     124   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   thick_s           !: snow depth [m - I think]    
    124125   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   vol_i             !: ice volume [m3]    
    125126#if defined key_cpl_carbon_cycle 
     
    198199         ! 
    199200      ALLOCATE( tprecip(jpi,jpj) , sprecip(jpi,jpj) , fr_i(jpi,jpj) ,     & 
    200          & thick_i(jpi,jpj) ,  vol_i(jpi,jpj) ,                           &       
     201         & thick_i(jpi,jpj) ,  thick_s(jpi,jpj) , vol_i(jpi,jpj) ,        &       
    201202#if defined key_cpl_carbon_cycle 
    202203         &      atm_co2(jpi,jpj) ,                                        & 
  • branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90

    r10181 r10276  
    251251      CALL lbc_lnk ( fr_iv , 'V', 1. ) 
    252252       
    253 !!*****JUST ADDED BUT NEEDS CONFIRMING!!**** 
     253 
    254254! Snow and ice thickness 
    255       CALL cice2nemo(vice,thick_i,'T', 1. )  !!Do this for snow depth too? set thick_s. Duplicated below for embedded ice? 
    256  
    257 ! vice is volume per unit area of grid cell = thickness 
     255! vice, vsno is volume per unit area of grid cell = thickness 
     256      CALL cice2nemo(vice,thick_i,'T', 1. ) 
     257      CALL cice2nemo(vsno,thick_s,'T', 1. ) 
    258258       
    259       IF ( (ksbc == jp_flx) .OR. (ksbc == jp_purecpl) ) THEN ! Confirm what this if loop is for 
     259      IF ( (ksbc == jp_flx) .OR. (ksbc == jp_purecpl) ) THEN 
    260260         DO jl = 1,ncat 
    261261            CALL cice2nemo(vsnon(:,:,jl,:),ht_s(:,:,jl),'T', 1. ) 
     
    263263         ENDDO 
    264264      ENDIF 
    265        
     265 
     266 
    266267! T point to U point 
    267268! T point to V point 
     269 
     270! Sea ice thickness 
    268271      thick_iu(:,:)=0.0 
    269272      thick_iv(:,:)=0.0 
     
    278281      CALL lbc_lnk ( thick_iv , 'V', 1. ) 
    279282 
    280 !!**********************************************************      
     283! Snow depth 
     284      thick_su(:,:)=0.0 
     285      thick_sv(:,:)=0.0 
     286      DO jj=1,jpjm1 
     287         DO ji=1,jpim1 
     288            thick_su(ji,jj)=0.5*(thick_s(ji,jj)+thick_s(ji+1,jj))*umask(ji,jj,1) 
     289            thick_sv(ji,jj)=0.5*(thick_s(ji,jj)+thick_s(ji,jj+1))*vmask(ji,jj,1) 
     290         ENDDO 
     291      ENDDO 
     292 
     293      CALL lbc_lnk ( thick_su , 'U', 1. ) 
     294      CALL lbc_lnk ( thick_sv , 'V', 1. )       
    281295       
    282296 
Note: See TracChangeset for help on using the changeset viewer.