- Timestamp:
- 2019-12-11T12:09:17+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OCE/SBC/sbc_oce.F90
r12166 r12179 2 2 !!====================================================================== 3 3 !! *** MODULE sbc_oce *** 4 !! Surface module : variables defined in core memory 4 !! Surface module : variables defined in core memory 5 5 !!====================================================================== 6 6 !! History : 3.0 ! 2006-06 (G. Madec) Original code … … 9 9 !! - ! 2010-11 (G. Madec) ice-ocean stress always computed at each ocean time-step 10 10 !! 3.3 ! 2010-10 (J. Chanut, C. Bricaud) add the surface pressure forcing 11 !! 4.0 ! 2012-05 (C. Rousset) add attenuation coef for use in ice model 11 !! 4.0 ! 2012-05 (C. Rousset) add attenuation coef for use in ice model 12 12 !! 4.0 ! 2016-06 (L. Brodeau) new unified bulk routine (based on AeroBulk) 13 !! 4.0 ! 2019-03 (F. Lemarié, G. Samson) add compatibility with ABL mode 13 !! 4.0 ! 2019-03 (F. Lemarié, G. Samson) add compatibility with ABL mode 14 14 !!---------------------------------------------------------------------- 15 15 … … 27 27 PUBLIC sbc_oce_alloc ! routine called in sbcmod.F90 28 28 PUBLIC sbc_tau2wnd ! routine called in several sbc modules 29 29 30 30 !!---------------------------------------------------------------------- 31 31 !! Namelist for the Ocean Surface Boundary Condition … … 45 45 LOGICAL , PUBLIC :: ln_dm2dc !: Daily mean to Diurnal Cycle short wave (qsr) 46 46 LOGICAL , PUBLIC :: ln_rnf !: runoffs / runoff mouths 47 LOGICAL , PUBLIC :: ln_ssr !: Sea Surface restoring on SST and/or SSS 47 LOGICAL , PUBLIC :: ln_ssr !: Sea Surface restoring on SST and/or SSS 48 48 LOGICAL , PUBLIC :: ln_apr_dyn !: Atmospheric pressure forcing used on dynamics (ocean & ice) 49 49 INTEGER , PUBLIC :: nn_ice !: flag for ice in the surface boundary condition (=0/1/2/3) … … 51 51 ! !: =F levitating ice (no presure effect) with mass and salt exchanges 52 52 ! !: =T embedded sea-ice (pressure effect + mass and salt exchanges) 53 INTEGER , PUBLIC :: nn_components !: flag for sbc module (including sea-ice) coupling mode (see component definition below) 54 INTEGER , PUBLIC :: nn_fwb !: FreshWater Budget: 55 ! !: = 0 unchecked 53 INTEGER , PUBLIC :: nn_components !: flag for sbc module (including sea-ice) coupling mode (see component definition below) 54 INTEGER , PUBLIC :: nn_fwb !: FreshWater Budget: 55 ! !: = 0 unchecked 56 56 ! !: = 1 global mean of e-p-r set to zero at each nn_fsbc time step 57 57 ! !: = 2 annual global mean of e-p-r set to zero … … 81 81 INTEGER , PUBLIC, PARAMETER :: jp_purecpl = 5 !: Pure ocean-atmosphere Coupled formulation 82 82 INTEGER , PUBLIC, PARAMETER :: jp_none = 6 !: for OPA when doing coupling via SAS module 83 84 !!---------------------------------------------------------------------- 85 !! Stokes drift parametrization definition 83 84 !!---------------------------------------------------------------------- 85 !! Stokes drift parametrization definition 86 86 !!---------------------------------------------------------------------- 87 87 INTEGER , PUBLIC, PARAMETER :: jp_breivik_2014 = 0 !: Breivik 2014: v_z=v_0*[exp(2*k*z)/(1-8*k*z)] 88 INTEGER , PUBLIC, PARAMETER :: jp_li_2017 = 1 !: Li et al 2017: Stokes drift based on Phillips spectrum (Breivik 2016) 89 90 INTEGER , PUBLIC, PARAMETER :: jp_peakfr = 2 !: Li et al 2017: using the peak wave number read from wave model instead 91 88 INTEGER , PUBLIC, PARAMETER :: jp_li_2017 = 1 !: Li et al 2017: Stokes drift based on Phillips spectrum (Breivik 2016) 89 ! with depth averaged profile 90 INTEGER , PUBLIC, PARAMETER :: jp_peakfr = 2 !: Li et al 2017: using the peak wave number read from wave model instead 91 ! of the inverse depth scale 92 92 LOGICAL , PUBLIC :: ll_st_bv2014 = .FALSE. ! logical indicator, .true. if Breivik 2014 parameterisation is active. 93 93 LOGICAL , PUBLIC :: ll_st_li2017 = .FALSE. ! logical indicator, .true. if Li 2017 parameterisation is active. … … 98 98 !! component definition 99 99 !!---------------------------------------------------------------------- 100 INTEGER , PUBLIC, PARAMETER :: jp_iam_nemo = 0 !: Initial single executable configuration 101 100 INTEGER , PUBLIC, PARAMETER :: jp_iam_nemo = 0 !: Initial single executable configuration 101 ! (no internal OASIS coupling) 102 102 INTEGER , PUBLIC, PARAMETER :: jp_iam_opa = 1 !: Multi executable configuration - OPA component 103 103 ! (internal OASIS coupling) 104 104 INTEGER , PUBLIC, PARAMETER :: jp_iam_sas = 2 !: Multi executable configuration - SAS component 105 105 ! (internal OASIS coupling) 106 106 !!---------------------------------------------------------------------- 107 107 !! Ocean Surface Boundary Condition fields … … 112 112 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: utau , utau_b !: sea surface i-stress (ocean referential) [N/m2] 113 113 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: vtau , vtau_b !: sea surface j-stress (ocean referential) [N/m2] 114 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: taum !: module of sea surface stress (at T-point) [N/m2] 114 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: taum !: module of sea surface stress (at T-point) [N/m2] 115 115 !! wndm is used compute surface gases exchanges in ice-free ocean or leads 116 116 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: wndm !: wind speed module at T-point (=|U10m-Uoce|) [m/s] 117 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rhoa !: air density at "rn_zu" m above the sea [kg/m3] !LB117 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rhoa !: air density at "rn_zu" m above the sea [kg/m3] 118 118 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qsr !: sea heat flux: solar [W/m2] 119 119 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qns , qns_b !: sea heat flux: non solar [W/m2] … … 124 124 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_tot !: total E-P over ocean and ice [Kg/m2/s] 125 125 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fmmflx !: freshwater budget: freezing/melting [Kg/m2/s] 126 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rnf , rnf_b !: river runoff [Kg/m2/s] 127 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fwficb , fwficb_b !: iceberg melting [Kg/m2/s] 126 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rnf , rnf_b !: river runoff [Kg/m2/s] 127 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fwficb , fwficb_b !: iceberg melting [Kg/m2/s] 128 128 !! 129 129 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: sbc_tsc, sbc_tsc_b !: sbc content trend [K.m/s] jpi,jpj,jpts … … 138 138 139 139 !!--------------------------------------------------------------------- 140 !! ABL Vertical Domain size 140 !! ABL Vertical Domain size 141 141 !!--------------------------------------------------------------------- 142 142 INTEGER , PUBLIC :: jpka = 2 !: ABL number of vertical levels (default definition) … … 154 154 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sss_m !: mean (nn_fsbc time-step) surface sea salinity [psu] 155 155 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ssh_m !: mean (nn_fsbc time-step) sea surface height [m] 156 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: tsk_m !: mean (nn_fsbc time-step) SKIN surface sea temperature [K] 156 157 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: e3t_m !: mean (nn_fsbc time-step) sea surface layer thickness [m] 157 158 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: frq_m !: mean (nn_fsbc time-step) fraction of solar net radiation absorbed in the 1st T level [-] … … 175 176 ! 176 177 ALLOCATE( utau(jpi,jpj) , utau_b(jpi,jpj) , taum(jpi,jpj) , & 177 & vtau(jpi,jpj) , vtau_b(jpi,jpj) , wndm(jpi,jpj) , rhoa(jpi,jpj) , STAT=ierr(1) ) 178 178 & vtau(jpi,jpj) , vtau_b(jpi,jpj) , wndm(jpi,jpj) , rhoa(jpi,jpj) , STAT=ierr(1) ) 179 ! 179 180 ALLOCATE( qns_tot(jpi,jpj) , qns (jpi,jpj) , qns_b(jpi,jpj), & 180 181 & qsr_tot(jpi,jpj) , qsr (jpi,jpj) , & 181 182 & emp (jpi,jpj) , emp_b(jpi,jpj) , & 182 183 & sfx (jpi,jpj) , sfx_b(jpi,jpj) , emp_tot(jpi,jpj), fmmflx(jpi,jpj), STAT=ierr(2) ) 183 184 ! 184 185 ALLOCATE( rnf (jpi,jpj) , sbc_tsc (jpi,jpj,jpts) , qsr_hc (jpi,jpj,jpk) , & 185 186 & rnf_b(jpi,jpj) , sbc_tsc_b(jpi,jpj,jpts) , qsr_hc_b(jpi,jpj,jpk) , & 186 187 & fwficb (jpi,jpj), fwficb_b(jpi,jpj), STAT=ierr(3) ) 187 188 ! 188 189 ALLOCATE( tprecip(jpi,jpj) , sprecip(jpi,jpj) , fr_i(jpi,jpj) , & 189 & atm_co2(jpi,jpj) , 190 & atm_co2(jpi,jpj) , tsk_m(jpi,jpj) , & 190 191 & ssu_m (jpi,jpj) , sst_m(jpi,jpj) , frq_m(jpi,jpj) , & 191 192 & ssv_m (jpi,jpj) , sss_m(jpi,jpj) , ssh_m(jpi,jpj) , STAT=ierr(4) ) … … 203 204 !!--------------------------------------------------------------------- 204 205 !! *** ROUTINE sbc_tau2wnd *** 205 !! 206 !! ** Purpose : Estimation of wind speed as a function of wind stress 206 !! 207 !! ** Purpose : Estimation of wind speed as a function of wind stress 207 208 !! 208 209 !! ** Method : |tau|=rhoa*Cd*|U|^2 … … 215 216 INTEGER :: ji, jj ! dummy indices 216 217 !!--------------------------------------------------------------------- 217 zcoef = 0.5 / ( zrhoa * zcdrag ) 218 zcoef = 0.5 / ( zrhoa * zcdrag ) 218 219 DO jj = 2, jpjm1 219 220 DO ji = fs_2, fs_jpim1 ! vect. opt. 220 ztx = utau(ji-1,jj ) + utau(ji,jj) 221 zty = vtau(ji ,jj-1) + vtau(ji,jj) 221 ztx = utau(ji-1,jj ) + utau(ji,jj) 222 zty = vtau(ji ,jj-1) + vtau(ji,jj) 222 223 ztau = SQRT( ztx * ztx + zty * zty ) 223 224 wndm(ji,jj) = SQRT ( ztau * zcoef ) * tmask(ji,jj,1)
Note: See TracChangeset
for help on using the changeset viewer.