Changeset 7169
- Timestamp:
- 2016-11-02T19:56:47+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_fa_am_dt_deltadelta_toa/NEMOGCM/NEMO/OPA_SRC/SBC/sbcflx_adj.F90
r7057 r7169 32 32 PUBLIC sbc_flx_adj_init ! routine called in sbcmod 33 33 34 !ky 01/11/2016 uncommented below two lines for test 34 35 !ky 16/10/2016 commented out below two lines 35 36 !ky 06/09/2016 uncommented below two lines for FA test 36 37 !ky 11/12/2015 recommented below two lines 37 38 !!ky 3/12/2015 uncommented below two lines for FA test! 38 !REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: erp !: evaporation damping [kg/m2/s]39 !REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qrp !: heat flux damping [w/m2]39 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: erp !: evaporation damping [kg/m2/s] 40 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qrp !: heat flux damping [w/m2] 40 41 41 42 ! !!* Namelist namsbc_flx_adj * … … 106 107 ! K.Y. 16/03/2016 Apply Arctic mask to heat flux adjustment 107 108 zqrp = ( 1. - 2.*only_arcmsk(ji,jj) ) & 108 & * sf_qrp(1)%fnow(ji,jj,1) & 109 & + delta_toa + delta_delta_toa 109 & * (sf_qrp(1)%fnow(ji,jj,1) & 110 & + delta_toa + delta_delta_toa) 111 ! & * sf_qrp(1)%fnow(ji,jj,1) & 112 ! & + delta_toa + delta_delta_toa 113 ! K.Y. 02/11/2016 recoded two lines above to only add delta_toas to FA regions 110 114 ! K.Y. 16/10/2016 added "&" to 2 lines above and 111 115 ! delta_toa, delta_delta_toa to above line … … 117 121 !ky 07/09/2016 copied 1 line above and modified as below for FA test 118 122 !ky 16/10/2016 commented out 1 line below 119 !qrp(ji,jj) = zqrp 123 !ky 01/11/2016 uncommented 1 line below for test 124 qrp(ji,jj) = zqrp 120 125 qns(ji,jj) = qns(ji,jj) + zqrp 121 126 END DO 122 127 END DO 128 !ky 01/11/2016 uncommented 1 line below for test 123 129 !ky 16/10/2016 commented out below 1 line below 124 130 !ky 06/09/2016 uncommented below 1 line below for FA test! 125 131 !ky 11/12/2015 recommented out below 1 line below 126 132 !!ky 3/12/2015 uncommented below 1 line below for FA test! 127 !CALL iom_put( "qrp", qrp ) ! heat flux damping 133 CALL iom_put( "qrp", qrp ) ! heat flux damping 134 !ky 01/11/2016 added 1 line below for test 135 CALL iom_put( "only_arcmsk", only_arcmsk ) ! arctic mask 128 136 ENDIF 129 137 ! … … 142 150 !!ky 3/12/2015 1 line below for FA test! 143 151 !erp(ji,jj) = sf_erp(1)%fnow(ji,jj,1) 152 !ky 01/11/2016 uncommented two lines below for test. erp is freshwater flux. 144 153 !ky 16/10/2016 commented out below two lines 145 154 !ky 06/09/2016 copied line above and changed to below two lines for FA test! 146 !erp(ji,jj) = ( 1. - 2.*rnfmsk_arcmsk(ji,jj) ) & ! No damping in vicinity of river mouths147 !& * sf_erp(1)%fnow(ji,jj,1)155 erp(ji,jj) = ( 1. - 2.*rnfmsk_arcmsk(ji,jj) ) & ! No damping in vicinity of river mouths 156 & * sf_erp(1)%fnow(ji,jj,1) 148 157 sfx(ji,jj) = sfx(ji,jj) + zerp ! salt flux 149 158 END DO 150 159 END DO 160 !ky 01/11/2016 uncommented below one line for test 151 161 !ky 16/10/2016 commented out below one line 152 162 !ky 06/09/2016 uncommented below one line for FA test! 153 163 !ky 11/12/2015 recommented out below one line 154 164 !!ky 3/12/2015 uncommented below one line for FA test! 155 !CALL iom_put( "erp", erp ) ! freshwater flux damping 165 CALL iom_put( "erp", erp ) ! freshwater flux damping 166 !ky 01/11/2016 added 1 line below for test 167 CALL iom_put( "rnfmsk_arcmsk", rnfmsk_arcmsk ) ! river mough & arctic 156 168 ! 157 169 ELSEIF( nn_flxadjfw == 2 ) THEN !* Salinity damping term (volume flux (emp) and associated heat flux (qns) … … 167 179 !erp(ji,jj) = sf_erp(1)%fnow(ji,jj,1) 168 180 !ky 06/09/2016 copied line above and changed to below line for FA test! 181 !ky 01/11/2016 uncommented below line for test 169 182 !ky 16/10/2016 commented out below line 170 !erp(ji,jj) = zerp183 erp(ji,jj) = zerp 171 184 emp(ji,jj) = emp (ji,jj) + zerp 172 185 qns(ji,jj) = qns(ji,jj) - zerp * rcp * sst_m(ji,jj) 173 186 END DO 174 187 END DO 188 !ky 01/11/2016 uncommented below 1 line for test 175 189 !ky 16/10/2016 commented out below 1 line 176 190 !ky 06/09/2016 uncommented below 1 line for FA test! 177 191 !ky 11/12/2015 recommented out below 1 line 178 192 !!ky 3/12/2015 uncommented below 1 line for FA test! 179 !CALL iom_put( "erp", erp ) ! freshwater flux damping 193 CALL iom_put( "erp", erp ) ! freshwater flux damping 194 !ky 01/11/2016 added 1 line below for test 195 CALL iom_put( "rnfmsk_arcmsk", rnfmsk_arcmsk ) ! river mough & arctic 180 196 ENDIF 181 197 ! … … 238 254 ! 239 255 ! !* Allocate erp and qrp array 256 !ky 01/11/2016 uncommented out below two lines for test 240 257 !ky 16/10/2016 commented out below two lines 241 258 !ky 06/09/2016 uncommented below two lines for FA test! 242 259 !ky 11/12/2015 recommented out below two lines 243 260 !!ky 3/12/2015 uncommented below two lines for FA test! 244 !ALLOCATE( qrp(jpi,jpj), erp(jpi,jpj), STAT=ierror )245 !IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_ssr: unable to allocate erp and qrp array' )261 ALLOCATE( qrp(jpi,jpj), erp(jpi,jpj), STAT=ierror ) 262 IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_ssr: unable to allocate erp and qrp array' ) 246 263 ! 247 264 IF( nn_flxadjht == 1 ) THEN !* set sf_qrp structure & allocate arrays … … 274 291 ! 275 292 !ky!! !* Initialize qrp and erp if no restoring 293 !ky 01/11/2016 uncommented below two lines for test 276 294 !ky 16/10/2016 commented out below two lines 277 295 !ky 06/09/2016 below two lines for FA test! 278 296 !ky 11/12/2015 commented out below two lines 279 297 !!ky 3/12/2015 below two lines for FA test! 280 !IF( nn_flxadjht /= 1 ) qrp(:,:) = 0._wp281 !IF( nn_flxadjfw /= 1 .OR. nn_flxadjfw /= 2 ) erp(:,:) = 0._wp298 IF( nn_flxadjht /= 1 ) qrp(:,:) = 0._wp 299 IF( nn_flxadjfw /= 1 .OR. nn_flxadjfw /= 2 ) erp(:,:) = 0._wp 282 300 !!ky!!IF( nn_sstr /= 1 ) qrp(:,:) = 0._wp 283 301 !!ky!!IF( nn_sssr /= 1 .OR. nn_sssr /= 2 ) erp(:,:) = 0._wp
Note: See TracChangeset
for help on using the changeset viewer.