Changeset 8757
- Timestamp:
- 2017-11-20T17:29:37+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/AMM15_v3_6_STABLE_package_UKEP/NEMOGCM/NEMO/OPA_SRC/SBC/sbcflx.F90
r8416 r8757 29 29 PUBLIC sbc_flx ! routine called by step.F90 30 30 31 INTEGER , PARAMETER:: jpfld = 6 ! maximum number of files to read32 INTEGER , PARAMETER :: jp_utau = 1! index of wind stress (i-component) file33 INTEGER , PARAMETER :: jp_vtau = 2! index of wind stress (j-component) file34 INTEGER , PARAMETER :: jp_qtot = 3! index of total (non solar+solar) heat file35 INTEGER , PARAMETER :: jp_qsr = 4! index of solar heat file36 INTEGER , PARAMETER :: jp_emp = 5! index of evaporation-precipation file37 INTEGER , PARAMETER :: jp_press = 6! index of pressure for UKMO shelf fluxes31 INTEGER :: jpfld = 6 ! maximum number of files to read 32 INTEGER :: jp_utau ! index of wind stress (i-component) file 33 INTEGER :: jp_vtau ! index of wind stress (j-component) file 34 INTEGER :: jp_qtot ! index of total (non solar+solar) heat file 35 INTEGER :: jp_qsr ! index of solar heat file 36 INTEGER :: jp_emp ! index of evaporation-precipation file 37 INTEGER :: jp_press ! index of pressure for UKMO shelf fluxes 38 38 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf ! structure of input fields (file informations, fields read) 39 39 LOGICAL , PUBLIC :: ln_shelf_flx = .FALSE. ! UKMO SHELF specific flux flag … … 104 104 !!--------------------------------------------------------------------- 105 105 ! 106 ln_readtau = .NOT. (ln_wave .AND. ln_tauw ) 107 108 ! prepare the index of the fields that have to be read 109 jpfld = 0 110 IF( ln_readtau ) THEN 111 jp_utau = jpfld+1 112 jp_vtau = jpfld+2 113 jpfld = jpfld+2 114 ELSE 115 jp_utau = 0 ; jp_vtau = 0 116 ENDIF 117 jp_qtot = jpfld+1 118 jp_qsr = jpfld+2 119 jp_emp = jpfld+3 120 jp_press = jpfld+4 121 jpfld = jpfld+4 122 106 123 IF( kt == nit000 ) THEN ! First call kt=nit000 107 124 ! set file information … … 153 170 154 171 !!UKMO SHELF wind speed relative to surface currents - put here to allow merging with coupling branch 155 IF( ln_shelf_flx ) THEN172 IF( ln_shelf_flx .AND. ln_readtau ) THEN 156 173 CALL wrk_alloc( jpi,jpj, zwnd_i, zwnd_j ) 157 174 … … 192 209 pressnow(ji,jj) = sf(jp_press)%fnow(ji,jj,1) 193 210 !! UKMO SHELF flux files contain wind speed not wind stress 211 IF( ln_readtau) THEN 194 212 totwindspd = sqrt(zwnd_i(ji,jj)*zwnd_i(ji,jj) + zwnd_j(ji,jj)*zwnd_j(ji,jj)) 195 213 cs = 0.63 + (0.066 * totwindspd) 196 214 utau(ji,jj) = cs * (rhoa/rau0) * zwnd_i(ji,jj) * totwindspd 197 215 vtau(ji,jj) = cs * (rhoa/rau0) * zwnd_j(ji,jj) * totwindspd 216 ENDIF 198 217 ELSE 218 IF( ln_readtau ) THEN 199 219 utau(ji,jj) = sf(jp_utau)%fnow(ji,jj,1) 200 220 vtau(ji,jj) = sf(jp_vtau)%fnow(ji,jj,1) 221 ENDIF 201 222 ENDIF 202 223 qsr (ji,jj) = sf(jp_qsr )%fnow(ji,jj,1) … … 252 273 ENDIF 253 274 ! 254 IF( ln_shelf_flx ) THEN275 IF( ln_shelf_flx .AND. ln_readtau ) THEN 255 276 CALL wrk_dealloc( jpi,jpj, zwnd_i, zwnd_j ) 256 277 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.