Changeset 7044
- Timestamp:
- 2016-10-19T15:40:24+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_haney_arctic_mask/NEMOGCM/NEMO/OPA_SRC/SBC/sbcflx_adj.F90
r7031 r7044 32 32 PUBLIC sbc_flx_adj_init ! routine called in sbcmod 33 33 34 !ky 06/09/2016 uncommented below two lines for FA test35 34 !ky 11/12/2015 recommented below two lines 36 35 !!ky 3/12/2015 uncommented below two lines for FA test! 37 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: erp !: evaporation damping [kg/m2/s]38 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qrp !: heat flux damping [w/m2]36 !REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: erp !: evaporation damping [kg/m2/s] 37 !REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qrp !: heat flux damping [w/m2] 39 38 40 39 ! !!* Namelist namsbc_flx_adj * … … 103 102 & * sf_qrp(1)%fnow(ji,jj,1) 104 103 !zqrp = sf_qrp(1)%fnow(ji,jj,1) 105 !ky 07/09/2016 copied 1 line below for FA test106 104 !ky 11/12/2015 commented out 1 line below 107 105 !!ky 3/12/2015 1 line below for FA test! 108 106 !qrp(ji,jj) = sf_qrp(1)%fnow(ji,jj,1) 109 !ky 07/09/2016 copied 1 line above and modified as below for FA test110 qrp(ji,jj) = zqrp111 107 qns(ji,jj) = qns(ji,jj) + zqrp 112 108 END DO 113 109 END DO 114 !ky 06/09/2016 uncommented below 1 line below for FA test!115 110 !ky 11/12/2015 recommented out below 1 line below 116 111 !!ky 3/12/2015 uncommented below 1 line below for FA test! 117 CALL iom_put( "qrp", qrp ) ! heat flux damping112 !CALL iom_put( "qrp", qrp ) ! heat flux damping 118 113 ENDIF 119 114 ! … … 132 127 !!ky 3/12/2015 1 line below for FA test! 133 128 !erp(ji,jj) = sf_erp(1)%fnow(ji,jj,1) 134 !ky 06/09/2016 copied line above and changed to below two lines for FA test!135 erp(ji,jj) = ( 1. - 2.*rnfmsk_arcmsk(ji,jj) ) & ! No damping in vicinity of river mouths136 & * sf_erp(1)%fnow(ji,jj,1)137 129 sfx(ji,jj) = sfx(ji,jj) + zerp ! salt flux 138 130 END DO 139 131 END DO 140 !ky 06/09/2016 uncommented below one line for FA test!141 132 !ky 11/12/2015 recommented out below one line 142 133 !!ky 3/12/2015 uncommented below one line for FA test! 143 CALL iom_put( "erp", erp ) ! freshwater flux damping134 !CALL iom_put( "erp", erp ) ! freshwater flux damping 144 135 ! 145 136 ELSEIF( nn_flxadjfw == 2 ) THEN !* Salinity damping term (volume flux (emp) and associated heat flux (qns) … … 154 145 !!ky 3/12/2015 1 line below for FA test! 155 146 !erp(ji,jj) = sf_erp(1)%fnow(ji,jj,1) 156 !ky 06/09/2016 copied line above and changed to below line for FA test!157 erp(ji,jj) = zerp158 147 emp(ji,jj) = emp (ji,jj) + zerp 159 148 qns(ji,jj) = qns(ji,jj) - zerp * rcp * sst_m(ji,jj) 160 149 END DO 161 150 END DO 162 !ky 06/09/2016 uncommented below 1 line for FA test!163 151 !ky 11/12/2015 recommented out below 1 line 164 152 !!ky 3/12/2015 uncommented below 1 line for FA test! 165 CALL iom_put( "erp", erp ) ! freshwater flux damping153 !CALL iom_put( "erp", erp ) ! freshwater flux damping 166 154 ENDIF 167 155 ! … … 222 210 ! 223 211 ! !* Allocate erp and qrp array 224 !ky 06/09/2016 uncommented below two lines for FA test!225 212 !ky 11/12/2015 recommented out below two lines 226 213 !!ky 3/12/2015 uncommented below two lines for FA test! 227 ALLOCATE( qrp(jpi,jpj), erp(jpi,jpj), STAT=ierror )228 IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_ssr: unable to allocate erp and qrp array' )214 !ALLOCATE( qrp(jpi,jpj), erp(jpi,jpj), STAT=ierror ) 215 !IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_ssr: unable to allocate erp and qrp array' ) 229 216 ! 230 217 IF( nn_flxadjht == 1 ) THEN !* set sf_qrp structure & allocate arrays … … 257 244 ! 258 245 !ky!! !* Initialize qrp and erp if no restoring 259 !ky 06/09/2016 below two lines for FA test!260 246 !ky 11/12/2015 commented out below two lines 261 247 !!ky 3/12/2015 below two lines for FA test! 262 IF( nn_flxadjht /= 1 ) qrp(:,:) = 0._wp263 IF( nn_flxadjfw /= 1 .OR. nn_flxadjfw /= 2 ) erp(:,:) = 0._wp248 !IF( nn_flxadjht /= 1 ) qrp(:,:) = 0._wp 249 !IF( nn_flxadjfw /= 1 .OR. nn_flxadjfw /= 2 ) erp(:,:) = 0._wp 264 250 !!ky!!IF( nn_sstr /= 1 ) qrp(:,:) = 0._wp 265 251 !!ky!!IF( nn_sssr /= 1 .OR. nn_sssr /= 2 ) erp(:,:) = 0._wp
Note: See TracChangeset
for help on using the changeset viewer.