Ignore:
Timestamp:
Jan 17, 2019 2:12:17 PM (5 years ago)
Author:
eckhard
Message:

inifor: bugfix: avoid empty averaging regions, check if all input files are present

File:
1 edited

Legend:

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

    r3618 r3678  
    2626! -----------------
    2727! $Id$
     28! Check if set of averaging columns is empty
     29!
     30!
     31! 3618 2018-12-10 13:25:22Z eckhard
    2832! Prefixed all INIFOR modules with inifor_, removed unused variables
    2933!
     
    226230       REAL(dp) ::  ni
    227231
    228        IF (SIZE(ii) .NE. SIZE(jj))  THEN
     232       IF (SIZE(ii) /= SIZE(jj))  THEN
    229233          message = "Length of 'ii' and 'jj' index lists do not match." //     &
    230234             NEW_LINE(' ') // "ii has " // str(SIZE(ii)) // " elements, " //   &
    231235             NEW_LINE(' ') // "jj has " // str(SIZE(jj)) // "."
     236          CALL inifor_abort('average_2d', message)
     237       END IF
     238
     239       IF (SIZE(ii) == 0)  THEN
     240          message = "No columns to average over; " //                          &
     241                    "size of index lists 'ii' and 'jj' is zero."
    232242          CALL inifor_abort('average_2d', message)
    233243       END IF
Note: See TracChangeset for help on using the changeset viewer.