Changeset 8764
- Timestamp:
- 2017-11-21T13:15:50+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/r6232_HZG_WAVE-coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbcflx.F90
r8756 r8764 30 30 PUBLIC sbc_flx ! routine called by step.F90 31 31 32 INTEGER :: jpfld = 6 ! maximum number of files to read 33 INTEGER :: jp_utau ! index of wind stress (i-component) file 34 INTEGER :: jp_vtau ! index of wind stress (j-component) file 35 INTEGER :: jp_qtot ! index of total (non solar+solar) heat file 36 INTEGER :: jp_qsr ! index of solar heat file 37 INTEGER :: jp_emp ! index of evaporation-precipation file 38 INTEGER :: jp_press ! index of pressure for UKMO shelf fluxes 32 INTEGER , PARAMETER :: jpfld = 5 ! maximum number of files to read 33 INTEGER , PARAMETER :: jp_utau = 1 ! index of wind stress (i-component) file 34 INTEGER , PARAMETER :: jp_vtau = 2 ! index of wind stress (j-component) file 35 INTEGER , PARAMETER :: jp_qtot = 3 ! index of total (non solar+solar) heat file 36 INTEGER , PARAMETER :: jp_qsr = 4 ! index of solar heat file 37 INTEGER , PARAMETER :: jp_emp = 5 ! index of evaporation-precipation file 39 38 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf ! structure of input fields (file informations, fields read) 40 39 LOGICAL , PUBLIC :: ln_shelf_flx = .FALSE. ! UKMO SHELF specific flux flag … … 93 92 CHARACTER(len=100) :: cn_dir ! Root directory for location of flx files 94 93 NAMELIST/namsbc_flx/ ln_shelf_flx, ln_rel_wind, rn_wfac ! Put here to allow merging with another UKMO branch 95 LOGICAL :: ln_readtau ! Is it necessary to read tau from file?96 94 TYPE(FLD_N), DIMENSION(jpfld) :: slf_i ! array of namelist information structures 97 95 TYPE(FLD_N) :: sn_utau, sn_vtau, sn_qtot, sn_qsr, sn_emp ! informations about the fields to be read … … 99 97 !!--------------------------------------------------------------------- 100 98 ! 101 ln_readtau = .NOT. (ln_wave .AND. ln_tauw )102 103 ! prepare the index of the fields that have to be read104 jpfld = 0105 IF( ln_readtau ) THEN106 jp_utau = jpfld+1107 jp_vtau = jpfld+2108 jpfld = jpfld+2109 ELSE110 jp_utau = 0 ; jp_vtau = 0111 ENDIF112 jp_qtot = jpfld+1113 jp_qsr = jpfld+2114 jp_emp = jpfld+3115 jp_press = jpfld+4116 jpfld = jpfld+4117 118 99 IF( kt == nit000 ) THEN ! First call kt=nit000 119 100 ! set file information … … 141 122 ! 142 123 ! ! store namelist information in an array 143 IF( ln_readtau ) THEN144 124 slf_i(jp_utau) = sn_utau ; slf_i(jp_vtau) = sn_vtau 145 ENDIF146 125 slf_i(jp_qtot) = sn_qtot ; slf_i(jp_qsr ) = sn_qsr 147 126 slf_i(jp_emp ) = sn_emp … … 167 146 168 147 !!UKMO SHELF wind speed relative to surface currents - put here to allow merging with coupling branch 169 IF( ln_shelf_flx .AND. ln_readtau) THEN148 IF( ln_shelf_flx ) THEN 170 149 CALL wrk_alloc( jpi,jpj, zwnd_i, zwnd_j ) 171 150 … … 199 178 ! ! add modification due to drag coefficient read from wave forcing 200 179 ! ! this code is inefficient but put here to allow merging with another UKMO branch 201 IF( ln_shelf_flx .AND. ln_readtau) THEN180 IF( ln_shelf_flx ) THEN 202 181 IF( ln_cdgw .AND. nn_drag == jp_std ) THEN 203 182 IF( cpl_wdrag ) THEN … … 233 212 ! 234 213 ! ! module of wind stress and wind speed at T-point 235 IF( ln_readtau ) THEN236 214 zcoef = 1. / ( zrhoa * zcdrag ) 237 215 !CDIR NOVERRCHK … … 255 233 taum(:,:) = taum(:,:) * tmask(:,:,1) ; wndm(:,:) = wndm(:,:) * tmask(:,:,1) 256 234 CALL lbc_lnk( taum(:,:), 'T', 1. ) ; CALL lbc_lnk( wndm(:,:), 'T', 1. ) 257 ENDIF258 235 259 236 IF( nitend-nit000 <= 100 .AND. lwp ) THEN ! control print (if less than 100 time-step asked) … … 271 248 ENDIF 272 249 ! 273 IF( ln_shelf_flx .AND. ln_readtau) THEN250 IF( ln_shelf_flx ) THEN 274 251 CALL wrk_dealloc( jpi,jpj, zwnd_i, zwnd_j ) 275 252 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.