Index: /issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp
===================================================================
--- /issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp	(revision 11757)
+++ /issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp	(revision 11758)
@@ -283,14 +283,8 @@
 
 	if (mxIsClass(dataref,"double") ){
-
-		/*Check dataref is not pointing to NaN: */
-		if ( mxIsNaN(*(mxGetPr(dataref))) && (mxGetM(dataref)==1) && (mxGetN(dataref)==1) ){
-			outmatrix=new Matrix(0,0);
-		}
-		else{
-
-			/*Convert matlab matrix to petsc matrix: */
-			outmatrix=MatlabMatrixToMatrix(dataref);
-		}
+			
+		/*Convert matlab matrix to matrix: */
+		outmatrix=MatlabMatrixToMatrix(dataref);
+
 	}
 	else{
@@ -428,5 +422,5 @@
 /*FUNCTION FetchMatlabData(Vector** pvector,const mxArray* dataref){{{1*/
 void FetchMatlabData(Vector** pvector,const mxArray* dataref){
-
+	
 	Vector* vector=NULL;
 	int dummy;
