Index: /issm/trunk/src/c/InterpFromGridToMeshx/InterpFromGridToMeshx.cpp
===================================================================
--- /issm/trunk/src/c/InterpFromGridToMeshx/InterpFromGridToMeshx.cpp	(revision 2575)
+++ /issm/trunk/src/c/InterpFromGridToMeshx/InterpFromGridToMeshx.cpp	(revision 2576)
@@ -56,5 +56,5 @@
 		y_rows=y_rows-1;
 	}
-	else if (M==x_rows && N==x_rows){
+	else if (N==x_rows && M==y_rows){
 
 		/*The coordinates given in input describe the center each pixel. Keep them*/
