Changeset 4881 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Feb 19, 2021 10:05:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r4860 r4881 26 26 ! ----------------- 27 27 ! $Id$ 28 ! removed unnecessarty namelist parameters and commented output statements 29 ! and cs_surface_initial_change 30 ! 31 ! 32 ! 4860 2021-02-01 08:10:59Z raasch 28 33 ! further re-numbering of message IDs 29 34 ! … … 297 302 ! ------------ 298 303 !> Chemistry model for PALM-4U 299 !> @todo Extend chem_species type by nspec and nvar as addititional elements (RF)300 !> @todo Check possibility to reduce dimension of chem_species%conc from nspec to nvar (RF)301 304 !> @todo Adjust chem_rrd_local to CASE structure of others modules. It is not allowed to use the 302 305 !> chemistry model in a precursor run and additionally not using it in a main run … … 308 311 !> @todo slight differences in passive scalar and chem spcs when chem reactions turned off. Need to 309 312 !> be fixed. bK 310 !> @todo test nesting for chem spcs, was implemented by suehring (kanani)311 313 !> @todo chemistry error messages 312 314 ! … … 1521 1523 (variable(char_len-2:) == '_xz') .OR. & 1522 1524 (variable(char_len-2:) == '_yz') ) ) THEN 1523 !1524 !-- todo: remove or replace by "CALL message" mechanism (kanani)1525 ! IF(myid == 0) WRITE(6,*) 'Output of species ' // TRIM( variable ) // &1526 ! TRIM( chem_species(lsp)%name )1527 1525 IF (av == 0) THEN 1528 1526 DO i = nxl, nxr … … 1638 1636 DO lsp = 1, nspec 1639 1637 IF ( TRIM( spec_name ) == TRIM( chem_species(lsp)%name) ) THEN 1640 !1641 !-- todo: remove or replace by "CALL message" mechanism (kanani)1642 ! IF(myid == 0 .AND. chem_debug0 ) WRITE(6,*) 'Output of species ' // TRIM( variable ) // &1643 ! TRIM( chem_species(lsp)%name )1644 1638 IF (av == 0) THEN 1645 1639 DO i = nxl, nxr … … 1717 1711 DO lsp=1,nspec 1718 1712 IF (TRIM( spec_name ) == TRIM( chem_species(lsp)%name) ) THEN 1719 !1720 !-- todo: remove or replace by "CALL message" mechanism (kanani)1721 ! IF(myid == 0 .AND. chem_debug0 ) WRITE(6,*) 'Output of species ' // TRIM( variable ) // &1722 ! TRIM( chem_species(lsp)%name )1723 1713 IF (av == 0) THEN 1724 1714 IF ( .NOT. mask_surface(mid) ) THEN … … 2272 2262 ENDIF 2273 2263 ! 2274 !-- If required, change the surface chem spcs at the start of the 3D run2275 IF ( cs_surface_initial_change(1) /= 0.0_wp ) THEN2276 DO lsp = 1, nspec2277 DO i = nxlg, nxrg2278 DO j = nysg, nyng2279 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(nzb,j,i), 0 ) )2280 chem_species(lsp)%conc(nzb,j,i) = chem_species(lsp)%conc(nzb,j,i) + &2281 cs_surface_initial_change(lsp) * flag2282 ENDDO2283 ENDDO2284 ENDDO2285 ENDIF2286 2287 2264 ENDIF 2288 2265 ! … … 2295 2272 DO lsp = 1, nphot 2296 2273 phot_frequen(lsp)%name = phot_names(lsp) 2297 !2298 !-- todo: remove or replace by "CALL message" mechanism (kanani)2299 !-- IF( myid == 0 ) THEN2300 !-- WRITE(6,'(a,i4,3x,a)') 'Photolysis: ',lsp,TRIM( phot_names(lsp) )2301 !-- ENDIF2302 2274 phot_frequen(lsp)%freq(nzb:nzt+1,nysg:nyng,nxlg:nxrg) => freq_1(:,:,:,lsp) 2303 2275 ENDDO … … 2546 2518 bc_cs_t, & 2547 2519 call_chem_at_all_substeps, & 2548 chem_debug0, &2549 chem_debug1, &2550 chem_debug2, &2551 2520 chem_gasphase_on, & 2552 2521 chem_mechanism, & … … 2555 2524 cs_profile, & 2556 2525 cs_surface, & 2557 cs_surface_initial_change, &2558 cs_vertical_gradient_level, &2559 2526 daytype_mdh, & 2560 2527 deposition_dry, & … … 2575 2542 photolysis_scheme, & 2576 2543 wall_csflux, & 2577 cs_vertical_gradient, &2578 top_csflux, &2579 2544 surface_csflux, & 2580 2545 surface_csflux_name, &
Note: See TracChangeset
for help on using the changeset viewer.