Changeset 3246 for palm/trunk/SOURCE/user_parin.f90
- Timestamp:
- Sep 13, 2018 3:14:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_parin.f90
r3240 r3246 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Added error handling for input namelist via parin_fail_message 28 ! 29 ! 3240 2018-09-12 12:04:40Z Giersch 27 30 ! The check that controls the number of user-defined profiles on the restart file 28 31 ! with the one given for the current run has been removed. … … 140 143 line = ' ' 141 144 DO WHILE ( INDEX( line, '&user_parameters' ) == 0 ) 142 READ ( 11, '(A)', END=10 ) line143 ENDDO144 BACKSPACE ( 11 )145 146 !147 !-- Read user-defined namelist148 READ ( 11, user_parameters )149 150 user_defined_namelist_found = .TRUE.151 152 GOTO 12153 154 155 10 REWIND ( 11 )156 157 line = ' '158 DO WHILE ( INDEX( line, '&userpar' ) == 0 )159 145 READ ( 11, '(A)', END=12 ) line 160 146 ENDDO … … 163 149 ! 164 150 !-- Read user-defined namelist 165 READ ( 11, userpar ) 166 167 151 READ ( 11, user_parameters, ERR = 10 ) 152 153 user_defined_namelist_found = .TRUE. 154 155 GOTO 14 156 157 10 BACKSPACE( 11 ) 158 READ( 11 ,fmt='(A)') line 159 CALL parin_fail_message ( 'user_parameters', line ) 160 161 12 REWIND ( 11 ) 162 163 line = ' ' 164 DO WHILE ( INDEX( line, '&userpar' ) == 0 ) 165 READ ( 11, '(A)', END=14 ) line 166 ENDDO 167 BACKSPACE ( 11 ) 168 169 ! 170 !-- Read user-defined namelist 171 READ ( 11, userpar, ERR = 13, END = 14 ) 172 168 173 message_string = 'namelist userpar is deprecated and will be ' // & 169 174 'removed in near future. &Please use namelist ' // & 170 175 'user_parameters instead' 171 176 CALL message( 'user_parin', 'PA0487', 0, 1, 0, 6, 0 ) 172 177 173 178 user_defined_namelist_found = .TRUE. 174 175 176 12 CONTINUE 179 180 GOTO 14 181 182 13 BACKSPACE( 11 ) 183 READ( 11 ,fmt='(A)') line 184 CALL parin_fail_message ( 'userpar', line ) 185 186 14 CONTINUE 177 187 178 188 !
Note: See TracChangeset
for help on using the changeset viewer.