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 6166 for branches/UKMO – NEMO

Changeset 6166 for branches/UKMO


Ignore:
Timestamp:
2015-12-24T16:20:28+01:00 (9 years ago)
Author:
kingr
Message:

More CICE variable declarations to use with key_asminc.

Location:
branches/UKMO/dev_r5518_CICE_with_key_asminc/NEMOGCM/NEMO/OPA_SRC/SBC
Files:
2 edited

Legend:

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

    r6163 r6166  
    105105   INTEGER , PUBLIC, PARAMETER ::   jpl = ncat 
    106106   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   u_ice, v_ice          ! jpi, jpj 
     107    
     108   ! 
     109   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   ndaice_da          !: NEMO fresh water flux to ocean due to data assim 
     110   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   nfresh_da          !: NEMO salt flux to ocean due to data assim 
     111   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   nfsalt_da          !: NEMO ice concentration change/second from data assim 
     112       
    107113#endif 
    108114    
     
    157163                ss_iov(jpi,jpj)       , fr_iu(jpi,jpj)        , fr_iv(jpi,jpj)        , & 
    158164                a_i(jpi,jpj,ncat)     , topmelt(jpi,jpj,ncat) , botmelt(jpi,jpj,ncat) , & 
     165                ndaice_da(jpi,jpj)    , nfresh_da(jpi,jpj)    , nfsalt_da(jpi,jpj)    , & 
    159166                STAT= ierr(1) ) 
    160167      IF( ln_cpl )   ALLOCATE( u_ice(jpi,jpj)        , fr1_i0(jpi,jpj)       , tn_ice (jpi,jpj,1)    , & 
  • branches/UKMO/dev_r5518_CICE_with_key_asminc/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90

    r6163 r6166  
    5353                fresh_ai,fhocn_ai,fswthru_ai,frzmlt,          & 
    5454                flatn_f,fsurfn_f,fcondtopn_f,                    & 
     55                daice_da,fresh_da,fsalt_da,                    & 
    5556                uatm,vatm,wind,fsw,flw,Tair,potT,Qa,rhoa,zlvl,   & 
    5657                swvdr,swvdf,swidr,swidf 
     
    283284  
    284285      CALL wrk_dealloc( jpi,jpj, ztmp1, ztmp2 ) 
     286 
     287      ! Initialize fresh water and salt fluxes from data assim    
     288      !  and data assimilation index to cice  
     289      nfresh_da(:,:) = 0.0    
     290      nfsalt_da(:,:) = 0.0    
     291      ndaice_da(:,:) = 0.0          
    285292      ! 
    286293      IF( nn_timing == 1 )  CALL timing_stop('cice_sbc_init') 
     
    431438      ENDIF 
    432439 
     440#if defined key_asminc 
     441!Ice concentration change (from assimilation) 
     442      ztmp(:,:)=ndaice_da(:,:)*tmask(:,:,1) 
     443      Call nemo2cice(ztmp,daice_da,'T', 1. ) 
     444#endif  
     445 
    433446! Snowfall 
    434447! Ensure fsnow is positive (as in CICE routine prepare_forcing) 
     
    684697         snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) / dt 
    685698      ENDIF 
     699 
     700#if defined key_asminc 
     701! Import fresh water and salt flux due to seaice da 
     702      CALL cice2nemo(fresh_da, nfresh_da,'T',1.0) 
     703      CALL cice2nemo(fsalt_da, nfsalt_da,'T',1.0) 
     704#endif 
    686705 
    687706! Release work space 
Note: See TracChangeset for help on using the changeset viewer.