Changeset 4711
- Timestamp:
- 07/21/10 18:45:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/Scotch/Scotch.cpp
r4656 r4711 61 61 strcpy(argvm[isi],"gmap"); 62 62 mexPrintf("%s -- Using \"%s\" entry point.\n", 63 THISFUNCTION,argvm[isi]);63 __FUNCT__,argvm[isi]); 64 64 isi++; 65 65 } … … 68 68 strcpy(argvm[isi],"gpart"); 69 69 mexPrintf("%s -- Using \"%s\" entry point.\n", 70 THISFUNCTION,argvm[isi]);70 __FUNCT__,argvm[isi]); 71 71 isi++; 72 72 … … 74 74 sprintf(argvm[isi],"%d",(int)mxGetScalar(prhs[imi])); 75 75 mexPrintf("%s -- Number of parts is %s.\n", 76 THISFUNCTION,argvm[isi]);76 __FUNCT__,argvm[isi]); 77 77 isi++; 78 78 imi++; … … 80 80 81 81 if (!mxIsNumeric(prhs[imi]) || (!mxIsEmpty(prhs[imi]) && !mxIsSparse(prhs[imi]))) { 82 mexPrintf("%s -- Adjacency matrix must be numeric and sparse.\n", THISFUNCTION);82 mexPrintf("%s -- Adjacency matrix must be numeric and sparse.\n",__FUNCT__); 83 83 mexErrMsgTxt(" "); 84 84 } … … 99 99 } 100 100 mexPrintf("%s -- Adjacency matrix is of size %d by %d with %d non-zeroes.\n", 101 THISFUNCTION,mxGetM(prhs[imi]),mxGetN(prhs[imi]),mxGetNzmax(prhs[imi]));101 __FUNCT__,mxGetM(prhs[imi]),mxGetN(prhs[imi]),mxGetNzmax(prhs[imi])); 102 102 } 103 103 imi++; 104 104 105 105 if (!mxIsNumeric(prhs[imi])) { 106 mexPrintf("%s -- Vertex label vector must be numeric.\n", THISFUNCTION);106 mexPrintf("%s -- Vertex label vector must be numeric.\n",__FUNCT__); 107 107 mexErrMsgTxt(" "); 108 108 } … … 115 115 } 116 116 mexPrintf("%s -- Vertex label vector is of size %d by %d.\n", 117 THISFUNCTION,mxGetM(prhs[imi]),mxGetN(prhs[imi]));117 __FUNCT__,mxGetM(prhs[imi]),mxGetN(prhs[imi])); 118 118 } 119 119 imi++; 120 120 121 121 if (!mxIsNumeric(prhs[imi])) { 122 mexPrintf("%s -- Vertex weight vector must be numeric.\n", THISFUNCTION);122 mexPrintf("%s -- Vertex weight vector must be numeric.\n",__FUNCT__); 123 123 mexErrMsgTxt(" "); 124 124 } … … 131 131 } 132 132 mexPrintf("%s -- Vertex weight vector is of size %d by %d.\n", 133 THISFUNCTION,mxGetM(prhs[imi]),mxGetN(prhs[imi]));133 __FUNCT__,mxGetM(prhs[imi]),mxGetN(prhs[imi])); 134 134 } 135 135 imi++; 136 136 137 137 if (!mxIsNumeric(prhs[imi]) || (!mxIsEmpty(prhs[imi]) && !mxIsSparse(prhs[imi]))) { 138 mexPrintf("%s -- Edge weight matrix must be numeric and sparse.\n", THISFUNCTION);138 mexPrintf("%s -- Edge weight matrix must be numeric and sparse.\n",__FUNCT__); 139 139 mexErrMsgTxt(" "); 140 140 } … … 147 147 } 148 148 mexPrintf("%s -- Edge weight matrix is of size %d by %d with %d non-zeroes.\n", 149 THISFUNCTION,mxGetM(prhs[imi]),mxGetN(prhs[imi]),mxGetNzmax(prhs[imi]));149 __FUNCT__,mxGetM(prhs[imi]),mxGetN(prhs[imi]),mxGetNzmax(prhs[imi])); 150 150 } 151 151 imi++; … … 154 154 (strncmp (argvm[0] + strlen (argvm[0]) - 5, "gpart", 5) == 0))) { 155 155 if (!mxIsChar(prhs[imi])) { 156 mexPrintf("%s -- Architecture type must be character.\n", THISFUNCTION);156 mexPrintf("%s -- Architecture type must be character.\n",__FUNCT__); 157 157 mexErrMsgTxt(" "); 158 158 } … … 163 163 } 164 164 mexPrintf("%s -- Architecture type is \"%s\".\n", 165 THISFUNCTION,archtyp);165 __FUNCT__,archtyp); 166 166 } 167 167 imi++; 168 168 169 169 if (!mxIsNumeric(prhs[imi])) { 170 mexPrintf("%s -- Architecture parameter vector must be numeric.\n", THISFUNCTION);170 mexPrintf("%s -- Architecture parameter vector must be numeric.\n",__FUNCT__); 171 171 mexErrMsgTxt(" "); 172 172 } … … 180 180 } 181 181 mexPrintf("%s -- Architecture parameter vector is of size %d by %d.\n", 182 THISFUNCTION,mxGetM(prhs[imi]),mxGetN(prhs[imi]));182 __FUNCT__,mxGetM(prhs[imi]),mxGetN(prhs[imi])); 183 183 } 184 184 imi++; … … 187 187 while (imi < nrhs) { 188 188 if (!mxIsChar(prhs[imi])) { 189 mexPrintf("%s -- prhs[%d] must be character.\n", THISFUNCTION,imi);189 mexPrintf("%s -- prhs[%d] must be character.\n",__FUNCT__,imi); 190 190 mexErrMsgTxt(" "); 191 191 } … … 218 218 napar, 219 219 api); 220 mexPrintf("%s -- Error %d from Gmapx.\n", THISFUNCTION,ierr);220 mexPrintf("%s -- Error %d from Gmapx.\n",__FUNCT__,ierr); 221 221 222 222 /* for (i=0; i<nvert; i++) … … 233 233 for (i=0; i<nvert; i++) 234 234 maptabd[k++]=(double)maptabi[i][j]; 235 free(maptabi);235 //free(maptabi); 236 236 } 237 237 else { … … 240 240 imo++; 241 241 242 if (argvm)242 /*if (argvm) 243 243 for (i=argcm-1; i>=0; i--) 244 244 free(argvm[i]); … … 249 249 if (vli) free(vli); 250 250 if (adjjc) free(adjjc); 251 if (adjir) free(adjir); 251 if (adjir) free(adjir);*/ 252 252 253 253 return;
Note:
See TracChangeset
for help on using the changeset viewer.