Index: /issm/trunk-jpl/src/c/bamg/Mesh.cpp
===================================================================
--- /issm/trunk-jpl/src/c/bamg/Mesh.cpp	(revision 16155)
+++ /issm/trunk-jpl/src/c/bamg/Mesh.cpp	(revision 16156)
@@ -2187,8 +2187,10 @@
 				// correction of second derivative
 				// by a laplacien
-				double* d2[3] = {dxdx, dxdy, dydy};
 				double* dd;
 				for (int xy = 0;xy<3;xy++) {
-					dd = d2[xy];
+					if      (xy==0) dd=dxdx;
+					else if (xy==1) dd=dxdy;
+					else if (xy==2) dd=dydy;
+					else    _error_("not supported yet");
 					// do leat 2 iteration for boundary problem
 					for (int ijacobi=0;ijacobi<Max(NbJacobi,2);ijacobi++){
