Index: /issm/trunk-jpl/src/mex/Test/Test.cpp
===================================================================
--- /issm/trunk-jpl/src/mex/Test/Test.cpp	(revision 11845)
+++ /issm/trunk-jpl/src/mex/Test/Test.cpp	(revision 11845)
@@ -0,0 +1,39 @@
+/*
+ * Test: test python bindings
+ *
+ */
+
+#include "./Test.h"
+
+using namespace boost::python;
+
+void mesh(boost::python::numeric::array array){
+
+	int i;
+	double* b=NULL;
+	int nd,M,N;
+	int* dims=NULL;
+	PyArrayObject* a = (PyArrayObject*)array.ptr();
+	b=(double*)PyArray_DATA(a);
+	nd=PyArray_NDIM(a);
+	dims=(int*)PyArray_DIMS(a); 
+	M=dims[0];
+
+	printf("nd: %i M: %i\n",nd,M);
+	for(i=0;i<M;i++){
+		printf("%g\n",b[i]);
+	}
+
+	
+}
+
+
+#include <boost/python/module.hpp>
+#include <boost/python/def.hpp>
+using namespace boost::python;
+
+BOOST_PYTHON_MODULE(Test){
+	boost::python::numeric::array::set_module_and_type( "numpy", "ndarray");
+	//boost::python::numeric::array::set_module_and_type( "numpy", "array");
+	def("mesh",mesh);
+}
Index: /issm/trunk-jpl/src/mex/Test/Test.h
===================================================================
--- /issm/trunk-jpl/src/mex/Test/Test.h	(revision 11845)
+++ /issm/trunk-jpl/src/mex/Test/Test.h	(revision 11845)
@@ -0,0 +1,16 @@
+/*!\file:  Test.h
+ * \brief header prototype
+ */ 
+
+#ifndef _TEST_H_
+#define _TEST_H_
+
+#include <stdio.h>
+using namespace std; 
+
+#include <boost/python.hpp>
+#include <boost/python/module.hpp>
+#include <boost/python/def.hpp>
+#include <numpy/arrayobject.h>
+
+#endif
