Changeset 4403 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Feb 12, 2020 1:08:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r4372 r4403 22 22 ! Current revisions: 23 23 ! ----------------- 24 ! 24 ! 25 25 ! 26 26 ! Former revisions: 27 27 ! ----------------- 28 28 ! $Id$ 29 ! in subroutine chem_init (ECC) 30 ! - allows different init paths emission data for legacy 31 ! mode emission and on-demand mode 32 ! in subroutine chem_init_internal (ECC) 33 ! - reads netcdf file only when legacy mode is activated 34 ! (i.e., emiss_read_legacy_mode = .TRUE.) 35 ! otherwise file is read once at the beginning to obtain 36 ! header information, and emission data are extracted on 37 ! an on-demand basis 38 ! 39 ! 4372 2020-01-14 10:20:35Z banzhafs 29 40 ! chem_parin : added handler for new namelist item emiss_legacy_read_mode (ECC) 30 41 ! added messages … … 1773 1784 SUBROUTINE chem_init 1774 1785 1786 ! 1787 !-- 20200203 (ECC) 1788 !-- introduced additional interfaces for on-demand emission update 1789 1790 ! USE chem_emissions_mod, & 1791 ! ONLY: chem_emissions_init 1792 1775 1793 USE chem_emissions_mod, & 1776 ONLY: chem_emissions_init 1794 ONLY: chem_emissions_init, chem_emissions_header_init 1777 1795 1778 1796 USE netcdf_data_input_mod, & … … 1791 1809 ilu_permanent_crops + ilu_savanna + ilu_semi_natural_veg + ilu_tropical_forest + & 1792 1810 ilu_urban ) == 0 ) CONTINUE 1793 1794 IF ( emissions_anthropogenic ) CALL chem_emissions_init 1811 1812 ! 1813 !-- 20200203 (ECC) 1814 !-- calls specific emisisons initialization subroutines 1815 !-- for legacy mode and on-demand mode 1816 1817 ! IF ( emissions_anthropogenic ) CALL chem_emissions_init 1818 1819 IF ( emissions_anthropogenic ) THEN 1820 1821 IF ( emiss_read_legacy_mode ) THEN 1822 CALL chem_emissions_init 1823 ELSE 1824 CALL chem_emissions_header_init 1825 ENDIF 1826 1827 ENDIF 1828 1829 1795 1830 ! 1796 1831 !-- Chemistry variables will be initialized if availabe from dynamic … … 1835 1870 INTEGER(iwp) :: lpr_lev !< running index for chem spcs profile level 1836 1871 1872 ! 1873 !-- 20200203 ECC 1874 !-- reads netcdf data only under legacy mode 1875 1876 ! IF ( emissions_anthropogenic ) THEN 1877 ! CALL netcdf_data_input_chemistry_data( chem_emis_att, chem_emis ) 1878 ! ENDIF 1879 1837 1880 IF ( emissions_anthropogenic ) THEN 1838 CALL netcdf_data_input_chemistry_data( chem_emis_att, chem_emis ) 1881 IF ( emiss_read_legacy_mode ) THEN 1882 CALL netcdf_data_input_chemistry_data( chem_emis_att, chem_emis ) 1883 ENDIF 1839 1884 ENDIF 1885 1840 1886 ! 1841 1887 !-- Allocate memory for chemical species … … 2476 2522 'Reverting to legacy emission read mode' 2477 2523 CALL message ( 'parin_chem', 'CM0466', 0, 0, 0, 6, 0 ) 2524 2478 2525 emiss_read_legacy_mode = .TRUE. 2479 2526 … … 2482 2529 message_string = 'New emission read mode activated' // & 2483 2530 CHAR(10) // ' ' // & 2484 'LOD 2 emissions will be read on an ' // & 2485 'hourly basis according to' // & 2486 CHAR(10) // ' ' // & 2487 'indicated timestamps' 2531 'LOD 2 emissions will be updated on-demand ' // & 2532 'according to indicated timestamps' 2488 2533 CALL message ( 'parin_chem', 'CM0467', 0, 0, 0, 6, 0 ) 2489 2534
Note: See TracChangeset
for help on using the changeset viewer.