Index: /issm/trunk/src/c/shared/Exp/IsInPoly.cpp
===================================================================
--- /issm/trunk/src/c/shared/Exp/IsInPoly.cpp	(revision 2586)
+++ /issm/trunk/src/c/shared/Exp/IsInPoly.cpp	(revision 2587)
@@ -8,7 +8,14 @@
 #include "../shared.h"
 
+#ifdef HAVE_CONFIG_H
+	#include "config.h"
+#else
+#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
+#endif
 
 
-int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue){
+
+
+int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int i0,int i1, int edgevalue){
 
 	int i;
@@ -17,5 +24,5 @@
 
 	/*Go through all grids of the mesh:*/
-	for (i=MPI_Lowerrow(nods);i<MPI_Upperrow(nods);i++){
+	for (i=i0;i<i1;i++){
 
 		//Get current value of value[i] -> do not change it if != 0
Index: /issm/trunk/src/c/shared/Exp/exp.h
===================================================================
--- /issm/trunk/src/c/shared/Exp/exp.h	(revision 2586)
+++ /issm/trunk/src/c/shared/Exp/exp.h	(revision 2587)
@@ -9,5 +9,5 @@
 #include "../../toolkits/toolkits.h"
 
-int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue);
+int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int i0,int i1, int edgevalue);
 int IsInPolySerial(double* in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue);
 int IsOutsidePoly(Vec out,double* xc,double* yc,int numgrids,double* x,double* y,int nods,int edgevalue);
