Changeset 19902


Ignore:
Timestamp:
12/16/15 14:48:12 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added check isinf in js

File:
1 edited

Legend:

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

    r19780 r19902  
    88//   Available options:
    99//      - NaN: 1 if check that there is no NaN
     10//      - Inf: 1 if check that there is no Inf
    1011//      - size: [lines cols], NaN for non checked dimensions
    1112//      - >:  greater than provided value
     
    9596                if (ArrayAnyEqual(field2,NaN)){
    9697                        md.checkmessage(options.getfieldvalue('message',sprintf("NaN values found in field %s",field)));
     98                }
     99        }
     100
     101        //check Inf
     102        if (options.getfieldvalue('Inf',0)){
     103                field2=MatrixToList(field);
     104                if (ArrayAnyEqual(field2,Inf)){
     105                        md.checkmessage(options.getfieldvalue('message',sprintf("Inf values found in field %s",field)));
    97106                }
    98107        }
Note: See TracChangeset for help on using the changeset viewer.