Changeset 11758


Ignore:
Timestamp:
03/20/12 16:51:50 (13 years ago)
Author:
Eric.Larour
Message:

Took out segfault, remnant of data references from Cielo

File:
1 edited

Legend:

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

    r11716 r11758  
    283283
    284284        if (mxIsClass(dataref,"double") ){
    285 
    286                 /*Check dataref is not pointing to NaN: */
    287                 if ( mxIsNaN(*(mxGetPr(dataref))) && (mxGetM(dataref)==1) && (mxGetN(dataref)==1) ){
    288                         outmatrix=new Matrix(0,0);
    289                 }
    290                 else{
    291 
    292                         /*Convert matlab matrix to petsc matrix: */
    293                         outmatrix=MatlabMatrixToMatrix(dataref);
    294                 }
     285                       
     286                /*Convert matlab matrix to matrix: */
     287                outmatrix=MatlabMatrixToMatrix(dataref);
     288
    295289        }
    296290        else{
     
    428422/*FUNCTION FetchMatlabData(Vector** pvector,const mxArray* dataref){{{1*/
    429423void FetchMatlabData(Vector** pvector,const mxArray* dataref){
    430 
     424       
    431425        Vector* vector=NULL;
    432426        int dummy;
Note: See TracChangeset for help on using the changeset viewer.