[e200b7a] | 1 | !********************************************************************** |
---|
| 2 | ! Copyright 1998,1999,2000,2001,2002,2005,2007,2008,2009,2010 * |
---|
| 3 | ! Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa, * |
---|
| 4 | ! Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann * |
---|
| 5 | ! * |
---|
| 6 | ! This file is part of FLEXPART. * |
---|
| 7 | ! * |
---|
| 8 | ! FLEXPART is free software: you can redistribute it and/or modify * |
---|
| 9 | ! it under the terms of the GNU General Public License as published by* |
---|
| 10 | ! the Free Software Foundation, either version 3 of the License, or * |
---|
| 11 | ! (at your option) any later version. * |
---|
| 12 | ! * |
---|
| 13 | ! FLEXPART is distributed in the hope that it will be useful, * |
---|
| 14 | ! but WITHOUT ANY WARRANTY; without even the implied warranty of * |
---|
| 15 | ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
---|
| 16 | ! GNU General Public License for more details. * |
---|
| 17 | ! * |
---|
| 18 | ! You should have received a copy of the GNU General Public License * |
---|
| 19 | ! along with FLEXPART. If not, see <http://www.gnu.org/licenses/>. * |
---|
| 20 | !********************************************************************** |
---|
| 21 | |
---|
| 22 | subroutine readspecies(id_spec,pos_spec) |
---|
| 23 | |
---|
| 24 | !***************************************************************************** |
---|
| 25 | ! * |
---|
| 26 | ! This routine reads names and physical constants of chemical species/ * |
---|
| 27 | ! radionuclides given in the parameter pos_spec * |
---|
| 28 | ! * |
---|
| 29 | ! Author: A. Stohl * |
---|
| 30 | ! * |
---|
| 31 | ! 11 July 1996 * |
---|
[8a65cb0] | 32 | ! * |
---|
[4fbe7a5] | 33 | ! Changes: * |
---|
| 34 | ! N. Kristiansen, 31.01.2013: Including parameters for in-cloud scavenging * |
---|
| 35 | ! * |
---|
[b4d29ce] | 36 | ! HSO, 13 August 2013 |
---|
| 37 | ! added optional namelist input |
---|
| 38 | ! * |
---|
[e200b7a] | 39 | !***************************************************************************** |
---|
| 40 | ! * |
---|
| 41 | ! Variables: * |
---|
[05cf28d] | 42 | ! decaytime(maxtable) half time for radiological decay * |
---|
| 43 | ! specname(maxtable) names of chemical species, radionuclides * |
---|
| 44 | ! weta_gas, wetb_gas Parameters for below-cloud scavenging of gasses * |
---|
| 45 | ! crain_aero,csnow_aero Parameters for below-cloud scavenging of aerosols * |
---|
| 46 | ! ccn_aero,in_aero Parameters for in-cloud scavenging of aerosols * |
---|
| 47 | ! ohcconst OH reaction rate constant C * |
---|
| 48 | ! ohdconst OH reaction rate constant D * |
---|
| 49 | ! ohnconst OH reaction rate constant n * |
---|
| 50 | ! id_spec SPECIES number as referenced in RELEASE file * |
---|
| 51 | ! id_pos position where SPECIES data shall be stored * |
---|
[e200b7a] | 52 | ! * |
---|
| 53 | ! Constants: * |
---|
| 54 | ! * |
---|
| 55 | !***************************************************************************** |
---|
| 56 | |
---|
| 57 | use par_mod |
---|
| 58 | use com_mod |
---|
| 59 | |
---|
| 60 | implicit none |
---|
| 61 | |
---|
| 62 | integer :: i, pos_spec,j |
---|
| 63 | integer :: idow,ihour,id_spec |
---|
| 64 | character(len=3) :: aspecnumb |
---|
| 65 | logical :: spec_found |
---|
| 66 | |
---|
[b4d29ce] | 67 | character(len=16) :: pspecies |
---|
[341f4b7] | 68 | real :: pdecay, pweta_gas, pwetb_gas, preldiff, phenry, pf0, pdensity, pdquer |
---|
[aa8c34a] | 69 | real :: pdsigma, pdryvel, pweightmolar, pohcconst, pohdconst, pohnconst, pkao |
---|
[341f4b7] | 70 | real :: pcrain_aero, pcsnow_aero, pccn_aero, pin_aero |
---|
[aa8c34a] | 71 | integer :: readerror, pspec_ass |
---|
[b4d29ce] | 72 | |
---|
[8a65cb0] | 73 | ! declare namelist |
---|
[b4d29ce] | 74 | namelist /species_params/ & |
---|
[341f4b7] | 75 | pspecies, pdecay, pweta_gas, pwetb_gas, & |
---|
| 76 | pcrain_aero, pcsnow_aero, pccn_aero, pin_aero, & |
---|
[8a65cb0] | 77 | preldiff, phenry, pf0, pdensity, pdquer, & |
---|
[78e62dc] | 78 | pdsigma, pdryvel, pweightmolar, pohcconst, pohdconst, pohnconst, pspec_ass, pkao |
---|
[b4d29ce] | 79 | |
---|
[341f4b7] | 80 | pspecies="" ! read failure indicator value |
---|
[b4d29ce] | 81 | pdecay=-999.9 |
---|
[341f4b7] | 82 | pweta_gas=-9.9E-09 |
---|
| 83 | pwetb_gas=0.0 |
---|
| 84 | pcrain_aero=-9.9E-09 |
---|
| 85 | pcsnow_aero=-9.9E-09 |
---|
| 86 | pccn_aero=-9.9E-09 |
---|
| 87 | pin_aero=-9.9E-09 |
---|
[b4d29ce] | 88 | preldiff=-9.9 |
---|
| 89 | phenry=0.0 |
---|
| 90 | pf0=0.0 |
---|
| 91 | pdensity=-9.9E09 |
---|
| 92 | pdquer=0.0 |
---|
| 93 | pdsigma=0.0 |
---|
| 94 | pdryvel=-9.99 |
---|
[8a65cb0] | 95 | pohcconst=-9.99 |
---|
| 96 | pohdconst=-9.9E-09 |
---|
[78e62dc] | 97 | pohnconst=2.0 |
---|
[b4d29ce] | 98 | pspec_ass=-9 |
---|
| 99 | pkao=-99.99 |
---|
[341f4b7] | 100 | pweightmolar=-999.9 |
---|
[b4d29ce] | 101 | |
---|
[8a65cb0] | 102 | ! Open the SPECIES file and read species names and properties |
---|
| 103 | !************************************************************ |
---|
[e200b7a] | 104 | specnum(pos_spec)=id_spec |
---|
| 105 | write(aspecnumb,'(i3.3)') specnum(pos_spec) |
---|
[b4d29ce] | 106 | open(unitspecies,file=path(1)(1:length(1))//'SPECIES/SPECIES_'//aspecnumb,status='old',form='formatted',err=998) |
---|
[8a65cb0] | 107 | !write(*,*) 'reading SPECIES',specnum(pos_spec) |
---|
[e200b7a] | 108 | |
---|
| 109 | ASSSPEC=.FALSE. |
---|
| 110 | |
---|
[8a65cb0] | 111 | ! try namelist input |
---|
[b4d29ce] | 112 | read(unitspecies,species_params,iostat=readerror) |
---|
| 113 | close(unitspecies) |
---|
[8a65cb0] | 114 | |
---|
[05cf28d] | 115 | if ((len(trim(pspecies)).eq.0).or.(readerror.ne.0)) then ! no namelist found |
---|
| 116 | if (lroot) write(*,*) "SPECIES file not in NAMELIST format, attempting to & |
---|
| 117 | &read as fixed format" |
---|
[b4d29ce] | 118 | |
---|
| 119 | readerror=1 |
---|
| 120 | |
---|
| 121 | open(unitspecies,file=path(1)(1:length(1))//'SPECIES/SPECIES_'//aspecnumb,status='old',err=998) |
---|
| 122 | |
---|
| 123 | do i=1,6 |
---|
| 124 | read(unitspecies,*) |
---|
| 125 | end do |
---|
[e200b7a] | 126 | |
---|
| 127 | read(unitspecies,'(a10)',end=22) species(pos_spec) |
---|
[8a65cb0] | 128 | ! write(*,*) species(pos_spec) |
---|
[e200b7a] | 129 | read(unitspecies,'(f18.1)',end=22) decay(pos_spec) |
---|
[8a65cb0] | 130 | ! write(*,*) decay(pos_spec) |
---|
[341f4b7] | 131 | read(unitspecies,'(e18.1)',end=22) weta_gas(pos_spec) |
---|
| 132 | ! write(*,*) weta_gas(pos_spec) |
---|
| 133 | read(unitspecies,'(f18.2)',end=22) wetb_gas(pos_spec) |
---|
| 134 | ! write(*,*) wetb_gas(pos_spec) |
---|
| 135 | read(unitspecies,'(e18.1)',end=22) crain_aero(pos_spec) |
---|
| 136 | ! write(*,*) crain_aero(pos_spec) |
---|
| 137 | read(unitspecies,'(f18.2)',end=22) csnow_aero(pos_spec) |
---|
| 138 | ! write(*,*) csnow_aero(pos_spec) |
---|
[8a65cb0] | 139 | !*** NIK 31.01.2013: including in-cloud scavening parameters |
---|
[341f4b7] | 140 | read(unitspecies,'(e18.1)',end=22) ccn_aero(pos_spec) |
---|
| 141 | ! write(*,*) ccn_aero(pos_spec) |
---|
| 142 | read(unitspecies,'(f18.2)',end=22) in_aero(pos_spec) |
---|
| 143 | ! write(*,*) in_aero(pos_spec) |
---|
[e200b7a] | 144 | read(unitspecies,'(f18.1)',end=22) reldiff(pos_spec) |
---|
[8a65cb0] | 145 | ! write(*,*) reldiff(pos_spec) |
---|
[e200b7a] | 146 | read(unitspecies,'(e18.1)',end=22) henry(pos_spec) |
---|
[8a65cb0] | 147 | ! write(*,*) henry(pos_spec) |
---|
[e200b7a] | 148 | read(unitspecies,'(f18.1)',end=22) f0(pos_spec) |
---|
[8a65cb0] | 149 | ! write(*,*) f0(pos_spec) |
---|
[e200b7a] | 150 | read(unitspecies,'(e18.1)',end=22) density(pos_spec) |
---|
[8a65cb0] | 151 | ! write(*,*) density(pos_spec) |
---|
[e200b7a] | 152 | read(unitspecies,'(e18.1)',end=22) dquer(pos_spec) |
---|
[05cf28d] | 153 | ! write(*,*) 'dquer(pos_spec):', dquer(pos_spec) |
---|
[e200b7a] | 154 | read(unitspecies,'(e18.1)',end=22) dsigma(pos_spec) |
---|
[8a65cb0] | 155 | ! write(*,*) dsigma(pos_spec) |
---|
[e200b7a] | 156 | read(unitspecies,'(f18.2)',end=22) dryvel(pos_spec) |
---|
[8a65cb0] | 157 | ! write(*,*) dryvel(pos_spec) |
---|
[e200b7a] | 158 | read(unitspecies,'(f18.2)',end=22) weightmolar(pos_spec) |
---|
[8a65cb0] | 159 | ! write(*,*) weightmolar(pos_spec) |
---|
| 160 | read(unitspecies,'(e18.2)',end=22) ohcconst(pos_spec) |
---|
| 161 | ! write(*,*) ohcconst(pos_spec) |
---|
| 162 | read(unitspecies,'(f8.2)',end=22) ohdconst(pos_spec) |
---|
| 163 | ! write(*,*) ohdconst(pos_spec) |
---|
[78e62dc] | 164 | read(unitspecies,'(f8.2)',end=22) ohnconst(pos_spec) |
---|
| 165 | ! write(*,*) ohnconst(pos_spec) |
---|
[e200b7a] | 166 | read(unitspecies,'(i18)',end=22) spec_ass(pos_spec) |
---|
[8a65cb0] | 167 | ! write(*,*) spec_ass(pos_spec) |
---|
[e200b7a] | 168 | read(unitspecies,'(f18.2)',end=22) kao(pos_spec) |
---|
[8a65cb0] | 169 | ! write(*,*) kao(pos_spec) |
---|
[e200b7a] | 170 | |
---|
[b4d29ce] | 171 | pspecies=species(pos_spec) |
---|
| 172 | pdecay=decay(pos_spec) |
---|
[341f4b7] | 173 | pweta_gas=weta_gas(pos_spec) |
---|
| 174 | pwetb_gas=wetb_gas(pos_spec) |
---|
| 175 | pcrain_aero=crain_aero(pos_spec) |
---|
| 176 | pcsnow_aero=csnow_aero(pos_spec) |
---|
| 177 | pccn_aero=ccn_aero(pos_spec) |
---|
| 178 | pin_aero=in_aero(pos_spec) |
---|
[b4d29ce] | 179 | preldiff=reldiff(pos_spec) |
---|
| 180 | phenry=henry(pos_spec) |
---|
| 181 | pf0=f0(pos_spec) |
---|
| 182 | pdensity=density(pos_spec) |
---|
| 183 | pdquer=dquer(pos_spec) |
---|
| 184 | pdsigma=dsigma(pos_spec) |
---|
| 185 | pdryvel=dryvel(pos_spec) |
---|
| 186 | pweightmolar=weightmolar(pos_spec) |
---|
[8a65cb0] | 187 | pohcconst=ohcconst(pos_spec) |
---|
| 188 | pohdconst=ohdconst(pos_spec) |
---|
[78e62dc] | 189 | pohnconst=ohnconst(pos_spec) |
---|
[b4d29ce] | 190 | pspec_ass=spec_ass(pos_spec) |
---|
| 191 | pkao=kao(pos_spec) |
---|
[e200b7a] | 192 | |
---|
[b4d29ce] | 193 | else |
---|
| 194 | |
---|
| 195 | species(pos_spec)=pspecies |
---|
| 196 | decay(pos_spec)=pdecay |
---|
[341f4b7] | 197 | weta_gas(pos_spec)=pweta_gas |
---|
| 198 | wetb_gas(pos_spec)=pwetb_gas |
---|
[c8fc724] | 199 | crain_aero(pos_spec)=pcrain_aero |
---|
| 200 | csnow_aero(pos_spec)=pcsnow_aero |
---|
[341f4b7] | 201 | ccn_aero(pos_spec)=pccn_aero |
---|
| 202 | in_aero(pos_spec)=pin_aero |
---|
[b4d29ce] | 203 | reldiff(pos_spec)=preldiff |
---|
| 204 | henry(pos_spec)=phenry |
---|
| 205 | f0(pos_spec)=pf0 |
---|
| 206 | density(pos_spec)=pdensity |
---|
| 207 | dquer(pos_spec)=pdquer |
---|
| 208 | dsigma(pos_spec)=pdsigma |
---|
| 209 | dryvel(pos_spec)=pdryvel |
---|
| 210 | weightmolar(pos_spec)=pweightmolar |
---|
[8a65cb0] | 211 | ohcconst(pos_spec)=pohcconst |
---|
| 212 | ohdconst(pos_spec)=pohdconst |
---|
[78e62dc] | 213 | ohnconst(pos_spec)=pohnconst |
---|
[b4d29ce] | 214 | spec_ass(pos_spec)=pspec_ass |
---|
| 215 | kao(pos_spec)=pkao |
---|
| 216 | |
---|
| 217 | endif |
---|
[e200b7a] | 218 | |
---|
[b4d29ce] | 219 | i=pos_spec |
---|
[e200b7a] | 220 | |
---|
[8a65cb0] | 221 | !NIK 16.02.2015 |
---|
| 222 | ! Check scavenging parameters given in SPECIES file |
---|
[9484483] | 223 | |
---|
[05cf28d] | 224 | if (lroot) then |
---|
[62e65c7] | 225 | ! ZHG 2016.04.07 Start of changes |
---|
| 226 | write(*,*) ' ' |
---|
| 227 | if (dquer(pos_spec) .gt.0) write(*,'(a,i3,a,a,a)') ' SPECIES: ', & |
---|
| 228 | &id_spec,' ', species(pos_spec),' (AEROSOL) ' |
---|
| 229 | if (dquer(pos_spec) .le.0) write(*,'(a,i3,a,a,a)') ' SPECIES: ', & |
---|
| 230 | &id_spec,' ', species(pos_spec),' (GAS) ' |
---|
| 231 | |
---|
[05cf28d] | 232 | ! Particles |
---|
| 233 | !********** |
---|
| 234 | if (dquer(pos_spec).gt.0) then |
---|
| 235 | if (ccn_aero(pos_spec) .gt. 0) then |
---|
| 236 | write(*,'(a,f5.2)') ' Particle CCN efficiency (CCNeff):', ccn_aero(pos_spec) |
---|
| 237 | else |
---|
| 238 | write(*,'(a)') ' Particle CCN efficiency (CCNeff): OFF' |
---|
| 239 | endif |
---|
| 240 | if (in_aero(pos_spec) .gt. 0) then |
---|
| 241 | write(*,'(a,f5.2)') ' Particle IN efficiency (INeff) :', in_aero(pos_spec) |
---|
| 242 | else |
---|
| 243 | write(*,'(a)') ' Particle IN efficiency (INeff) : OFF' |
---|
| 244 | endif |
---|
| 245 | if (crain_aero(pos_spec) .gt. 0) then |
---|
| 246 | write(*,'(a,f5.2)') ' Particle Rain efficiency (Crain) :', crain_aero(pos_spec) |
---|
| 247 | else |
---|
| 248 | write(*,'(a)') ' Particle Rain efficiency (Crain) : OFF' |
---|
| 249 | endif |
---|
| 250 | if (csnow_aero(pos_spec) .gt. 0) then |
---|
| 251 | write(*,'(a,f5.2)') ' Particle Snow efficiency (Csnow) :', csnow_aero(pos_spec) |
---|
| 252 | else |
---|
| 253 | write(*,'(a)') ' Particle Snow efficiency (Csnow) : OFF' |
---|
[5f9d14a] | 254 | end if |
---|
[05cf28d] | 255 | if (density(pos_spec) .gt. 0) then |
---|
| 256 | write(*,'(a)') ' Dry deposition is turned : ON' |
---|
| 257 | else |
---|
| 258 | write(*,'(a)') ' Dry deposition is (density<0) : OFF' |
---|
[5f9d14a] | 259 | end if |
---|
[05cf28d] | 260 | if (crain_aero(pos_spec).gt.10.0 .or. csnow_aero(pos_spec).gt.10.0 .or. & |
---|
| 261 | &ccn_aero(pos_spec).gt.1.0 .or. in_aero(pos_spec).gt.1.0) then |
---|
[5f9d14a] | 262 | write(*,*) '*******************************************' |
---|
[05cf28d] | 263 | write(*,*) ' WARNING: Particle Scavenging parameter likely out of range ' |
---|
| 264 | write(*,*) ' Likely range for Crain 0.0-10' |
---|
| 265 | write(*,*) ' Likely range for Csnow 0.0-10' |
---|
| 266 | write(*,*) ' Physical range for CCNeff 0.0-1' |
---|
| 267 | write(*,*) ' Physical range for INeff 0.0-1' |
---|
[5f9d14a] | 268 | write(*,*) '*******************************************' |
---|
| 269 | end if |
---|
[05cf28d] | 270 | else |
---|
| 271 | ! Gas |
---|
| 272 | !**** |
---|
| 273 | if (weta_gas(pos_spec) .gt. 0 .and. wetb_gas(pos_spec).gt.0) then |
---|
| 274 | write(*,*) ' Wet removal for gases is turned: ON' |
---|
| 275 | write(*,*) ' Gas below-cloud scavenging parameter A ', & |
---|
| 276 | &weta_gas(pos_spec) |
---|
| 277 | write(*,'(a,f5.2)') ' Gas below-cloud scavenging parameter B ', & |
---|
| 278 | &wetb_gas(pos_spec) |
---|
| 279 | else |
---|
| 280 | write(*,*) ' Wet removal for gases is turned: OFF ' |
---|
| 281 | end if |
---|
| 282 | if (reldiff(i).gt.0.) then |
---|
| 283 | write(*,*) ' Dry deposition for gases is turned: ON ' |
---|
| 284 | else |
---|
| 285 | write(*,*) ' Dry deposition for gases is turned: OFF ' |
---|
| 286 | end if |
---|
| 287 | if (weta_gas(pos_spec).gt.0.) then !if wet deposition is turned on |
---|
| 288 | if (weta_gas(pos_spec).gt.1E-04 .or. weta_gas(pos_spec).lt.1E-09 .or. & |
---|
| 289 | &wetb_gas(pos_spec).gt.0.8 .or. wetb_gas(pos_spec).lt.0.4) then |
---|
[5f9d14a] | 290 | write(*,*) '*******************************************' |
---|
[05cf28d] | 291 | write(*,*) ' WARNING: Gas below-cloud scavengig is out of likely range' |
---|
| 292 | write(*,*) ' Likely range for A is 1E-04 to 1E-08' |
---|
| 293 | write(*,*) ' Likely range for B is 0.60 to 0.80 ' |
---|
[5f9d14a] | 294 | write(*,*) '*******************************************' |
---|
| 295 | end if |
---|
| 296 | endif |
---|
[05cf28d] | 297 | |
---|
| 298 | if (((weta_gas(pos_spec).gt.0).or.(wetb_gas(pos_spec).gt.0)).and.& |
---|
| 299 | &(henry(pos_spec).le.0)) then |
---|
| 300 | if (dquer(pos_spec).le.0) goto 996 ! no particle, no henry set |
---|
[8a65cb0] | 301 | endif |
---|
| 302 | end if |
---|
[05cf28d] | 303 | end if |
---|
[b4d29ce] | 304 | |
---|
| 305 | if (spec_ass(pos_spec).gt.0) then |
---|
| 306 | spec_found=.FALSE. |
---|
| 307 | do j=1,pos_spec-1 |
---|
| 308 | if (spec_ass(pos_spec).eq.specnum(j)) then |
---|
| 309 | spec_ass(pos_spec)=j |
---|
| 310 | spec_found=.TRUE. |
---|
| 311 | ASSSPEC=.TRUE. |
---|
| 312 | endif |
---|
| 313 | end do |
---|
[05cf28d] | 314 | if (spec_found.eqv..false.) then |
---|
[b4d29ce] | 315 | goto 997 |
---|
[e200b7a] | 316 | endif |
---|
[b4d29ce] | 317 | endif |
---|
| 318 | |
---|
| 319 | if (dsigma(i).eq.1.) dsigma(i)=1.0001 ! avoid floating exception |
---|
| 320 | if (dsigma(i).eq.0.) dsigma(i)=1.0001 ! avoid floating exception |
---|
| 321 | |
---|
| 322 | if ((reldiff(i).gt.0.).and.(density(i).gt.0.)) then |
---|
| 323 | write(*,*) '#### FLEXPART MODEL ERROR! FILE "SPECIES" ####' |
---|
| 324 | write(*,*) '#### IS CORRUPT. SPECIES CANNOT BE BOTH ####' |
---|
| 325 | write(*,*) '#### PARTICLE AND GAS. ####' |
---|
| 326 | write(*,*) '#### SPECIES NUMBER',aspecnumb |
---|
| 327 | stop |
---|
| 328 | endif |
---|
[8a65cb0] | 329 | 20 continue |
---|
[e200b7a] | 330 | |
---|
| 331 | |
---|
[8a65cb0] | 332 | ! Read in daily and day-of-week variation of emissions, if available |
---|
| 333 | !******************************************************************* |
---|
| 334 | ! HSO: This is not yet implemented as namelist parameters |
---|
[e200b7a] | 335 | |
---|
[8a65cb0] | 336 | do j=1,24 ! initialize everything to no variation |
---|
| 337 | area_hour(i,j)=1. |
---|
| 338 | point_hour(i,j)=1. |
---|
| 339 | end do |
---|
| 340 | do j=1,7 |
---|
| 341 | area_dow(i,j)=1. |
---|
| 342 | point_dow(i,j)=1. |
---|
| 343 | end do |
---|
| 344 | |
---|
| 345 | if (readerror.ne.0) then ! text format input |
---|
[e200b7a] | 346 | |
---|
| 347 | read(unitspecies,*,end=22) |
---|
| 348 | do j=1,24 ! 24 hours, starting with 0-1 local time |
---|
| 349 | read(unitspecies,*) ihour,area_hour(i,j),point_hour(i,j) |
---|
| 350 | end do |
---|
| 351 | read(unitspecies,*) |
---|
| 352 | do j=1,7 ! 7 days of the week, starting with Monday |
---|
| 353 | read(unitspecies,*) idow,area_dow(i,j),point_dow(i,j) |
---|
| 354 | end do |
---|
| 355 | |
---|
[b4d29ce] | 356 | endif |
---|
| 357 | |
---|
| 358 | 22 close(unitspecies) |
---|
[e200b7a] | 359 | |
---|
[8a65cb0] | 360 | ! namelist output if requested |
---|
| 361 | if (nmlout.and.lroot) then |
---|
| 362 | open(unitspecies,file=path(2)(1:length(2))//'SPECIES_'//aspecnumb//'.namelist',access='append',status='replace',err=1000) |
---|
[b4d29ce] | 363 | write(unitspecies,nml=species_params) |
---|
| 364 | close(unitspecies) |
---|
| 365 | endif |
---|
| 366 | |
---|
| 367 | return |
---|
[e200b7a] | 368 | |
---|
[8a65cb0] | 369 | 996 write(*,*) '#####################################################' |
---|
[e200b7a] | 370 | write(*,*) '#### FLEXPART MODEL ERROR! #### ' |
---|
| 371 | write(*,*) '#### WET DEPOSITION SWITCHED ON, BUT NO HENRYS #### ' |
---|
| 372 | write(*,*) '#### CONSTANT IS SET ####' |
---|
| 373 | write(*,*) '#### PLEASE MODIFY SPECIES DESCR. FILE! #### ' |
---|
| 374 | write(*,*) '#####################################################' |
---|
| 375 | stop |
---|
| 376 | |
---|
| 377 | |
---|
[8a65cb0] | 378 | 997 write(*,*) '#####################################################' |
---|
[e200b7a] | 379 | write(*,*) '#### FLEXPART MODEL ERROR! #### ' |
---|
| 380 | write(*,*) '#### THE ASSSOCIATED SPECIES HAS TO BE DEFINED #### ' |
---|
| 381 | write(*,*) '#### BEFORE THE ONE WHICH POINTS AT IT #### ' |
---|
| 382 | write(*,*) '#### PLEASE CHANGE ORDER IN RELEASES OR ADD #### ' |
---|
| 383 | write(*,*) '#### THE ASSOCIATED SPECIES IN RELEASES #### ' |
---|
| 384 | write(*,*) '#####################################################' |
---|
| 385 | stop |
---|
| 386 | |
---|
| 387 | |
---|
[8a65cb0] | 388 | 998 write(*,*) '#####################################################' |
---|
[e200b7a] | 389 | write(*,*) '#### FLEXPART MODEL ERROR! #### ' |
---|
| 390 | write(*,*) '#### THE SPECIES FILE FOR SPECIES ', id_spec |
---|
| 391 | write(*,*) '#### CANNOT BE FOUND: CREATE FILE' |
---|
| 392 | write(*,*) '#### ',path(1)(1:length(1)),'SPECIES/SPECIES_',aspecnumb |
---|
| 393 | write(*,*) '#####################################################' |
---|
| 394 | stop |
---|
| 395 | |
---|
[b4d29ce] | 396 | 1000 write(*,*) ' #### FLEXPART MODEL ERROR! FILE "SPECIES_',aspecnumb,'.namelist' |
---|
| 397 | write(*,*) ' #### CANNOT BE OPENED IN THE DIRECTORY #### ' |
---|
| 398 | write(*,'(a)') path(2)(1:length(2)) |
---|
| 399 | stop |
---|
[e200b7a] | 400 | |
---|
| 401 | end subroutine readspecies |
---|