Changeset 11264


Ignore:
Timestamp:
01/31/12 10:30:04 (13 years ago)
Author:
seroussi
Message:

check field: < for vectors also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/utils/consistency/checkfield.m

    r10352 r11264  
    1010%      - <:  smallerthan provided value
    1111%      - <=: smaller or equal to provided value
     12%      - < vec:  smallerthan provided values on each vertex
    1213%      - forcing: 1 if check forcing consistency (size and time)
    1314%      - values: cell of strings or vector of acceptable values
     
    153154        if any(field2>upperbound),
    154155                checkmessage(getfieldvalue(options,'message',...
    155                         ['field ''' fieldname ''' should have values above ' num2str(upperbound)]));
     156                        ['field ''' fieldname ''' should have values below ' num2str(upperbound)]));
    156157        end
    157158end
     
    161162        if any(field2>=upperbound),
    162163                checkmessage(getfieldvalue(options,'message',...
    163                         ['field ''' fieldname ''' should have values above ' num2str(upperbound)]));
     164                        ['field ''' fieldname ''' should have values below ' num2str(upperbound(1))]));
    164165        end
    165166end
Note: See TracChangeset for help on using the changeset viewer.