Index: /issm/trunk-jpl/src/modules/Kriging/Kriging.cpp
===================================================================
--- /issm/trunk-jpl/src/modules/Kriging/Kriging.cpp	(revision 12183)
+++ /issm/trunk-jpl/src/modules/Kriging/Kriging.cpp	(revision 12184)
@@ -7,11 +7,12 @@
 
 	/*Outputs*/
-	double *x            = NULL;
-	double *y            = NULL;
-	double *observations = NULL;
-	double *x_interp     = NULL;
-	double *y_interp     = NULL;
-	double *predictions  = NULL;
-	int     n_interp,n,n_obs;
+	double  *x            = NULL;
+	double  *y            = NULL;
+	double  *observations = NULL;
+	double  *x_interp     = NULL;
+	double  *y_interp     = NULL;
+	double  *predictions  = NULL;
+	Options *options      = NULL;
+	int      n_interp,n,n_obs;
 
 	/*Boot module: */
@@ -19,5 +20,7 @@
 
 	/*checks on arguments on the matlab side: */
-	CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&KrigingUsage);
+	if (nrhs<NRHS || nlhs!=NLHS){
+		KrigingUsage(); _error_("Kriging usage error");
+	}
 
 	/*Fetch inputs: */
@@ -27,7 +30,8 @@
 	FetchData(&x_interp,&n_interp,XINTERP);
 	FetchData(&y_interp,&n,YINTERP);          if(n_interp!=n) _error_("x_interp and y_interp should have the same size");
+	FetchData(&options,NRHS,nrhs,prhs);
 
 	/*Call x layer*/
-	Krigingx(&predictions,x,y,observations,n_obs,x_interp,y_interp,n_interp);
+	Krigingx(&predictions,x,y,observations,n_obs,x_interp,y_interp,n_interp,options);
 
 	/*Generate output Matlab Structures*/
