Changeset 2295
- Timestamp:
- 09/23/09 15:17:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/InterpFromMeshToGrid/InterpFromMeshToGrid.cpp
r2291 r2295 14 14 double* y=NULL; 15 15 double* meshdata=NULL; 16 int meshdata_length; 16 17 double cornereast; 17 18 double cornernorth; … … 37 38 FetchData((void**)&x,&nods,NULL,X,"Matrix","Mat"); 38 39 FetchData((void**)&y,NULL,NULL,Y,"Matrix","Mat"); 39 FetchData((void**)&meshdata, NULL,NULL,MESHDATA,"Matrix","Mat");40 FetchData((void**)&meshdata,&meshdata_length,NULL,MESHDATA,"Matrix","Mat"); 40 41 FetchData((void**)&cornereast,NULL,NULL,CORNEREAST,"Scalar",NULL); 41 42 FetchData((void**)&cornernorth,NULL,NULL,CORNERNORTH,"Scalar",NULL); … … 47 48 48 49 /*Call core of computation: */ 49 InterpFromMeshToGridx(&x_m,&y_m,&griddata,index,x,y,nods,nel,meshdata, cornereast,cornernorth,xposting,yposting,nlines,ncols,default_value);50 InterpFromMeshToGridx(&x_m,&y_m,&griddata,index,x,y,nods,nel,meshdata,meshdata_length,cornereast,cornernorth,xposting,yposting,nlines,ncols,default_value); 50 51 51 52 /*Write results: */ 52 WriteData(XM,x_m,ncols+1, NULL,"Vector","Vec");53 WriteData(YM,y_m,nlines+1, NULL,"Vector","Vec");53 WriteData(XM,x_m,ncols+1,1,"Vector","Vec"); 54 WriteData(YM,y_m,nlines+1,1,"Vector","Vec"); 54 55 WriteData(GRIDDATA,griddata,nlines,ncols,"Matrix","Mat"); 55 56
Note:
See TracChangeset
for help on using the changeset viewer.