Ignore:
Timestamp:
Mar 5, 2019 11:19:45 AM (6 years ago)
Author:
forkel
Message:

removed read from unit 10 in chemistry_model_mod.f90, added get_mechanismname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/chemistry_model_mod.f90

    r3767 r3780  
    2727! -----------------
    2828! $Id$
     29! Removed READ from unit 10, added CALL get_mechanismname
     30!
     31!
     32! 3767 2019-02-27 08:18:02Z raasch
    2933! unused variable for file index removed from rrd-subroutines parameter list
    3034!
     
    278282
    279283    USE control_parameters,                                                                        &
    280          ONLY:  bc_lr_cyc, bc_ns_cyc, dt_3d, humidity, initializing_actions, message_string,        &
    281          omega, tsc, intermediate_timestep_count, intermediate_timestep_count_max,           &
     284         ONLY:  bc_lr_cyc, bc_ns_cyc, dt_3d, humidity, initializing_actions, message_string,       &
     285         omega, tsc, intermediate_timestep_count, intermediate_timestep_count_max,                 &
    282286         max_pr_user, timestep_scheme, use_prescribed_profile_data, ws_scheme_sca         
    283287
     
    286290
    287291    USE chem_gasphase_mod,                                                                         &
    288          ONLY:  nspec, spc_names, nkppctrl, nmaxfixsteps, t_steps, chem_gasphase_integrate,         &
    289          vl_dim, nvar, nreact,  atol, rtol, nphot, phot_names
     292         ONLY:  atol, chem_gasphase_integrate, get_mechanismname, nkppctrl, nmaxfixsteps,          &
     293         nphot, nreact, nspec, nvar, phot_names, rtol, spc_names, t_steps, vl_dim
    290294
    291295    USE chem_modules
     
    11491153    INTEGER (iwp) ::  lsp_usr      !< running index for user defined chem spcs
    11501154    INTEGER (iwp) ::  lsp          !< running index for chem spcs.
    1151     CHARACTER (LEN=30)       ::  cs_mech,a1,b1,string
    1152 
    1153 
    1154     OPEN (10,FILE="chem_gasphase_mod.f90")   !get the chem_mechanism name from the file.
    1155     READ (10, 100) a1,b1,string
    1156     cs_mech = trim(string(16:))
    1157  100    FORMAT(a)
    1158         CLOSE(10)
    1159 
    11601155!
    11611156!-- check for chemical reactions status
     
    11901185    ENDIF
    11911186!-- check for chemical mechanism used
     1187    CALL get_mechanismname
     1188    WRITE(06,*) 'cs_mech ',cs_mech
     1189    WRITE(06,*) 'chem_mechanism ', chem_mechanism
    11921190    IF (chem_mechanism /= trim(cs_mech) )  THEN
    1193        message_string = 'Incorrect chemical mechanism selected, please check spelling and/or chem_gasphase_mod'
     1191       message_string = 'Incorrect chemistry mechanism selected, check spelling in namelist and/or chem_gasphase_mod'
    11941192       CALL message( 'chem_check_parameters', 'CM0462', 1, 2, 0, 6, 0 )
    11951193    ENDIF
Note: See TracChangeset for help on using the changeset viewer.