Changeset 3780 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Mar 5, 2019 11:19:45 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r3767 r3780 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Removed READ from unit 10, added CALL get_mechanismname 30 ! 31 ! 32 ! 3767 2019-02-27 08:18:02Z raasch 29 33 ! unused variable for file index removed from rrd-subroutines parameter list 30 34 ! … … 278 282 279 283 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, & 282 286 max_pr_user, timestep_scheme, use_prescribed_profile_data, ws_scheme_sca 283 287 … … 286 290 287 291 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_names292 ONLY: atol, chem_gasphase_integrate, get_mechanismname, nkppctrl, nmaxfixsteps, & 293 nphot, nreact, nspec, nvar, phot_names, rtol, spc_names, t_steps, vl_dim 290 294 291 295 USE chem_modules … … 1149 1153 INTEGER (iwp) :: lsp_usr !< running index for user defined chem spcs 1150 1154 INTEGER (iwp) :: lsp !< running index for chem spcs. 1151 CHARACTER (LEN=30) :: cs_mech,a1,b1,string1152 1153 1154 OPEN (10,FILE="chem_gasphase_mod.f90") !get the chem_mechanism name from the file.1155 READ (10, 100) a1,b1,string1156 cs_mech = trim(string(16:))1157 100 FORMAT(a)1158 CLOSE(10)1159 1160 1155 ! 1161 1156 !-- check for chemical reactions status … … 1190 1185 ENDIF 1191 1186 !-- check for chemical mechanism used 1187 CALL get_mechanismname 1188 WRITE(06,*) 'cs_mech ',cs_mech 1189 WRITE(06,*) 'chem_mechanism ', chem_mechanism 1192 1190 IF (chem_mechanism /= trim(cs_mech) ) THEN 1193 message_string = 'Incorrect chemi cal mechanism selected, please check spellingand/or chem_gasphase_mod'1191 message_string = 'Incorrect chemistry mechanism selected, check spelling in namelist and/or chem_gasphase_mod' 1194 1192 CALL message( 'chem_check_parameters', 'CM0462', 1, 2, 0, 6, 0 ) 1195 1193 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.