Ignore:
Timestamp:
Sep 11, 2020 10:00:26 AM (4 years ago)
Author:
eckhard
Message:

Support for homogeneous (domain-averaged) boundary conditions and soil profile initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/inifor/src/inifor_control.f90

    r4659 r4675  
    2626! -----------------
    2727! $Id$
     28! Improve visibility of errors by printing them below warnings listing
     29!
     30!
     31! 4659 2020-08-31 11:21:17Z eckhard
    2832! List warnings after successful run or abort
    2933! Produce failure exit code (1) on program abort for test automation
     
    207211 SUBROUTINE report_warnings()
    208212
    209     INTEGER(iwp) ::  warning_idx
     213    INTEGER(iwp)        ::  warning_idx
     214    CHARACTER (LEN=500) ::  warning = ''
    210215
    211216    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)
    214219
    215220       DO warning_idx = 1, n_wrngs
     
    233238    message = TRIM( message ) // "' successfully."
    234239    IF (n_wrngs > 0)  THEN
    235        message = TRIM( message ) // " Some warnings were encountered."
     240       message = TRIM( message ) // " Some warnings were encountered, see above."
    236241    ENDIF
    237242    CALL report( 'main loop', message )
     
    268273    CHARACTER(LEN=*), INTENT(IN) ::  message !< log message
    269274
     275    CALL report_warnings
    270276    CALL report( routine, "ERROR: " // TRIM( message ) // " Stopping." )
    271     CALL report_warnings
    272277    CALL close_log
    273278    CALL EXIT(1)
Note: See TracChangeset for help on using the changeset viewer.