Index: /issm/trunk/src/c/modules/InputToResultx/InputToResultx.cpp
===================================================================
--- /issm/trunk/src/c/modules/InputToResultx/InputToResultx.cpp	(revision 4507)
+++ /issm/trunk/src/c/modules/InputToResultx/InputToResultx.cpp	(revision 4508)
@@ -19,5 +19,4 @@
 
 	/*Go through elemnets, and ask each element to transfer the enum_type input into the results dataset, with step and time information: */
-	 
 	for(i=0;i<elements->Size();i++){
 
Index: /issm/trunk/src/c/modules/OutputResultsx/ElementResultsToPatch.cpp
===================================================================
--- /issm/trunk/src/c/modules/OutputResultsx/ElementResultsToPatch.cpp	(revision 4507)
+++ /issm/trunk/src/c/modules/OutputResultsx/ElementResultsToPatch.cpp	(revision 4508)
@@ -83,7 +83,4 @@
 	#endif
 
-	/*Check that results have been found*/
-	if (numrows*numvertices==0) ISSMERROR("No results found in elements");
-
 	/*Ok, initialize Patch object: */
 	patch=new Patch(numrows,numvertices,numnodes);
Index: /issm/trunk/src/c/objects/Elements/Penta.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 4507)
+++ /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 4508)
@@ -1208,8 +1208,8 @@
 		input=(Input*)this->inputs->GetObjectByOffset(i);
 		if (input->EnumType()==enum_type){
-			found=true;
-			break;
+			found=true; break;
 		}
 	}
+	if (!found) ISSMERROR("Input %s not found in penta->inputs",EnumAsString(enum_type));
 
 	/*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result 
Index: /issm/trunk/src/c/objects/Elements/Tria.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 4507)
+++ /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 4508)
@@ -1507,4 +1507,5 @@
 		}
 	}
+	if (!found) ISSMERROR("Input %s not found in tria->inputs",EnumAsString(enum_type));
 
 	/*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result 
Index: /issm/trunk/src/c/objects/Patch.cpp
===================================================================
--- /issm/trunk/src/c/objects/Patch.cpp	(revision 4507)
+++ /issm/trunk/src/c/objects/Patch.cpp	(revision 4508)
@@ -46,9 +46,14 @@
 		+maxnodes;   //nodes
 
-	//allocate and fill with NaN:
-	this->values=(double*)xmalloc(this->numcols*this->numrows*sizeof(double));
-	for(i=0;i<this->numrows;i++){
-		for(j=0;j<this->numcols;j++){
-			this->values[i*this->numcols+j]=NAN;
+	//Allocate values and fill with NaN:
+	if (this->numcols*this->numrows==0){
+		this->values=NULL;
+	}
+	else{
+		this->values=(double*)xmalloc(this->numcols*this->numrows*sizeof(double));
+		for(i=0;i<this->numrows;i++){
+			for(j=0;j<this->numcols;j++){
+				this->values[i*this->numcols+j]=NAN;
+			}
 		}
 	}
Index: /issm/trunk/src/c/solutions/steadystate_core.cpp
===================================================================
--- /issm/trunk/src/c/solutions/steadystate_core.cpp	(revision 4507)
+++ /issm/trunk/src/c/solutions/steadystate_core.cpp	(revision 4508)
@@ -47,5 +47,5 @@
 		InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VxEnum,VxOldEnum);
 		InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VyEnum,VyOldEnum);
-		if(dim==3)InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum,VzOldEnum);
+		InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum,VzOldEnum);
 		InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,PressureEnum,PressureOldEnum);
 		InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,TemperatureEnum,TemperatureOldEnum);
@@ -61,7 +61,9 @@
 		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VxEnum);
 		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VyEnum);
+		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum);
+		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VelEnum);
 		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,PressureEnum);
-		if(dim==3) InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,VzEnum);
 		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,TemperatureEnum);
+		InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,MeltingRateEnum);
 	}
 }
