Changeset 23073
- Timestamp:
- 08/07/18 14:42:48 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.cpp
r20811 r23073 18 18 19 19 /* input: */ 20 int edgevalue, nods;20 int edgevalue,dim1,dim2,test1,test2; 21 21 double *x = NULL; 22 22 double *y = NULL; … … 34 34 35 35 /*Fetch inputs: */ 36 FetchData(&x,& nods,NULL,XHANDLE);37 FetchData(&y, NULL,NULL,YHANDLE);36 FetchData(&x,&dim1,&dim2,XHANDLE); 37 FetchData(&y,&test1,&test2,YHANDLE); 38 38 FetchData(&edgevalue,EDGEVALUE); 39 39 FetchData(&contours,CONTOUR); 40 40 41 /*Some sanity checks*/ 42 if(dim1<1) _error_("x is empty"); 43 if(dim2<1) _error_("x is empty"); 44 if(test1!=dim1) _error_("x ans y do not have the same size"); 45 if(test2!=dim2) _error_("x ans y do not have the same size"); 46 41 47 /*Run x layer */ 42 ContourToNodesx(&flags,x,y, nods,contours,edgevalue);48 ContourToNodesx(&flags,x,y,dim1*dim2,contours,edgevalue); 43 49 44 50 /* output: */ 45 WriteData(FLAGS,flags, nods);51 WriteData(FLAGS,flags,dim1,dim2); 46 52 47 53 /*Clean up*/
Note:
See TracChangeset
for help on using the changeset viewer.