- Timestamp:
- 08/28/18 09:45:51 (7 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 22823-22871,22873-22887,22894-22903,22905-23090,23092-23185,23187
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/wrappers/ContourToNodes/ContourToNodes.cpp
r21341 r23189 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.