Ignore:
Timestamp:
03/14/12 17:09:20 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added support for empty vectors in serial mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp

    r11695 r11716  
    286286                /*Check dataref is not pointing to NaN: */
    287287                if ( mxIsNaN(*(mxGetPr(dataref))) && (mxGetM(dataref)==1) && (mxGetN(dataref)==1) ){
    288                         outmatrix=NULL;
     288                        outmatrix=new Matrix(0,0);
    289289                }
    290290                else{
     
    434434        if(mxIsEmpty(dataref)){
    435435                /*Nothing to pick up. Just initialize matrix pointer to NULL: */
    436                 vector=NULL;
     436                vector=new Vector(0);
    437437        }
    438438        else if (mxIsClass(dataref,"double") ){
Note: See TracChangeset for help on using the changeset viewer.