Changeset 7188 for issm/trunk/src/c/io


Ignore:
Timestamp:
01/26/11 14:57:01 (14 years ago)
Author:
Mathieu Morlighem
Message:

Changed philosophy here: if a matlab empty matlab sparse matrix is to be converted to a petsc Mat, Create an empty Mat object instead of returning a NULL pointer

File:
1 edited

Legend:

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

    r6412 r7188  
    9595        int dummy=0;
    9696
    97         if(mxIsEmpty(dataref) ){
    98                 /*Nothing to pick up. Just initialize matrix pointer to NULL: */
    99                 outmatrix=NULL;
    100         }
    101         else if (mxIsDouble(dataref) ){
     97        if (mxIsDouble(dataref) ){
    10298
    10399                /*Check dataref is not pointing to NaN: */
Note: See TracChangeset for help on using the changeset viewer.