Index: /issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp	(revision 12726)
+++ /issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp	(revision 12727)
@@ -96,4 +96,6 @@
 	}
 	else if(strcmp(output,"idw")==0){ //Inverse distance weighting
+		double power;
+		options->Get(&power,"power",2.);
 		/*initialize thread parameters: */
 		gate.n_interp     = n_interp;
@@ -108,4 +110,5 @@
 		gate.error        = error;
 		gate.percent      = xNewZeroInit<double>(num);
+		gate.power        = power;
 
 		/*launch the thread manager with Krigingxt as a core: */
@@ -270,8 +273,8 @@
 	double       *error        = gate->error;
 	double       *percent      = gate->percent;
+	double        power        = gate->power;
 
 	/*Intermediaries*/
 	double localpercent;
-	double  power = 2.;
 
 	/*partition loop across threads: */
Index: /issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.h
===================================================================
--- /issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.h	(revision 12726)
+++ /issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.h	(revision 12727)
@@ -29,4 +29,5 @@
 	double       *error;
 	double       *percent;
+	double        power;//for idw
 }KrigingxThreadStruct;
 
