Changeset 3373 for palm/trunk/SOURCE
- Timestamp:
- Oct 18, 2018 3:25:56 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chem_emissions_mod.f90
r3337 r3373 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Fix wrong location of __netcdf directive 30 ! 31 ! 3337 2018-10-12 15:17:09Z kanani 29 32 ! (from branch resler) 30 33 ! Formatting … … 65 68 USE kinds 66 69 67 #if defined ( __netcdf )68 69 70 USE netcdf_data_input_mod, & 70 71 ONLY: chem_emis_att_type, chem_emis_val_type 71 72 73 #if defined ( __netcdf ) 72 74 USE NETCDF 73 74 75 #endif 75 76 … … 779 780 SUBROUTINE chem_emissions_init(emt_att,emt,nspec_out) 780 781 781 #if defined( __netcdf ) 782 782 783 783 784 USE surface_mod, & … … 798 799 799 800 INTEGER(iwp) :: ispec !> Index to go through the emission chemical species 800 801 #if defined( __netcdf ) 801 802 802 803 !-- Actions for initial runs : TBD: needs to be updated … … 918 919 IMPLICIT NONE 919 920 920 #if defined( __netcdf ) 921 921 922 922 923 !--- IN/OUT … … 983 984 REAL(wp), PARAMETER :: ratio2ppm = 1.0e06_wp 984 985 !------------------------------------------------------ 985 986 #if defined( __netcdf ) 986 987 IF ( emission_output_required ) THEN 987 988 -
palm/trunk/SOURCE/chemistry_model_mod.f90
r3318 r3373 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Remove MPI_Abort, replace by message 30 ! 31 ! 3318 2018-10-08 11:43:01Z sward 29 32 ! Fixed faulty syntax of message string 30 33 ! … … 176 179 177 180 MODULE chemistry_model_mod 178 USE MPI179 181 180 182 USE kinds, ONLY: wp, iwp … … 1018 1020 (variable(char_len-2:) == '_xz') .OR. & 1019 1021 (variable(char_len-2:) == '_yz') ) ) THEN 1020 1021 IF(myid == 0) WRITE(6,*) 'Output of species ' // TRIM(variable) // & 1022 TRIM(chem_species(lsp)%name) 1022 ! 1023 !-- todo: remove or replace by "CALL message" mechanism (kanani) 1024 ! IF(myid == 0) WRITE(6,*) 'Output of species ' // TRIM(variable) // & 1025 ! TRIM(chem_species(lsp)%name) 1023 1026 IF (av == 0) THEN 1024 1027 DO i = nxl, nxr … … 1096 1099 DO lsp=1,nspec 1097 1100 IF (TRIM(spec_name) == TRIM(chem_species(lsp)%name)) THEN 1098 IF(myid == 0 .AND. chem_debug0 ) WRITE(6,*) 'Output of species ' // TRIM(variable) // & 1099 TRIM(chem_species(lsp)%name) 1101 ! 1102 !-- todo: remove or replace by "CALL message" mechanism (kanani) 1103 ! IF(myid == 0 .AND. chem_debug0 ) WRITE(6,*) 'Output of species ' // TRIM(variable) // & 1104 ! TRIM(chem_species(lsp)%name) 1100 1105 1101 1106 IF (av == 0) THEN … … 1168 1173 DO lsp=1,nspec 1169 1174 IF (TRIM(spec_name) == TRIM(chem_species(lsp)%name) ) THEN 1170 1171 IF(myid == 0 .AND. chem_debug0 ) WRITE(6,*) 'Output of species ' // TRIM(variable) // & 1172 TRIM(chem_species(lsp)%name) 1175 ! 1176 !-- todo: remove or replace by "CALL message" mechanism (kanani) 1177 ! IF(myid == 0 .AND. chem_debug0 ) WRITE(6,*) 'Output of species ' // TRIM(variable) // & 1178 ! TRIM(chem_species(lsp)%name) 1173 1179 IF (av == 0) THEN 1174 1180 DO i = 1, mask_size_l(mid,1) … … 1479 1485 DO lsp = 1, nphot 1480 1486 phot_frequen(lsp)%name = phot_names(lsp) 1487 ! 1488 !-- todo: remove or replace by "CALL message" mechanism (kanani) 1481 1489 ! IF( myid == 0 ) THEN 1482 1490 ! WRITE(6,'(a,i4,3x,a)') 'Photolysis: ',lsp,trim(phot_names(lsp)) … … 1651 1659 tmp_phot(:,lph) = phot_frequen(lph)%freq(nzb+1:nzt,j,i) 1652 1660 ENDDO 1653 1654 IF(myid == 0 .AND. chem_debug0 ) THEN 1655 IF (i == 10 .and. j == 10) WRITE(0,*) 'begin chemics step ',dt_3d 1656 ENDIF 1661 ! 1662 !-- todo: remove (kanani) 1663 ! IF(myid == 0 .AND. chem_debug0 ) THEN 1664 ! IF (i == 10 .and. j == 10) WRITE(0,*) 'begin chemics step ',dt_3d 1665 ! ENDIF 1657 1666 1658 1667 !-- Compute length of time step … … 1670 1679 IF( simulated_time <= 2*dt_3d) THEN 1671 1680 rcntrl_local = 0 1672 WRITE(9,'(a,2f10.3)') 'USE Default rcntrl in the first steps ',simulated_time,dt_3d 1681 ! 1682 !-- todo: remove (kanani) 1683 ! WRITE(9,'(a,2f10.3)') 'USE Default rcntrl in the first steps ',simulated_time,dt_3d 1673 1684 ELSE 1674 1685 rcntrl_local = rcntrl … … 1845 1856 solver_type = 'Rang3' 1846 1857 ELSE 1847 IF(myid == 0) write(0,*) 'illegal solver type ' !kk chane to PALM error message1848 call MPI_Abort (MPI_COMM_WORLD, 1, ier)1858 message_string = 'illegal solver type' 1859 CALL message( 'chem_parin', 'PA0506', 1, 2, 0, 6, 0 ) 1849 1860 END IF 1850 1861 1851 write(text,*) 'gas_phase chemistry: solver_type = ',trim(solver_type) 1862 ! 1863 !-- todo: remove or replace by "CALL message" mechanism (kanani) 1864 ! write(text,*) 'gas_phase chemistry: solver_type = ',trim(solver_type) 1852 1865 !kk Has to be changed to right calling sequence 1853 1866 !kk CALL location_message( trim(text), .FALSE. ) 1854 IF(myid == 0) THEN1855 write(9,*) ' '1856 write(9,*) 'kpp setup '1857 write(9,*) ' '1858 write(9,*) ' gas_phase chemistry: solver_type = ',trim(solver_type)1859 write(9,*) ' '1860 write(9,*) ' Hstart = ',rcntrl(3)1861 write(9,*) ' FacMin = ',rcntrl(4)1862 write(9,*) ' FacMax = ',rcntrl(5)1863 write(9,*) ' '1864 IF(vl_dim > 1) THEN1865 write(9,*) ' Vector mode vektor length = ',vl_dim1866 ELSE1867 write(9,*) ' Scalar mode'1868 ENDIF1869 write(9,*) ' '1870 END IF1867 ! IF(myid == 0) THEN 1868 ! write(9,*) ' ' 1869 ! write(9,*) 'kpp setup ' 1870 ! write(9,*) ' ' 1871 ! write(9,*) ' gas_phase chemistry: solver_type = ',trim(solver_type) 1872 ! write(9,*) ' ' 1873 ! write(9,*) ' Hstart = ',rcntrl(3) 1874 ! write(9,*) ' FacMin = ',rcntrl(4) 1875 ! write(9,*) ' FacMax = ',rcntrl(5) 1876 ! write(9,*) ' ' 1877 ! IF(vl_dim > 1) THEN 1878 ! write(9,*) ' Vector mode vektor length = ',vl_dim 1879 ! ELSE 1880 ! write(9,*) ' Scalar mode' 1881 ! ENDIF 1882 ! write(9,*) ' ' 1883 ! END IF 1871 1884 1872 1885 RETURN
Note: See TracChangeset
for help on using the changeset viewer.