Changeset 3648
- Timestamp:
- 04/30/10 14:49:35 (15 years ago)
- Location:
- issm/trunk/externalpackages/scotch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/externalpackages/scotch/gmap.m
r3005 r3648 2 2 % function to call the gmap module of the scotch partitioner. 3 3 % 4 % [ status,maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apar,...5 % 4 % [maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apar,... 5 % options) 6 6 % 7 7 % where the required input is: … … 30 30 % 31 31 % the required output is: 32 % status (double, return code from gmap)33 32 % maptab (double [nv x 2], vertex labels and partitions) 34 33 % … … 48 47 % "See default strategy with option '-vs'" 49 48 % 50 function [ status,maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apars,...51 49 function [maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apars,... 50 varargin) 52 51 53 52 if ~nargin … … 59 58 clear gmap_mex 60 59 61 [ status,maptab]=gmap_mex(adj_mat,vlist,vwgt,ewgt,atype,apars,...62 60 [maptab]=gmap_mex(adj_mat,vlist,vwgt,ewgt,atype,apars,... 61 varargin{:}); 63 62 63 % doesn't hurt to clear out after every run, too 64 64 clear gmap_mex 65 65 -
issm/trunk/externalpackages/scotch/gmap_mex.c
r3617 r3648 33 33 /* Output Arguments */ 34 34 35 #define RETURN_OUT plhs[0] 36 #define MAPTAB_OUT plhs[1] 35 #define MAPTAB_OUT plhs[0] 37 36 38 37 … … 82 81 return; 83 82 } 84 else if (nrhs < 6 || nlhs > 2) {83 else if (nrhs < 6 || nlhs > 1) { 85 84 GmapUsage(); 86 85 mexErrMsgTxt(" "); … … 237 236 free(maptabi); 238 237 } 238 else { 239 MAPTAB_OUT=mxCreateDoubleMatrix(0, 2, mxREAL); 240 } 239 241 240 242 if (argvm) … … 249 251 if (adjir) free(adjir); 250 252 251 RETURN_OUT=mxCreateDoubleMatrix(1, 1, mxREAL);252 *mxGetPr(RETURN_OUT)=ierr;253 254 253 return; 255 254 } … … 259 258 260 259 mexPrintf("\n"); 261 mexPrintf("Usage: [ return,maptab]=Gmap_mex(adjmat,vertlb,vertwt,edgewt,archtyp,archpar,\n");262 mexPrintf(" 260 mexPrintf("Usage: [maptab]=Gmap_mex(adjmat,vertlb,vertwt,edgewt,archtyp,archpar,\n"); 261 mexPrintf(" Scotch-specific parameters);\n"); 263 262 mexPrintf("\n"); 264 263
Note:
See TracChangeset
for help on using the changeset viewer.