Changeset 4675 for palm/trunk/UTIL/inifor/src/inifor_control.f90
- Timestamp:
- Sep 11, 2020 10:00:26 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/inifor/src/inifor_control.f90
r4659 r4675 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Improve visibility of errors by printing them below warnings listing 29 ! 30 ! 31 ! 4659 2020-08-31 11:21:17Z eckhard 28 32 ! List warnings after successful run or abort 29 33 ! Produce failure exit code (1) on program abort for test automation … … 207 211 SUBROUTINE report_warnings() 208 212 209 INTEGER(iwp) :: warning_idx 213 INTEGER(iwp) :: warning_idx 214 CHARACTER (LEN=500) :: warning = '' 210 215 211 216 IF (n_wrngs > 0) THEN 212 message= 'Encountered the following '// TRIM( str( n_wrngs ) ) // " warning(s) during this run:"213 CALL report( 'report_warnings', message)217 warning = 'Encountered the following '// TRIM( str( n_wrngs ) ) // " warning(s) during this run:" 218 CALL report( 'report_warnings', warning) 214 219 215 220 DO warning_idx = 1, n_wrngs … … 233 238 message = TRIM( message ) // "' successfully." 234 239 IF (n_wrngs > 0) THEN 235 message = TRIM( message ) // " Some warnings were encountered ."240 message = TRIM( message ) // " Some warnings were encountered, see above." 236 241 ENDIF 237 242 CALL report( 'main loop', message ) … … 268 273 CHARACTER(LEN=*), INTENT(IN) :: message !< log message 269 274 275 CALL report_warnings 270 276 CALL report( routine, "ERROR: " // TRIM( message ) // " Stopping." ) 271 CALL report_warnings272 277 CALL close_log 273 278 CALL EXIT(1)
Note: See TracChangeset
for help on using the changeset viewer.