Index: /issm/trunk-jpl/src/c/classes/Elements/Element.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/Element.cpp	(revision 27939)
+++ /issm/trunk-jpl/src/c/classes/Elements/Element.cpp	(revision 27940)
@@ -1903,4 +1903,5 @@
 		/*Are we in transient or static? */
 		if(M==1){
+			if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
 			_assert_(N==1);
 			this->SetElementInput(inputs,vector_enum,vector[0]);
@@ -1908,5 +1909,5 @@
 
 		else if(M==iomodel->numberofvertices){
-			_assert_(N==1);
+			if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
 			for(int i=0;i<NUM_VERTICES;i++) values[i]=vector[vertexids[i]-1];
 			this->SetElementInput(inputs,NUM_VERTICES,vertexlids,values,vector_enum);
@@ -1947,5 +1948,5 @@
 			}
 			else{
-				_error_("Patch interpolation not supported yet");
+				_error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
 			}
 			xDelete<IssmDouble>(evalues);
@@ -1953,5 +1954,5 @@
 		}
 		else{
-			_error_("nodal vector is either numberofvertices or numberofvertices+1 long. Field provided (" << EnumToStringx(vector_enum) << ") is " << M << " long");
+			_error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
 		}
 	}
@@ -1960,5 +1961,5 @@
 		/*Are we in transient or static? */
 		if(M==1){
-			_assert_(N==1);
+			if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
 			this->SetElementInput(inputs,vector_enum,vector[0]);
 		}
@@ -1982,5 +1983,5 @@
 		}
 		else if(M==iomodel->numberofelements){
-			_assert_(N==1);
+			if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
 			if (code==5){ //boolean
 				this->SetBoolInput(inputs,vector_enum,reCast<bool>(vector[this->Sid()]));
@@ -2011,5 +2012,7 @@
 		}
 
-		else _error_("element vector is either numberofelements or numberofelements+1 long. Field provided (" << EnumToStringx(vector_enum) << ") is " << M << " long");
+		else{
+			_error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
+		}
 	}
 	else if(vector_type==3){ //Double array matrix
@@ -2022,7 +2025,11 @@
 			xDelete<IssmDouble>(layers);
 		}
-		else _error_("element vector is either numberofelements or numberofelements+1 long. Field provided (" << EnumToStringx(vector_enum) << ") is " << M << " long");
-	}
-	else _error_("Cannot add input for vector type " << vector_type << " (not supported)");
+		else{
+			_error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported");
+		}
+	}
+	else{
+		_error_("Cannot add input for vector type " << vector_type << " (not supported)");
+	}
 }
 /*}}}*/
