Changeset 3648


Ignore:
Timestamp:
04/30/10 14:49:35 (15 years ago)
Author:
jschierm
Message:

Scotch: removed status output and instead emptied maptab output to avoid matlab missing output warning.

Location:
issm/trunk/externalpackages/scotch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/scotch/gmap.m

    r3005 r3648  
    22%  function to call the gmap module of the scotch partitioner.
    33%
    4 %  [status,maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apar,...
    5 %                       options)
     4%  [maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apar,...
     5%                options)
    66%
    77%  where the required input is:
     
    3030%
    3131%  the required output is:
    32 %    status     (double, return code from gmap)
    3332%    maptab     (double [nv x 2], vertex labels and partitions)
    3433%
     
    4847%               "See default strategy with option '-vs'"
    4948%
    50 function [status,maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apars,...
    51                               varargin)
     49function [maptab]=gmap(adj_mat,vlist,vwgt,ewgt,atype,apars,...
     50                       varargin)
    5251
    5352if ~nargin
     
    5958clear gmap_mex
    6059
    61 [status,maptab]=gmap_mex(adj_mat,vlist,vwgt,ewgt,atype,apars,...
    62                          varargin{:});
     60[maptab]=gmap_mex(adj_mat,vlist,vwgt,ewgt,atype,apars,...
     61                  varargin{:});
    6362
     63%  doesn't hurt to clear out after every run, too
    6464clear gmap_mex
    6565
  • issm/trunk/externalpackages/scotch/gmap_mex.c

    r3617 r3648  
    3333/* Output Arguments */
    3434
    35 #define RETURN_OUT plhs[0]
    36 #define MAPTAB_OUT plhs[1]
     35#define MAPTAB_OUT plhs[0]
    3736
    3837
     
    8281                return;
    8382        }
    84         else if (nrhs <  6 || nlhs >  2) {
     83        else if (nrhs <  6 || nlhs >  1) {
    8584                GmapUsage();
    8685                mexErrMsgTxt(" ");
     
    237236                free(maptabi);
    238237        }
     238        else {
     239                MAPTAB_OUT=mxCreateDoubleMatrix(0, 2, mxREAL);
     240        }
    239241
    240242        if (argvm)
     
    249251        if (adjir)   free(adjir);
    250252
    251         RETURN_OUT=mxCreateDoubleMatrix(1, 1, mxREAL);
    252         *mxGetPr(RETURN_OUT)=ierr;
    253 
    254253        return;
    255254}
     
    259258
    260259    mexPrintf("\n");
    261     mexPrintf("Usage: [return,maptab]=Gmap_mex(adjmat,vertlb,vertwt,edgewt,archtyp,archpar,\n");
    262     mexPrintf("                                Scotch-specific parameters);\n");
     260    mexPrintf("Usage: [maptab]=Gmap_mex(adjmat,vertlb,vertwt,edgewt,archtyp,archpar,\n");
     261    mexPrintf("                         Scotch-specific parameters);\n");
    263262    mexPrintf("\n");
    264263
Note: See TracChangeset for help on using the changeset viewer.