Changeset 3249
- Timestamp:
- 03/10/10 13:51:47 (15 years ago)
- Location:
- issm/trunk/src/mex/ContourToNodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/ContourToNodes/ContourToNodes.cpp
r2333 r3249 32 32 double* y=NULL; 33 33 int edgevalue; 34 char* interptype=NULL; 34 35 35 36 /* output: */ … … 46 47 47 48 /*checks on arguments on the matlab side: */ 48 //CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&ContourToNodesUsage); Cant' use it here, as we have variable outputs. 49 if((nlhs==0) && (nrhs=0)){ 50 ContourToNodesUsage(); 51 throw ErrorException(__FUNCT__," usage. See above"); 52 } 49 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&ContourToNodesUsage); 53 50 54 51 /*Fetch inputs: */ … … 75 72 } 76 73 77 #ifdef _ISSM_DEBUG_78 for(i=0;i<numcontours;i++){79 printf("\nContour echo: contour number %i / %i\n",i+1,numcontours);80 contouri=*(contours+i);81 printf(" Number of grids %i\n",contouri->nods);82 for (j=0;j<contouri->nods;j++){83 printf(" %lf %lf\n",*(contouri->x+j),*(contouri->y+j));84 }85 }86 #endif87 88 74 /*Run interpolation routine: */ 89 ContourToNodesx( 75 ContourToNodesx(&flags,x,y,nods,contours,numcontours,edgevalue); 90 76 91 77 /* output: */ … … 94 80 /*end module: */ 95 81 MODULEEND(); 96 82 97 83 } 98 84 99 void ContourToNodesUsage(void) 100 { 85 void ContourToNodesUsage(void){ 101 86 printf(" usage:\n"); 102 printf(" [flags]=ContourToNodes( ,x,y,contours,edgevalue);\n\n");87 printf(" [flags]=ContourToNodes(x,y,contours,edgevalue);\n\n"); 103 88 printf(" where:\n"); 104 89 printf(" x,y: list of nodes.\n"); -
issm/trunk/src/mex/ContourToNodes/ContourToNodes.h
r1103 r3249 32 32 /* serial arg counts: */ 33 33 #undef NLHS 34 #define NLHS 234 #define NLHS 1 35 35 #undef NRHS 36 36 #define NRHS 4
Note:
See TracChangeset
for help on using the changeset viewer.