Changeset 11758
- Timestamp:
- 03/20/12 16:51:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp
r11716 r11758 283 283 284 284 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 295 289 } 296 290 else{ … … 428 422 /*FUNCTION FetchMatlabData(Vector** pvector,const mxArray* dataref){{{1*/ 429 423 void FetchMatlabData(Vector** pvector,const mxArray* dataref){ 430 424 431 425 Vector* vector=NULL; 432 426 int dummy;
Note:
See TracChangeset
for help on using the changeset viewer.