Changeset 12184


Ignore:
Timestamp:
05/03/12 09:55:05 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/modules/Kriging/Kriging.cpp

    r12164 r12184  
    77
    88        /*Outputs*/
    9         double *x            = NULL;
    10         double *y            = NULL;
    11         double *observations = NULL;
    12         double *x_interp     = NULL;
    13         double *y_interp     = NULL;
    14         double *predictions  = NULL;
    15         int     n_interp,n,n_obs;
     9        double  *x            = NULL;
     10        double  *y            = NULL;
     11        double  *observations = NULL;
     12        double  *x_interp     = NULL;
     13        double  *y_interp     = NULL;
     14        double  *predictions  = NULL;
     15        Options *options      = NULL;
     16        int      n_interp,n,n_obs;
    1617
    1718        /*Boot module: */
     
    1920
    2021        /*checks on arguments on the matlab side: */
    21         CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&KrigingUsage);
     22        if (nrhs<NRHS || nlhs!=NLHS){
     23                KrigingUsage(); _error_("Kriging usage error");
     24        }
    2225
    2326        /*Fetch inputs: */
     
    2730        FetchData(&x_interp,&n_interp,XINTERP);
    2831        FetchData(&y_interp,&n,YINTERP);          if(n_interp!=n) _error_("x_interp and y_interp should have the same size");
     32        FetchData(&options,NRHS,nrhs,prhs);
    2933
    3034        /*Call x layer*/
    31         Krigingx(&predictions,x,y,observations,n_obs,x_interp,y_interp,n_interp);
     35        Krigingx(&predictions,x,y,observations,n_obs,x_interp,y_interp,n_interp,options);
    3236
    3337        /*Generate output Matlab Structures*/
Note: See TracChangeset for help on using the changeset viewer.