Changeset 3246 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Sep 13, 2018 3:14:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r3241 r3246 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Added error handling for input namelist via parin_fail_message 30 ! 31 ! 3241 2018-09-12 15:02:00Z raasch 29 32 ! +nest_chemistry 30 33 ! … … 867 870 line = ' ' 868 871 DO WHILE ( INDEX( line, '&chemistry_parameters' ) == 0 ) 869 READ ( 11, '(A)', END= 10 ) line872 READ ( 11, '(A)', END=20 ) line 870 873 ENDDO 871 874 BACKSPACE ( 11 ) 872 875 ! 873 876 !-- Read chemistry namelist 874 READ ( 11, chemistry_parameters )877 READ ( 11, chemistry_parameters, ERR = 10, END = 20 ) 875 878 ! 876 879 !-- Enable chemistry model 877 air_chemistry = .TRUE. 878 879 880 10 CONTINUE 880 air_chemistry = .TRUE. 881 GOTO 20 882 883 10 BACKSPACE( 11 ) 884 READ( 11 ,fmt='(A)') line 885 CALL parin_fail_message ( 'chemistry_parameters', line ) 886 887 20 CONTINUE 881 888 882 889 t_steps = my_steps !(todo: Why not directly make t_steps a
Note: See TracChangeset
for help on using the changeset viewer.