Changeset 12184
- Timestamp:
- 05/03/12 09:55:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/modules/Kriging/Kriging.cpp
r12164 r12184 7 7 8 8 /*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; 16 17 17 18 /*Boot module: */ … … 19 20 20 21 /*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 } 22 25 23 26 /*Fetch inputs: */ … … 27 30 FetchData(&x_interp,&n_interp,XINTERP); 28 31 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); 29 33 30 34 /*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); 32 36 33 37 /*Generate output Matlab Structures*/
Note:
See TracChangeset
for help on using the changeset viewer.