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 4748 for branches/2014/dev_r4650_UKMO13_CICE_changes_take2/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90 – NEMO

Ignore:
Timestamp:
2014-08-18T10:33:45+02:00 (10 years ago)
Author:
timgraham
Message:

Added key_cice5 to select use of CICE5 model. This is used so that the correct variable names are used in the CICE5 version
Modified all references to key_cice to an "or" so that they will be triggered by the key_cice5 key as well (assuming the code sections don't require chanegs for CICE5).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO13_CICE_changes_take2/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90

    r4627 r4748  
    44   !! To couple with sea ice model CICE (LANL) 
    55   !!===================================================================== 
    6 #if defined key_cice 
     6#if defined key_cice || defined key_cice5 
    77   !!---------------------------------------------------------------------- 
    88   !!   'key_cice' :                                     CICE sea-ice model 
     
    2323   USE daymod          ! calendar 
    2424   USE fldread         ! read input fields 
    25  
    2625   USE sbc_oce         ! Surface boundary condition: ocean fields 
    2726   USE sbc_ice         ! Surface boundary condition: ice   fields 
     
    3837   USE ice_calendar, only: dt 
    3938   USE ice_state, only: aice,aicen,uvel,vvel,vsno,vsnon,vice,vicen 
     39# if defined key_cice5 
     40   USE ice_flux, only: strax,stray,strocnx,strocny,frain,fsnow,  & 
     41                sst,sss,uocn,vocn,ss_tltx,ss_tlty,fsalt_ai,     & 
     42                fresh_ai,fhocn_ai,fswthru_ai,frzmlt,          & 
     43                flatn_f,fsurfn_f,fcondtopn_f,                    & 
     44                uatm,vatm,wind,fsw,flw,Tair,potT,Qa,rhoa,zlvl,   & 
     45                swvdr,swvdf,swidr,swidf 
     46   USE ice_therm_shared, only: calc_Tsfc 
     47#else 
    4048   USE ice_flux, only: strax,stray,strocnx,strocny,frain,fsnow,  & 
    4149                sst,sss,uocn,vocn,ss_tltx,ss_tlty,fsalt_gbm,     & 
     
    4452                uatm,vatm,wind,fsw,flw,Tair,potT,Qa,rhoa,zlvl,   & 
    4553                swvdr,swvdf,swidr,swidf 
     54   USE ice_therm_vertical, only: calc_Tsfc 
     55#endif 
    4656   USE ice_forcing, only: frcvdr,frcvdf,frcidr,frcidf 
    4757   USE ice_atmo, only: calc_strair 
    48    USE ice_therm_vertical, only: calc_Tsfc 
    4958 
    5059   USE CICE_InitMod 
     
    524533      ENDIF 
    525534 
     535#if defined key_cice5 
     536      CALL cice2nemo(fresh_ai,ztmp1,'T', 1. ) 
     537      CALL cice2nemo(fsalt_ai,ztmp2,'T', 1. ) 
     538#else 
    526539      CALL cice2nemo(fresh_gbm,ztmp1,'T', 1. ) 
    527540      CALL cice2nemo(fsalt_gbm,ztmp2,'T', 1. ) 
     541#endif 
    528542 
    529543! Check to avoid unphysical expression when ice is forming (ztmp1 negative) 
     
    557571! Now add in ice / snow related terms 
    558572! [fswthru will be zero unless running with calc_Tsfc=T in CICE] 
     573#if defined key_cice5 
     574      CALL cice2nemo(fswthru_ai,ztmp1,'T', 1. ) 
     575#else 
    559576      CALL cice2nemo(fswthru_gbm,ztmp1,'T', 1. ) 
     577#endif 
    560578      qsr(:,:)=qsr(:,:)+ztmp1(:,:) 
    561579      CALL lbc_lnk( qsr , 'T', 1. ) 
     
    567585      ENDDO 
    568586 
     587#if defined key_cice5 
     588      CALL cice2nemo(fhocn_ai,ztmp1,'T', 1. ) 
     589#else 
    569590      CALL cice2nemo(fhocn_gbm,ztmp1,'T', 1. ) 
     591#endif 
    570592      qns(:,:)=qns(:,:)+nfrzmlt(:,:)+ztmp1(:,:) 
    571593 
Note: See TracChangeset for help on using the changeset viewer.