Changeset 3246 for palm/trunk/SOURCE/radiation_model_mod.f90
- Timestamp:
- Sep 13, 2018 3:14:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/radiation_model_mod.f90
r3241 r3246 28 28 ! ----------------- 29 29 ! $Id$ 30 ! Added error handling for input namelist via parin_fail_message 31 ! 32 ! 3241 2018-09-12 15:02:00Z raasch 30 33 ! unused variables removed or commented 31 34 ! … … 2787 2790 line = ' ' 2788 2791 DO WHILE ( INDEX( line, '&radiation_parameters' ) == 0 ) 2789 READ ( 11, '(A)', END=10 ) line2790 ENDDO2791 BACKSPACE ( 11 )2792 2793 !2794 !-- Read user-defined namelist2795 READ ( 11, radiation_parameters )2796 2797 !2798 !-- Set flag that indicates that the radiation model is switched on2799 radiation = .TRUE.2800 2801 GOTO 122802 !2803 !-- Try to find old namelist2804 10 REWIND ( 11 )2805 line = ' '2806 DO WHILE ( INDEX( line, '&radiation_par' ) == 0 )2807 2792 READ ( 11, '(A)', END=12 ) line 2808 2793 ENDDO … … 2811 2796 ! 2812 2797 !-- Read user-defined namelist 2813 READ ( 11, radiation_par ) 2814 2798 READ ( 11, radiation_parameters, ERR = 10 ) 2799 2800 ! 2801 !-- Set flag that indicates that the radiation model is switched on 2802 radiation = .TRUE. 2803 2804 GOTO 14 2805 2806 10 BACKSPACE( 11 ) 2807 READ( 11 ,fmt='(A)') line 2808 CALL parin_fail_message ( 'radiation_parameters', line ) 2809 ! 2810 !-- Try to find old namelist 2811 12 REWIND ( 11 ) 2812 line = ' ' 2813 DO WHILE ( INDEX( line, '&radiation_par' ) == 0 ) 2814 READ ( 11, '(A)', END=14 ) line 2815 ENDDO 2816 BACKSPACE ( 11 ) 2817 2818 ! 2819 !-- Read user-defined namelist 2820 READ ( 11, radiation_par, ERR = 13, END = 14 ) 2821 2815 2822 message_string = 'namelist radiation_par is deprecated and will be ' // & 2816 2823 'removed in near future. Please use namelist ' // & … … 2818 2825 CALL message( 'radiation_parin', 'PA0487', 0, 1, 0, 6, 0 ) 2819 2826 2820 2821 2827 ! 2822 2828 !-- Set flag that indicates that the radiation model is switched on … … 2829 2835 ENDIF 2830 2836 2831 12 CONTINUE 2837 GOTO 14 2838 2839 13 BACKSPACE( 11 ) 2840 READ( 11 ,fmt='(A)') line 2841 CALL parin_fail_message ( 'radiation_par', line ) 2842 2843 14 CONTINUE 2832 2844 2833 2845 END SUBROUTINE radiation_parin
Note: See TracChangeset
for help on using the changeset viewer.