Index: /issm/trunk/src/mex/Test/Test.cpp
===================================================================
--- /issm/trunk/src/mex/Test/Test.cpp	(revision 2993)
+++ /issm/trunk/src/mex/Test/Test.cpp	(revision 2994)
@@ -7,34 +7,8 @@
 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){
 
-	/*diverse: */
-	int   noerr=1;
+	MODULEBOOT();
+	//MPI_Init(NULL,NULL);
+	MODULEEND();
 
-	/*Boot module: */
-	MODULEBOOT();
-
-	/*checks on arguments on the matlab side: */
-	CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&TestUsage);
-
-	double* pr=mxGetPr(prhs[0]);
-	int M=mxGetM(prhs[0]);
-	int N=mxGetM(prhs[0]);
-	mwIndex* ir=mxGetIr(prhs[0]);
-	mwIndex* jc=mxGetJc(prhs[0]);
-	int     nzmax=(int)mxGetNzmax(prhs[0]);
-
-	int i;
-	printf("nzmax %i\n",nzmax);
-	printf("jc:\n");
-	for(i=0;i<N+1;i++){
-		printf("%i\n",jc[i]);
-	}
-	printf("ir vale:\n");
-	for(i=0;i<nzmax;i++){
-		printf("%i %g\n",ir[i],pr[i]);
-	}	
-
-
-	/*end module: */
-	MODULEEND();
 }
 
Index: /issm/trunk/src/mex/Test/Test.cpp.grid
===================================================================
--- /issm/trunk/src/mex/Test/Test.cpp.grid	(revision 2994)
+++ /issm/trunk/src/mex/Test/Test.cpp.grid	(revision 2994)
@@ -0,0 +1,46 @@
+/*\file Test.c
+ *\brief:  test module. do whatever you want in here
+ */
+
+#include "./Test.h"
+
+void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){
+
+	/*diverse: */
+	int   noerr=1;
+
+	/*Boot module: */
+	MODULEBOOT();
+
+	/*checks on arguments on the matlab side: */
+	CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&TestUsage);
+
+	double* pr=mxGetPr(prhs[0]);
+	int M=mxGetM(prhs[0]);
+	int N=mxGetM(prhs[0]);
+	mwIndex* ir=mxGetIr(prhs[0]);
+	mwIndex* jc=mxGetJc(prhs[0]);
+	int     nzmax=(int)mxGetNzmax(prhs[0]);
+
+	int i;
+	printf("nzmax %i\n",nzmax);
+	printf("jc:\n");
+	for(i=0;i<N+1;i++){
+		printf("%i\n",jc[i]);
+	}
+	printf("ir vale:\n");
+	for(i=0;i<nzmax;i++){
+		printf("%i %g\n",ir[i],pr[i]);
+	}	
+
+
+	/*end module: */
+	MODULEEND();
+}
+
+void TestUsage(void)
+{
+	_printf_("\n");
+	_printf_("   usage: %s(whatever in here);\n",__FUNCT__);
+	_printf_("\n");
+}
