Index: /issm/trunk-jpl/src/c/classes/Massfluxatgate.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/Massfluxatgate.h	(revision 26280)
+++ /issm/trunk-jpl/src/c/classes/Massfluxatgate.h	(revision 26281)
@@ -32,7 +32,11 @@
 		Massfluxatgate(){/*{{{*/
 			this->definitionenum        = -1;
-			this->name        = 0;
+			this->name        = NULL;
 			this->numsegments = 0;
-			this->segments    = 0;
+			this->elements    = NULL;
+			this->x1				= NULL;
+			this->x2				= NULL;
+			this->y1				= NULL;
+			this->y2				= NULL;
 		}
 		/*}}}*/
Index: /issm/trunk-jpl/src/c/datastructures/DataSet.cpp
===================================================================
--- /issm/trunk-jpl/src/c/datastructures/DataSet.cpp	(revision 26280)
+++ /issm/trunk-jpl/src/c/datastructures/DataSet.cpp	(revision 26281)
@@ -256,4 +256,9 @@
 				this->AddObject(Cflevelset);
 			}
+			else if(obj_enum==MassfluxatgateEnum){
+				Massfluxatgate<IssmDouble>* massfluxgate=new Massfluxatgate<IssmDouble>();
+				massfluxgate->Marshall(marshallhandle);
+				this->AddObject(massfluxgate);
+			}
 			else _error_("could not recognize enum type: " << obj_enum << ": " << EnumToStringx(obj_enum) ); 
 		}
