Index: /issm/trunk/src/mex/InputDepthAverage/InputDepthAverage.cpp
===================================================================
--- /issm/trunk/src/mex/InputDepthAverage/InputDepthAverage.cpp	(revision 4094)
+++ /issm/trunk/src/mex/InputDepthAverage/InputDepthAverage.cpp	(revision 4095)
@@ -1,21 +1,22 @@
-/*\file DepthAverageInput.c
+/*\file InputDepthAverage.c
 *\brief: update elements properties using an input  vector
 */
 
-#include "./DepthAverageInput.h"
+#include "./InputDepthAverage.h"
 
 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){
 
 /*diverse: */
-int   noerr=1;
+int         noerr             = 1;
 
 /*input datasets: */
-DataSet* elements=NULL;
-DataSet* nodes=NULL;
-DataSet* vertices=NULL;
-DataSet* loads=NULL;
-DataSet* materials=NULL;
-Parameters* parameters=NULL;
-int      NameEnum;
+DataSet    *elements          = NULL;
+DataSet    *nodes             = NULL;
+DataSet    *vertices          = NULL;
+DataSet    *loads             = NULL;
+DataSet    *materials         = NULL;
+Parameters *parameters        = NULL;
+int         enum_type;
+int         average_enum_type;
 
 /*Boot module: */
@@ -23,5 +24,5 @@
 
 /*checks on arguments on the matlab side: */
-CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&DepthAverageInputUsage);
+CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InputDepthAverageUsage);
 
 /*Input datasets: */
@@ -32,8 +33,9 @@
 FetchData(&materials,MATERIALSIN);
 FetchParams(&parameters,PARAMETERSIN);
-FetchData(&NameEnum,NAME);
+FetchData(&enum_type,ENUMTYPE);
+FetchData(&average_enum_type,AVERAGEENUMTYPE);
 
-/*!Generate internal degree of freedom numbers: */
-DepthAverageInputx(elements,nodes,vertices,loads, materials,parameters,NameEnum);
+/*call "x" code layer*/
+InputDepthAveragex(elements,nodes,vertices,loads, materials,parameters,enum_type,average_enum_type);
 
 /*write output datasets: */
@@ -57,5 +59,5 @@
 }
 
-void DepthAverageInputUsage(void)
+void InputDepthAverageUsage(void)
 {
 	_printf_("\n");
Index: /issm/trunk/src/mex/InputDepthAverage/InputDepthAverage.h
===================================================================
--- /issm/trunk/src/mex/InputDepthAverage/InputDepthAverage.h	(revision 4094)
+++ /issm/trunk/src/mex/InputDepthAverage/InputDepthAverage.h	(revision 4095)
@@ -1,4 +1,4 @@
 /*
-	DepthAverageInput.h
+	InputDepthAverage.h
 */
 
@@ -7,5 +7,5 @@
 
 /* local prototypes: */
-void DepthAverageInputUsage(void);
+void InputDepthAverageUsage(void);
 
 #include "../../c/modules/modules.h"
@@ -15,5 +15,5 @@
 
 #undef __FUNCT__ 
-#define __FUNCT__  "DepthAverageInput"
+#define __FUNCT__  "InputDepthAverage"
 
 /* serial input macros: */
@@ -24,5 +24,6 @@
 #define MATERIALSIN (mxArray*)prhs[4]
 #define PARAMETERSIN (mxArray*)prhs[5]
-#define NAME (mxArray*)prhs[6]
+#define ENUMTYPE(mxArray*)prhs[6]
+#define AVERAGEENUMTYPE(mxArray*)prhs[7]
 
 /* serial output macros: */
@@ -38,5 +39,5 @@
 #define NLHS  6
 #undef NRHS
-#define NRHS  7
+#define NRHS  8
 
 #endif  /* _DEPTHAVERAGEINPUT_H */
Index: /issm/trunk/src/mex/Makefile.am
===================================================================
--- /issm/trunk/src/mex/Makefile.am	(revision 4094)
+++ /issm/trunk/src/mex/Makefile.am	(revision 4095)
@@ -17,5 +17,5 @@
 				ControlConstrain \
 				CostFunction \
-				DepthAverageInput\
+				InputDepthAverage\
 				NodesDof\
 				VerticesDof\
@@ -126,6 +126,6 @@
 						CostFunction/CostFunction.h
 
-DepthAverageInput_SOURCES = DepthAverageInput/DepthAverageInput.cpp\
-			  DepthAverageInput/DepthAverageInput.h
+InputDepthAverage_SOURCES = InputDepthAverage/InputDepthAverage.cpp\
+			  InputDepthAverage/InputDepthAverage.h
 
 NodesDof_SOURCES = NodesDof/NodesDof.cpp\
