Changeset 281


Ignore:
Timestamp:
05/06/09 16:27:20 (16 years ago)
Author:
Eric.Larour
Message:

Better test for NaN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/io/SerialFetchData.cpp

    r214 r281  
    6767        }
    6868        else if (strcmp(data_type,"Matrix")==0){
     69       
    6970                if(mxIsEmpty(mxdata) ){
    7071                        /*Nothing to pick up. Just initialize matrix pointer to NULL: */
     
    7778
    7879                        /*Check mxdata is not pointing to NaN: */
    79                         if (mxIsNaN(*(mxGetPr(mxdata)))){
     80                        if ( mxIsNaN(*(mxGetPr(mxdata))) && (mxGetM(mxdata)==1) && (mxGetN(mxdata)==1) ){
    8081                                outmatrix_rows=0;
    8182                                outmatrix_cols=0;
Note: See TracChangeset for help on using the changeset viewer.