Changeset 12219
- Timestamp:
- 05/07/12 10:59:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/modules/Kriging/Kriging.cpp
r12184 r12219 14 14 double *predictions = NULL; 15 15 Options *options = NULL; 16 int n_interp,n,n_obs;16 int N_interp,M_interp,M,N,n_obs; 17 17 18 18 /*Boot module: */ … … 26 26 /*Fetch inputs: */ 27 27 FetchData(&x,&n_obs,X); 28 FetchData(&y,& n,Y); if(n_obs!=n) _error_("x and y should have the same size");29 FetchData(&observations,& n,OBSERVATIONS); if(n_obs!=n) _error_("x and observations should have the same size");30 FetchData(&x_interp,& n_interp,XINTERP);31 FetchData(&y_interp,& n,YINTERP); if(n_interp!=n) _error_("x_interp and y_interp should have the same size");28 FetchData(&y,&N,Y); if(n_obs!=N) _error_("x and y should have the same size"); 29 FetchData(&observations,&N,OBSERVATIONS); if(n_obs!=N) _error_("x and observations should have the same size"); 30 FetchData(&x_interp,&M_interp,&N_interp,XINTERP); 31 FetchData(&y_interp,&M,&N,YINTERP); if(N!=N_interp || M!=M_interp) _error_("x_interp and y_interp should have the same size"); 32 32 FetchData(&options,NRHS,nrhs,prhs); 33 33 34 34 /*Call x layer*/ 35 Krigingx(&predictions,x,y,observations,n_obs,x_interp,y_interp, n_interp,options);35 Krigingx(&predictions,x,y,observations,n_obs,x_interp,y_interp,M_interp*N_interp,options); 36 36 37 37 /*Generate output Matlab Structures*/ 38 WriteData(PREDICTIONS,predictions, n_interp);38 WriteData(PREDICTIONS,predictions,M_interp,N_interp); 39 39 40 40 /*Free ressources: */
Note:
See TracChangeset
for help on using the changeset viewer.