Changeset 4650


Ignore:
Timestamp:
07/19/10 10:54:10 (15 years ago)
Author:
Eric.Larour
Message:

reversed patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/scotch/scotch.patch

    r4629 r4650  
    1 Only in new4: bin
    2 Only in new4: include
    3 Only in new4: lib
    4 diff -rc src/src/libscotch/arch.c new4/src/libscotch/arch.c
    5 *** src/src/libscotch/arch.c    2008-09-27 07:48:01.000000000 -0700
    6 --- new4/src/libscotch/arch.c   2010-05-03 15:37:55.104089848 -0700
    7 ***************
    8 *** 173,187 ****
    9   int
    10   archLoad (
    11   Arch * restrict const       archptr,
    12 ! FILE * const                stream)
    13   {
    14     const ArchClass * restrict  class;              /* Pointer to architecture class */
    15     char                        name[256];          /* Architecture name string      */
    16  
    17     if (fscanf (stream, "%255s", name) != 1) {      /* Read architecture name */
    18       errorPrint ("archLoad: cannot load architecture type");
    19       return     (1);
    20     }
    21     name[255] = '\0';                               /* Set end of string */
    22  
    23     if ((class = archClass (name)) == NULL) {       /* Get class from its name */
    24 --- 173,203 ----
     1Only in src: bin
     2Only in src: include
     3Only in src: lib
     4diff -rc src/src/libscotch/arch.c old/src/libscotch/arch.c
     5*** src/src/libscotch/arch.c    2010-07-19 10:53:22.888731718 -0700
     6--- old/src/libscotch/arch.c    2008-09-27 07:48:01.000000000 -0700
     7***************
     8*** 173,203 ****
    259  int
    2610  archLoad (
     
    3822    char                        name[256];          /* Architecture name string      */
    3923 
    40 + #ifdef MATLAB
    41 +   printf("archLoad - stream=%p; archtyp=\"%s\"\n",stream,archtyp);
    42 +   printf("archLoad - napar=%d,archpar=%p\n",napar,archpar);
    43 + #endif /* MATLAB */
    44 +
    45 + #ifndef MATLAB
     24- #ifdef MATLAB
     25-   printf("archLoad - stream=%p; archtyp=\"%s\"\n",stream,archtyp);
     26-   printf("archLoad - napar=%d,archpar=%p\n",napar,archpar);
     27- #endif /* MATLAB */
     28-
     29- #ifndef MATLAB
    4630    if (fscanf (stream, "%255s", name) != 1) {      /* Read architecture name */
    4731      errorPrint ("archLoad: cannot load architecture type");
    4832      return     (1);
    4933    }
    50 + #else /* MATLAB */
    51 +   strcpy(name,archtyp);
    52 + #endif /* MATLAB */
     34- #else /* MATLAB */
     35-   strcpy(name,archtyp);
     36- #endif /* MATLAB */
    5337    name[255] = '\0';                               /* Set end of string */
    5438 
    5539    if ((class = archClass (name)) == NULL) {       /* Get class from its name */
    56 ***************
    57 *** 190,196 ****
    58 --- 206,216 ----
     40--- 173,187 ----
     41  int
     42  archLoad (
     43  Arch * restrict const       archptr,
     44! FILE * const                stream)
     45  {
     46    const ArchClass * restrict  class;              /* Pointer to architecture class */
     47    char                        name[256];          /* Architecture name string      */
     48 
     49    if (fscanf (stream, "%255s", name) != 1) {      /* Read architecture name */
     50      errorPrint ("archLoad: cannot load architecture type");
     51      return     (1);
     52    }
     53    name[255] = '\0';                               /* Set end of string */
     54 
     55    if ((class = archClass (name)) == NULL) {       /* Get class from its name */
     56***************
     57*** 206,216 ****
    5958    }
    6059 
    6160    if (class->archLoad != NULL) {                  /* If class has loading function */
    62 + #ifndef MATLAB
     61- #ifndef MATLAB
    6362      if (class->archLoad (&archptr->data, stream) != 0) { /* Load class data        */
    64 + #else /* MATLAB */
    65 +     if (class->archLoad (&archptr->data, stream, napar, archpar) != 0) { /* Load class data        */
    66 + #endif /* MATLAB */
     63- #else /* MATLAB */
     64-     if (class->archLoad (&archptr->data, stream, napar, archpar) != 0) { /* Load class data        */
     65- #endif /* MATLAB */
    6766        errorPrint ("archLoad: cannot load architecture data");
    6867        memset     (archptr, 0, sizeof (Arch));     /* Initialize architecture body */
    6968        return     (1);
    70 diff -rc src/src/libscotch/arch_cmplt.c new4/src/libscotch/arch_cmplt.c
    71 *** src/src/libscotch/arch_cmplt.c      2008-05-22 06:44:41.000000000 -0700
    72 --- new4/src/libscotch/arch_cmplt.c     2010-05-03 15:37:55.111089854 -0700
    73 ***************
    74 *** 90,99 ****
    75   int
    76   archCmpltArchLoad (
    77   ArchCmplt * restrict const  archptr,
    78 ! FILE * restrict const       stream)
    79   {
    80     long                numnbr;
    81  
    82   #ifdef SCOTCH_DEBUG_ARCH1
    83     if ((sizeof (ArchCmplt)    > sizeof (ArchDummy)) ||
    84         (sizeof (ArchCmpltDom) > sizeof (ArchDomDummy))) {
    85 --- 90,109 ----
     69--- 190,196 ----
     70diff -rc src/src/libscotch/arch_cmplt.c old/src/libscotch/arch_cmplt.c
     71*** src/src/libscotch/arch_cmplt.c      2010-07-19 10:53:22.891731738 -0700
     72--- old/src/libscotch/arch_cmplt.c      2008-05-22 06:44:41.000000000 -0700
     73***************
     74*** 90,109 ****
    8675  int
    8776  archCmpltArchLoad (
     
    9786    long                numnbr;
    9887 
    99 + #ifdef MATLAB
    100 +   printf("archCmpltArchLoad - napar=%d,archpar=%p\n",napar,archpar);
    101 + #endif /* MATLAB */
    102 +
     88- #ifdef MATLAB
     89-   printf("archCmpltArchLoad - napar=%d,archpar=%p\n",napar,archpar);
     90- #endif /* MATLAB */
     91-
    10392  #ifdef SCOTCH_DEBUG_ARCH1
    10493    if ((sizeof (ArchCmplt)    > sizeof (ArchDummy)) ||
    10594        (sizeof (ArchCmpltDom) > sizeof (ArchDomDummy))) {
    106 ***************
    107 *** 102,109 ****
    108 --- 112,124 ----
     95--- 90,99 ----
     96  int
     97  archCmpltArchLoad (
     98  ArchCmplt * restrict const  archptr,
     99! FILE * restrict const       stream)
     100  {
     101    long                numnbr;
     102 
     103  #ifdef SCOTCH_DEBUG_ARCH1
     104    if ((sizeof (ArchCmplt)    > sizeof (ArchDummy)) ||
     105        (sizeof (ArchCmpltDom) > sizeof (ArchDomDummy))) {
     106***************
     107*** 112,124 ****
    109108    }
    110109  #endif /* SCOTCH_DEBUG_ARCH1 */
    111110 
    112 + #ifndef MATLAB
     111- #ifndef MATLAB
    113112    if ((fscanf (stream, "%ld", &numnbr) != 1) ||
    114113        (numnbr < 1)) {
    115 + #else /* MATLAB */
    116 +   if ((napar < 1) ||
    117 +       ((numnbr=(long)archpar[0]) < 1)) {
    118 + #endif /* MATLAB */
     114- #else /* MATLAB */
     115-   if ((napar < 1) ||
     116-       ((numnbr=(long)archpar[0]) < 1)) {
     117- #endif /* MATLAB */
    119118      errorPrint ("archCmpltArchLoad: bad input");
    120119      return     (1);
    121120    }
    122 diff -rc src/src/libscotch/arch_cmplt.h new4/src/libscotch/arch_cmplt.h
    123 *** src/src/libscotch/arch_cmplt.h      2008-05-22 06:44:41.000000000 -0700
    124 --- new4/src/libscotch/arch_cmplt.h     2010-05-03 15:37:55.118089860 -0700
    125 ***************
    126 *** 87,93 ****
    127 --- 87,97 ----
     121--- 102,109 ----
     122diff -rc src/src/libscotch/arch_cmplt.h old/src/libscotch/arch_cmplt.h
     123*** src/src/libscotch/arch_cmplt.h      2010-07-19 10:53:22.893731751 -0700
     124--- old/src/libscotch/arch_cmplt.h      2008-05-22 06:44:41.000000000 -0700
     125***************
     126*** 87,97 ****
    128127  #define static
    129128  #endif
    130129 
    131 + #ifndef MATLAB
     130- #ifndef MATLAB
    132131  int                         archCmpltArchLoad   (ArchCmplt * restrict const, FILE * restrict const);
    133 + #else /* MATLAB */
    134 + int                         archCmpltArchLoad   (ArchCmplt * restrict const, FILE * restrict const, const Anum, const Anum *);
    135 + #endif /* MATLAB */
     132- #else /* MATLAB */
     133- int                         archCmpltArchLoad   (ArchCmplt * restrict const, FILE * restrict const, const Anum, const Anum *);
     134- #endif /* MATLAB */
    136135  int                         archCmpltArchSave   (const ArchCmplt * const, FILE * restrict const);
    137136  #define archCmpltArchFree           NULL
    138137  ArchDomNum                  archCmpltDomNum     (const ArchCmplt * const, const ArchCmpltDom * const);
    139 diff -rc src/src/libscotch/arch_cmpltw.c new4/src/libscotch/arch_cmpltw.c
    140 *** src/src/libscotch/arch_cmpltw.c     2008-08-27 14:22:22.000000000 -0700
    141 --- new4/src/libscotch/arch_cmpltw.c    2010-05-03 15:37:55.126089866 -0700
    142 ***************
    143 *** 200,211 ****
    144   int
    145   archCmpltwArchLoad (
    146   ArchCmpltw * restrict const  archptr,
    147 ! FILE * restrict const       stream)
    148   {
    149     long                vertnbr;
    150     Gnum                velosum;
    151     Anum                vertnum;
    152  
    153   #ifdef SCOTCH_DEBUG_ARCH1
    154     if ((sizeof (ArchCmpltw)    > sizeof (ArchDummy)) ||
    155         (sizeof (ArchCmpltwDom) > sizeof (ArchDomDummy))) {
    156 --- 200,221 ----
     138--- 87,93 ----
     139diff -rc src/src/libscotch/arch_cmpltw.c old/src/libscotch/arch_cmpltw.c
     140*** src/src/libscotch/arch_cmpltw.c     2010-07-19 10:53:22.896731770 -0700
     141--- old/src/libscotch/arch_cmpltw.c     2008-08-27 14:22:22.000000000 -0700
     142***************
     143*** 200,221 ****
    157144  int
    158145  archCmpltwArchLoad (
     
    170157    Anum                vertnum;
    171158 
    172 + #ifdef MATLAB
    173 +   printf("archCmpltwArchLoad - napar=%d,archpar=%p\n",napar,archpar);
    174 + #endif /* MATLAB */
    175 +
     159- #ifdef MATLAB
     160-   printf("archCmpltwArchLoad - napar=%d,archpar=%p\n",napar,archpar);
     161- #endif /* MATLAB */
     162-
    176163  #ifdef SCOTCH_DEBUG_ARCH1
    177164    if ((sizeof (ArchCmpltw)    > sizeof (ArchDummy)) ||
    178165        (sizeof (ArchCmpltwDom) > sizeof (ArchDomDummy))) {
    179 ***************
    180 *** 214,221 ****
    181 --- 224,236 ----
     166--- 200,211 ----
     167  int
     168  archCmpltwArchLoad (
     169  ArchCmpltw * restrict const  archptr,
     170! FILE * restrict const       stream)
     171  {
     172    long                vertnbr;
     173    Gnum                velosum;
     174    Anum                vertnum;
     175 
     176  #ifdef SCOTCH_DEBUG_ARCH1
     177    if ((sizeof (ArchCmpltw)    > sizeof (ArchDummy)) ||
     178        (sizeof (ArchCmpltwDom) > sizeof (ArchDomDummy))) {
     179***************
     180*** 224,236 ****
    182181    }
    183182  #endif /* SCOTCH_DEBUG_ARCH1 */
    184183 
    185 + #ifndef MATLAB
     184- #ifndef MATLAB
    186185    if ((fscanf (stream, "%ld", &vertnbr) != 1) ||
    187186        (vertnbr < 1)) {
    188 + #else /* MATLAB */
    189 +   if ((napar < 1) ||
    190 +       ((vertnbr=(long)archpar[0]) < 1)) {
    191 + #endif /* MATLAB */
     187- #else /* MATLAB */
     188-   if ((napar < 1) ||
     189-       ((vertnbr=(long)archpar[0]) < 1)) {
     190- #endif /* MATLAB */
    192191      errorPrint ("archCmpltwArchLoad: bad input (1)");
    193192      return     (1);
    194193    }
    195 ***************
    196 *** 230,237 ****
    197 --- 245,257 ----
     194--- 214,221 ----
     195***************
     196*** 245,257 ****
    198197      long                veloval;
    199198      Gnum                velotmp;
    200199 
    201 + #ifndef MATLAB
     200- #ifndef MATLAB
    202201      if ((fscanf (stream, "%ld", &veloval) != 1) ||
    203202          (veloval < 1)) {
    204 + #else /* MATLAB */
    205 +     if ((napar < 1+(vertnum+1)) ||
    206 +         ((veloval=(long)archpar[1+(vertnum+1)]) < 1)) {
    207 + #endif /* MATLAB */
     203- #else /* MATLAB */
     204-     if ((napar < 1+(vertnum+1)) ||
     205-         ((veloval=(long)archpar[1+(vertnum+1)]) < 1)) {
     206- #endif /* MATLAB */
    208207        errorPrint ("archCmpltwArchLoad: bad input (2)");
    209208        return     (1);
    210209      }
    211 diff -rc src/src/libscotch/arch_cmpltw.h new4/src/libscotch/arch_cmpltw.h
    212 *** src/src/libscotch/arch_cmpltw.h     2008-05-22 06:44:41.000000000 -0700
    213 --- new4/src/libscotch/arch_cmpltw.h    2010-05-03 15:37:55.133089872 -0700
    214 ***************
    215 *** 86,92 ****
    216 --- 86,96 ----
     210--- 230,237 ----
     211diff -rc src/src/libscotch/arch_cmpltw.h old/src/libscotch/arch_cmpltw.h
     212*** src/src/libscotch/arch_cmpltw.h     2010-07-19 10:53:22.899731789 -0700
     213--- old/src/libscotch/arch_cmpltw.h     2008-05-22 06:44:41.000000000 -0700
     214***************
     215*** 86,96 ****
    217216  #endif
    218217 
    219218  int                         archCmpltwArchBuild (ArchCmpltw * restrict const archptr, const Gnum, const Gnum * restrict const);
    220 + #ifndef MATLAB
     219- #ifndef MATLAB
    221220  int                         archCmpltwArchLoad  (ArchCmpltw * restrict const, FILE * restrict const);
    222 + #else /* MATLAB */
    223 + int                         archCmpltwArchLoad  (ArchCmpltw * restrict const, FILE * restrict const, const Anum, const Anum *);
    224 + #endif /* MATLAB */
     221- #else /* MATLAB */
     222- int                         archCmpltwArchLoad  (ArchCmpltw * restrict const, FILE * restrict const, const Anum, const Anum *);
     223- #endif /* MATLAB */
    225224  int                         archCmpltwArchSave  (const ArchCmpltw * const, FILE * restrict const);
    226225  int                         archCmpltwArchFree  (ArchCmpltw * restrict const);
    227226  ArchDomNum                  archCmpltwDomNum    (const ArchCmpltw * const, const ArchCmpltwDom * const);
    228 diff -rc src/src/libscotch/arch_deco.c new4/src/libscotch/arch_deco.c
    229 *** src/src/libscotch/arch_deco.c       2008-09-28 06:35:27.000000000 -0700
    230 --- new4/src/libscotch/arch_deco.c      2010-05-03 15:37:55.180089911 -0700
    231 ***************
    232 *** 211,217 ****
    233   int
    234   archDecoArchLoad (
    235   ArchDeco * restrict const   archptr,
    236 ! FILE * restrict const       stream)
    237   {
    238     INT                         decotype;           /* Type of decomposition                            */
    239     INT                         termdomnbr;         /* Number of terminal domains (ie processors)       */
    240 --- 211,223 ----
     227--- 86,92 ----
     228diff -rc src/src/libscotch/arch_deco.c old/src/libscotch/arch_deco.c
     229*** src/src/libscotch/arch_deco.c       2010-07-19 10:53:22.902731808 -0700
     230--- old/src/libscotch/arch_deco.c       2008-09-28 06:35:27.000000000 -0700
     231***************
     232*** 211,223 ****
    241233  int
    242234  archDecoArchLoad (
     
    252244    INT                         decotype;           /* Type of decomposition                            */
    253245    INT                         termdomnbr;         /* Number of terminal domains (ie processors)       */
    254 ***************
    255 *** 220,225 ****
    256 --- 226,237 ----
     246--- 211,217 ----
     247  int
     248  archDecoArchLoad (
     249  ArchDeco * restrict const   archptr,
     250! FILE * restrict const       stream)
     251  {
     252    INT                         decotype;           /* Type of decomposition                            */
     253    INT                         termdomnbr;         /* Number of terminal domains (ie processors)       */
     254***************
     255*** 226,237 ****
    257256    Anum * restrict             termdisttab;        /* Table of terminal-to-terminal distances          */
    258257    INT                         i, j;
    259258 
    260 + #ifdef MATLAB
    261 +   printf("archDecoArchLoad - napar=%d,archpar=%p\n",napar,archpar);
    262 +   errorPrint ("archDecoArchLoad - not yet converted to matlab matrices");
    263 +   return     (1);
    264 + #endif /* MATLAB */
    265 +
     259- #ifdef MATLAB
     260-   printf("archDecoArchLoad - napar=%d,archpar=%p\n",napar,archpar);
     261-   errorPrint ("archDecoArchLoad - not yet converted to matlab matrices");
     262-   return     (1);
     263- #endif /* MATLAB */
     264-
    266265  #ifdef SCOTCH_DEBUG_ARCH1
    267266    if ((sizeof (ArchDeco)    > sizeof (ArchDummy)) ||
    268267        (sizeof (ArchDecoDom) > sizeof (ArchDomDummy))) {
    269 diff -rc src/src/libscotch/arch_deco.h new4/src/libscotch/arch_deco.h
    270 *** src/src/libscotch/arch_deco.h       2008-09-27 07:49:46.000000000 -0700
    271 --- new4/src/libscotch/arch_deco.h      2010-05-03 15:37:55.187089917 -0700
    272 ***************
    273 *** 113,119 ****
    274 --- 113,123 ----
     268--- 220,225 ----
     269diff -rc src/src/libscotch/arch_deco.h old/src/libscotch/arch_deco.h
     270*** src/src/libscotch/arch_deco.h       2010-07-19 10:53:22.904731821 -0700
     271--- old/src/libscotch/arch_deco.h       2008-09-27 07:49:46.000000000 -0700
     272***************
     273*** 113,123 ****
    275274  #endif
    276275 
    277276  int                         archDecoArchBuild   (ArchDeco * const, const Anum, const Anum, const ArchDecoTermVert * const, const Anum  * const);
    278 + #ifndef MATLAB
     277- #ifndef MATLAB
    279278  int                         archDecoArchLoad    (ArchDeco * const, FILE * restrict const);
    280 + #else /* MATLAB */
    281 + int                         archDecoArchLoad    (ArchDeco * const, FILE * restrict const, const Anum, const Anum *);
    282 + #endif /* MATLAB */
     279- #else /* MATLAB */
     280- int                         archDecoArchLoad    (ArchDeco * const, FILE * restrict const, const Anum, const Anum *);
     281- #endif /* MATLAB */
    283282  int                         archDecoArchSave    (const ArchDeco * const, FILE * restrict const);
    284283  int                         archDecoArchFree    (ArchDeco * const);
    285284  Anum                        archDecoArchSize    (ArchDeco * const, const Anum);
    286 diff -rc src/src/libscotch/arch.h new4/src/libscotch/arch.h
    287 *** src/src/libscotch/arch.h    2009-04-28 08:11:27.000000000 -0700
    288 --- new4/src/libscotch/arch.h   2010-05-03 15:37:55.194089922 -0700
    289 ***************
    290 *** 175,181 ****
    291 --- 175,185 ----
     285--- 113,119 ----
     286diff -rc src/src/libscotch/arch.h old/src/libscotch/arch.h
     287*** src/src/libscotch/arch.h    2010-07-19 10:53:22.907731841 -0700
     288--- old/src/libscotch/arch.h    2009-04-28 08:11:27.000000000 -0700
     289***************
     290*** 175,185 ****
    292291  int                         archInit            (Arch * restrict const);
    293292  int                         archExit            (Arch * restrict const);
    294293  int                         archFree            (Arch * restrict const);
    295 + #ifndef MATLAB
     294- #ifndef MATLAB
    296295  int                         archLoad            (Arch * restrict const, FILE * const);
    297 + #else /* MATLAB */
    298 + int                         archLoad            (Arch * restrict const, FILE * const, const char *, const Anum, const Anum *);
    299 + #endif /* MATLAB */
     296- #else /* MATLAB */
     297- int                         archLoad            (Arch * restrict const, FILE * const, const char *, const Anum, const Anum *);
     298- #endif /* MATLAB */
    300299  int                         archSave            (const Arch * const, FILE * const);
    301300  char *                      archName            (const Arch * const);
    302301  const ArchClass *           archClass           (const char * const);
    303 diff -rc src/src/libscotch/arch_hcub.c new4/src/libscotch/arch_hcub.c
    304 *** src/src/libscotch/arch_hcub.c       2008-05-22 06:44:41.000000000 -0700
    305 --- new4/src/libscotch/arch_hcub.c      2010-05-03 15:37:55.201089928 -0700
    306 ***************
    307 *** 88,95 ****
    308   int
    309   archHcubArchLoad (
    310   ArchHcub * restrict const   archptr,
    311 ! FILE * restrict const       stream)
    312 ! {
    313   #ifdef SCOTCH_DEBUG_ARCH1
    314     if ((sizeof (ArchHcub)    > sizeof (ArchDummy)) ||
    315         (sizeof (ArchHcubDom) > sizeof (ArchDomDummy))) {
    316 --- 88,105 ----
     302--- 175,181 ----
     303diff -rc src/src/libscotch/arch_hcub.c old/src/libscotch/arch_hcub.c
     304*** src/src/libscotch/arch_hcub.c       2010-07-19 10:53:22.910731860 -0700
     305--- old/src/libscotch/arch_hcub.c       2008-05-22 06:44:41.000000000 -0700
     306***************
     307*** 88,105 ****
    317308  int
    318309  archHcubArchLoad (
     
    333324    if ((sizeof (ArchHcub)    > sizeof (ArchDummy)) ||
    334325        (sizeof (ArchHcubDom) > sizeof (ArchDomDummy))) {
    335 ***************
    336 *** 98,105 ****
    337 --- 108,120 ----
     326--- 88,95 ----
     327  int
     328  archHcubArchLoad (
     329  ArchHcub * restrict const   archptr,
     330! FILE * restrict const       stream)
     331! {
     332  #ifdef SCOTCH_DEBUG_ARCH1
     333    if ((sizeof (ArchHcub)    > sizeof (ArchDummy)) ||
     334        (sizeof (ArchHcubDom) > sizeof (ArchDomDummy))) {
     335***************
     336*** 108,120 ****
    338337    }
    339338  #endif /* SCOTCH_DEBUG_ARCH1 */
    340339 
    341 + #ifndef MATLAB
     340- #ifndef MATLAB
    342341    if ((intLoad (stream, &archptr->dimmax) != 1) ||
    343342        (archptr->dimmax < 1)                     ||
    344 + #else /* MATLAB */
    345 +   if ((napar < 1)                        ||
    346 +       ((archptr->dimmax=archpar[0]) < 1) ||
    347 + #endif /* MATLAB */
     343- #else /* MATLAB */
     344-   if ((napar < 1)                        ||
     345-       ((archptr->dimmax=archpar[0]) < 1) ||
     346- #endif /* MATLAB */
    348347        (archptr->dimmax > (sizeof (archptr->dimmax) << 3))) {
    349348      errorPrint ("archHcubArchLoad: bad input");
    350349      return     (1);
    351 diff -rc src/src/libscotch/arch_hcub.h new4/src/libscotch/arch_hcub.h
    352 *** src/src/libscotch/arch_hcub.h       2008-05-22 06:44:41.000000000 -0700
    353 --- new4/src/libscotch/arch_hcub.h      2010-05-03 15:37:55.208089934 -0700
    354 ***************
    355 *** 85,91 ****
    356 --- 85,95 ----
     350--- 98,105 ----
     351diff -rc src/src/libscotch/arch_hcub.h old/src/libscotch/arch_hcub.h
     352*** src/src/libscotch/arch_hcub.h       2010-07-19 10:53:22.912731873 -0700
     353--- old/src/libscotch/arch_hcub.h       2008-05-22 06:44:41.000000000 -0700
     354***************
     355*** 85,95 ****
    357356  #define static
    358357  #endif
    359358 
    360 + #ifndef MATLAB
     359- #ifndef MATLAB
    361360  int                         archHcubArchLoad    (ArchHcub * restrict const, FILE * restrict const);
    362 + #else /* MATLAB */
    363 + int                         archHcubArchLoad    (ArchHcub * restrict const, FILE * restrict const, const Anum, const Anum *);
    364 + #endif /* MATLAB */
     361- #else /* MATLAB */
     362- int                         archHcubArchLoad    (ArchHcub * restrict const, FILE * restrict const, const Anum, const Anum *);
     363- #endif /* MATLAB */
    365364  int                         archHcubArchSave    (const ArchHcub * const, FILE * restrict const);
    366365  #define archHcubArchFree            NULL
    367366  ArchDomNum                  archHcubDomNum      (const ArchHcub * const, const ArchHcubDom * const);
    368 diff -rc src/src/libscotch/arch_mesh.c new4/src/libscotch/arch_mesh.c
    369 *** src/src/libscotch/arch_mesh.c       2008-05-22 06:44:41.000000000 -0700
    370 --- new4/src/libscotch/arch_mesh.c      2010-05-03 15:37:55.215089940 -0700
    371 ***************
    372 *** 96,103 ****
    373   int
    374   archMesh2ArchLoad (
    375   ArchMesh2 * restrict const  archptr,
    376 ! FILE * restrict const       stream)
    377 ! {
    378   #ifdef SCOTCH_DEBUG_ARCH1
    379     if ((sizeof (ArchMesh2)    > sizeof (ArchDummy)) ||
    380         (sizeof (ArchMesh2Dom) > sizeof (ArchDomDummy))) {
    381 --- 96,113 ----
     367--- 85,91 ----
     368diff -rc src/src/libscotch/arch_mesh.c old/src/libscotch/arch_mesh.c
     369*** src/src/libscotch/arch_mesh.c       2010-07-19 10:53:22.915731892 -0700
     370--- old/src/libscotch/arch_mesh.c       2008-05-22 06:44:41.000000000 -0700
     371***************
     372*** 96,113 ****
    382373  int
    383374  archMesh2ArchLoad (
     
    398389    if ((sizeof (ArchMesh2)    > sizeof (ArchDummy)) ||
    399390        (sizeof (ArchMesh2Dom) > sizeof (ArchDomDummy))) {
    400 ***************
    401 *** 106,114 ****
    402 --- 116,130 ----
     391--- 96,103 ----
     392  int
     393  archMesh2ArchLoad (
     394  ArchMesh2 * restrict const  archptr,
     395! FILE * restrict const       stream)
     396! {
     397  #ifdef SCOTCH_DEBUG_ARCH1
     398    if ((sizeof (ArchMesh2)    > sizeof (ArchDummy)) ||
     399        (sizeof (ArchMesh2Dom) > sizeof (ArchDomDummy))) {
     400***************
     401*** 116,130 ****
    403402    }
    404403  #endif /* SCOTCH_DEBUG_ARCH1 */
    405404 
    406 + #ifndef MATLAB
     405- #ifndef MATLAB
    407406    if ((intLoad (stream, &archptr->c[0]) != 1) ||
    408407        (intLoad (stream, &archptr->c[1]) != 1) ||
    409408        (archptr->c[0] < 1) || (archptr->c[1] < 1)) {
    410 + #else /* MATLAB */
    411 +   if ((napar < 2)                      ||
    412 +       ((archptr->c[0]=archpar[0]) < 1) ||
    413 +       ((archptr->c[1]=archpar[1]) < 1)) {
    414 + #endif /* MATLAB */
     409- #else /* MATLAB */
     410-   if ((napar < 2)                      ||
     411-       ((archptr->c[0]=archpar[0]) < 1) ||
     412-       ((archptr->c[1]=archpar[1]) < 1)) {
     413- #endif /* MATLAB */
    415414      errorPrint ("archMesh2ArchLoad: bad input");
    416415      return     (1);
    417416    }
    418 ***************
    419 *** 421,428 ****
    420   int
    421   archMesh3ArchLoad (
    422   ArchMesh3 * restrict const  archptr,
    423 ! FILE * restrict const       stream)
    424 ! {
    425   #ifdef SCOTCH_DEBUG_ARCH1
    426     if ((sizeof (ArchMesh3)    > sizeof (ArchDummy)) ||
    427         (sizeof (ArchMesh3Dom) > sizeof (ArchDomDummy))) {
    428 --- 437,454 ----
     417--- 106,114 ----
     418***************
     419*** 437,454 ****
    429420  int
    430421  archMesh3ArchLoad (
     
    445436    if ((sizeof (ArchMesh3)    > sizeof (ArchDummy)) ||
    446437        (sizeof (ArchMesh3Dom) > sizeof (ArchDomDummy))) {
    447 ***************
    448 *** 431,440 ****
    449 --- 457,473 ----
     438--- 421,428 ----
     439  int
     440  archMesh3ArchLoad (
     441  ArchMesh3 * restrict const  archptr,
     442! FILE * restrict const       stream)
     443! {
     444  #ifdef SCOTCH_DEBUG_ARCH1
     445    if ((sizeof (ArchMesh3)    > sizeof (ArchDummy)) ||
     446        (sizeof (ArchMesh3Dom) > sizeof (ArchDomDummy))) {
     447***************
     448*** 457,473 ****
    450449    }
    451450  #endif /* SCOTCH_DEBUG_ARCH1 */
    452451 
    453 + #ifndef MATLAB
     452- #ifndef MATLAB
    454453    if ((intLoad (stream, &archptr->c[0]) != 1) ||
    455454        (intLoad (stream, &archptr->c[1]) != 1) ||
    456455        (intLoad (stream, &archptr->c[2]) != 1) ||
    457456        (archptr->c[0] < 1) || (archptr->c[1] < 1) || (archptr->c[2] < 1)) {
    458 + #else /* MATLAB */
    459 +   if ((napar < 3)                      ||
    460 +       ((archptr->c[0]=archpar[0]) < 1) ||
    461 +       ((archptr->c[1]=archpar[1]) < 1) ||
    462 +       ((archptr->c[2]=archpar[2]) < 1)) {
    463 + #endif /* MATLAB */
     457- #else /* MATLAB */
     458-   if ((napar < 3)                      ||
     459-       ((archptr->c[0]=archpar[0]) < 1) ||
     460-       ((archptr->c[1]=archpar[1]) < 1) ||
     461-       ((archptr->c[2]=archpar[2]) < 1)) {
     462- #endif /* MATLAB */
    464463      errorPrint ("archMesh3ArchLoad: bad input");
    465464      return     (1);
    466465    }
    467 diff -rc src/src/libscotch/arch_mesh.h new4/src/libscotch/arch_mesh.h
    468 *** src/src/libscotch/arch_mesh.h       2008-05-22 06:44:41.000000000 -0700
    469 --- new4/src/libscotch/arch_mesh.h      2010-05-03 15:37:55.221089945 -0700
    470 ***************
    471 *** 96,102 ****
    472 --- 96,106 ----
     466--- 431,440 ----
     467diff -rc src/src/libscotch/arch_mesh.h old/src/libscotch/arch_mesh.h
     468*** src/src/libscotch/arch_mesh.h       2010-07-19 10:53:22.918731911 -0700
     469--- old/src/libscotch/arch_mesh.h       2008-05-22 06:44:41.000000000 -0700
     470***************
     471*** 96,106 ****
    473472  #define static
    474473  #endif
    475474 
    476 + #ifndef MATLAB
     475- #ifndef MATLAB
    477476  int                         archMesh2ArchLoad   (ArchMesh2 * restrict const, FILE * restrict const);
    478 + #else /* MATLAB */
    479 + int                         archMesh2ArchLoad   (ArchMesh2 * restrict const, FILE * restrict const, const Anum, const Anum *);
    480 + #endif /* MATLAB */
     477- #else /* MATLAB */
     478- int                         archMesh2ArchLoad   (ArchMesh2 * restrict const, FILE * restrict const, const Anum, const Anum *);
     479- #endif /* MATLAB */
    481480  int                         archMesh2ArchSave   (const ArchMesh2 * const, FILE * restrict const);
    482481  #define archMesh2ArchFree           NULL
    483482  ArchDomNum                  archMesh2DomNum     (const ArchMesh2 * const, const ArchMesh2Dom * const);
    484 ***************
    485 *** 114,120 ****
    486 --- 118,128 ----
     483--- 96,102 ----
     484***************
     485*** 118,128 ****
    487486  int                         archMesh2DomMpiType (const ArchMesh2 * const, MPI_Datatype * const);
    488487  #endif /* SCOTCH_PTSCOTCH */
    489488 
    490 + #ifndef MATLAB
     489- #ifndef MATLAB
    491490  int                         archMesh3ArchLoad   (ArchMesh3 * restrict const, FILE * restrict const);
    492 + #else /* MATLAB */
    493 + int                         archMesh3ArchLoad   (ArchMesh3 * restrict const, FILE * restrict const, const Anum, const Anum *);
    494 + #endif /* MATLAB */
     491- #else /* MATLAB */
     492- int                         archMesh3ArchLoad   (ArchMesh3 * restrict const, FILE * restrict const, const Anum, const Anum *);
     493- #endif /* MATLAB */
    495494  int                         archMesh3ArchSave   (const ArchMesh3 * const, FILE * restrict const);
    496495  #define archMesh3ArchFree           NULL
    497496  ArchDomNum                  archMesh3DomNum     (const ArchMesh3 * const, const ArchMesh3Dom * const);
    498 diff -rc src/src/libscotch/arch_tleaf.c new4/src/libscotch/arch_tleaf.c
    499 *** src/src/libscotch/arch_tleaf.c      2008-05-22 06:44:41.000000000 -0700
    500 --- new4/src/libscotch/arch_tleaf.c     2010-05-03 15:37:55.228089950 -0700
    501 ***************
    502 *** 92,99 ****
    503   int
    504   archTleafArchLoad (
    505   ArchTleaf * restrict const  archptr,
    506 ! FILE * restrict const       stream)
    507 ! {
    508   #ifdef SCOTCH_DEBUG_ARCH1
    509     if ((sizeof (ArchTleaf)    > sizeof (ArchDummy)) ||
    510         (sizeof (ArchTleafDom) > sizeof (ArchDomDummy))) {
    511 --- 92,109 ----
     497--- 114,120 ----
     498diff -rc src/src/libscotch/arch_tleaf.c old/src/libscotch/arch_tleaf.c
     499*** src/src/libscotch/arch_tleaf.c      2010-07-19 10:53:22.920731924 -0700
     500--- old/src/libscotch/arch_tleaf.c      2008-05-22 06:44:41.000000000 -0700
     501***************
     502*** 92,109 ****
    512503  int
    513504  archTleafArchLoad (
     
    528519    if ((sizeof (ArchTleaf)    > sizeof (ArchDummy)) ||
    529520        (sizeof (ArchTleafDom) > sizeof (ArchDomDummy))) {
    530 ***************
    531 *** 102,107 ****
    532 --- 112,118 ----
     521--- 92,99 ----
     522  int
     523  archTleafArchLoad (
     524  ArchTleaf * restrict const  archptr,
     525! FILE * restrict const       stream)
     526! {
     527  #ifdef SCOTCH_DEBUG_ARCH1
     528    if ((sizeof (ArchTleaf)    > sizeof (ArchDummy)) ||
     529        (sizeof (ArchTleafDom) > sizeof (ArchDomDummy))) {
     530***************
     531*** 112,118 ****
    533532    }
    534533  #endif /* SCOTCH_DEBUG_ARCH1 */
    535534 
    536 + #ifndef MATLAB
     535- #ifndef MATLAB
    537536    if ((intLoad (stream, &archptr->leafdep) != 1) ||
    538537        (intLoad (stream, &archptr->clusdep) != 1) ||
    539538        (intLoad (stream, &archptr->linkval) != 1) ||
    540 ***************
    541 *** 109,114 ****
    542 --- 120,132 ----
     539--- 102,107 ----
     540***************
     541*** 120,132 ****
    543542        (archptr->clusdep < 0)                     ||
    544543        (archptr->clusdep > archptr->leafdep)      ||
    545544        (archptr->linkval < 1)) {
    546 + #else /* MATLAB */
    547 +   if ((napar < 3)                            ||
    548 +       ((archptr->leafdep=archpar[0]) < 1)    ||
    549 +       ((archptr->clusdep=archpar[1]) < 0)    ||
    550 +       ( archptr->clusdep > archptr->leafdep) ||
    551 +       ((archptr->linkval=archpar[2]) < 1)) {
    552 + #endif /* MATLAB */
     545- #else /* MATLAB */
     546-   if ((napar < 3)                            ||
     547-       ((archptr->leafdep=archpar[0]) < 1)    ||
     548-       ((archptr->clusdep=archpar[1]) < 0)    ||
     549-       ( archptr->clusdep > archptr->leafdep) ||
     550-       ((archptr->linkval=archpar[2]) < 1)) {
     551- #endif /* MATLAB */
    553552      errorPrint ("archTleafArchLoad: bad input");
    554553      return     (1);
    555554    }
    556 diff -rc src/src/libscotch/arch_tleaf.h new4/src/libscotch/arch_tleaf.h
    557 *** src/src/libscotch/arch_tleaf.h      2008-05-22 06:44:41.000000000 -0700
    558 --- new4/src/libscotch/arch_tleaf.h     2010-05-03 15:37:55.235089956 -0700
    559 ***************
    560 *** 89,95 ****
    561 --- 89,99 ----
     555--- 109,114 ----
     556diff -rc src/src/libscotch/arch_tleaf.h old/src/libscotch/arch_tleaf.h
     557*** src/src/libscotch/arch_tleaf.h      2010-07-19 10:53:22.923731944 -0700
     558--- old/src/libscotch/arch_tleaf.h      2008-05-22 06:44:41.000000000 -0700
     559***************
     560*** 89,99 ****
    562561  #define static
    563562  #endif
    564563 
    565 + #ifndef MATLAB
     564- #ifndef MATLAB
    566565  int                         archTleafArchLoad   (ArchTleaf * restrict const, FILE * restrict const);
    567 + #else /* MATLAB */
    568 + int                         archTleafArchLoad   (ArchTleaf * restrict const, FILE * restrict const, const Anum, const Anum *);
    569 + #endif /* MATLAB */
     566- #else /* MATLAB */
     567- int                         archTleafArchLoad   (ArchTleaf * restrict const, FILE * restrict const, const Anum, const Anum *);
     568- #endif /* MATLAB */
    570569  int                         archTleafArchSave   (const ArchTleaf * const, FILE * restrict const);
    571570  #define archTleafArchFree           NULL
    572571  ArchDomNum                  archTleafDomNum     (const ArchTleaf * const, const ArchTleafDom * const);
    573 diff -rc src/src/libscotch/arch_torus.c new4/src/libscotch/arch_torus.c
    574 *** src/src/libscotch/arch_torus.c      2008-05-22 06:44:41.000000000 -0700
    575 --- new4/src/libscotch/arch_torus.c     2010-05-03 15:37:55.242089962 -0700
    576 ***************
    577 *** 90,97 ****
    578   int
    579   archTorus2ArchLoad (
    580   ArchTorus2 * restrict const archptr,
    581 ! FILE * restrict const       stream)
    582 ! {
    583   #ifdef SCOTCH_DEBUG_ARCH1
    584     if ((sizeof (ArchTorus2)    > sizeof (ArchDummy)) ||
    585         (sizeof (ArchTorus2Dom) > sizeof (ArchDomDummy))) {
    586 --- 90,107 ----
     572--- 89,95 ----
     573diff -rc src/src/libscotch/arch_torus.c old/src/libscotch/arch_torus.c
     574*** src/src/libscotch/arch_torus.c      2010-07-19 10:53:22.926731963 -0700
     575--- old/src/libscotch/arch_torus.c      2008-05-22 06:44:41.000000000 -0700
     576***************
     577*** 90,107 ****
    587578  int
    588579  archTorus2ArchLoad (
     
    603594    if ((sizeof (ArchTorus2)    > sizeof (ArchDummy)) ||
    604595        (sizeof (ArchTorus2Dom) > sizeof (ArchDomDummy))) {
    605 ***************
    606 *** 100,108 ****
    607 --- 110,124 ----
     596--- 90,97 ----
     597  int
     598  archTorus2ArchLoad (
     599  ArchTorus2 * restrict const archptr,
     600! FILE * restrict const       stream)
     601! {
     602  #ifdef SCOTCH_DEBUG_ARCH1
     603    if ((sizeof (ArchTorus2)    > sizeof (ArchDummy)) ||
     604        (sizeof (ArchTorus2Dom) > sizeof (ArchDomDummy))) {
     605***************
     606*** 110,124 ****
    608607    }
    609608  #endif /* SCOTCH_DEBUG_ARCH1 */
    610609 
    611 + #ifndef MATLAB
     610- #ifndef MATLAB
    612611    if ((intLoad (stream, &archptr->c[0]) != 1) ||
    613612        (intLoad (stream, &archptr->c[1]) != 1) ||
    614613        (archptr->c[0] < 1) || (archptr->c[1] < 1)) {
    615 + #else /* MATLAB */
    616 +   if ((napar < 2)                      ||
    617 +       ((archptr->c[0]=archpar[0]) < 1) ||
    618 +       ((archptr->c[1]=archpar[1]) < 1)) {
    619 + #endif /* MATLAB */
     614- #else /* MATLAB */
     615-   if ((napar < 2)                      ||
     616-       ((archptr->c[0]=archpar[0]) < 1) ||
     617-       ((archptr->c[1]=archpar[1]) < 1)) {
     618- #endif /* MATLAB */
    620619      errorPrint ("archTorus2ArchLoad: bad input");
    621620      return     (1);
    622621    }
    623 ***************
    624 *** 363,370 ****
    625   int
    626   archTorus3ArchLoad (
    627   ArchTorus3 * restrict const archptr,
    628 ! FILE * restrict const       stream)
    629 ! {
    630   #ifdef SCOTCH_DEBUG_ARCH1
    631     if ((sizeof (ArchTorus3)    > sizeof (ArchDummy)) ||
    632         (sizeof (ArchTorus3Dom) > sizeof (ArchDomDummy))) {
    633 --- 379,396 ----
     622--- 100,108 ----
     623***************
     624*** 379,396 ****
    634625  int
    635626  archTorus3ArchLoad (
     
    650641    if ((sizeof (ArchTorus3)    > sizeof (ArchDummy)) ||
    651642        (sizeof (ArchTorus3Dom) > sizeof (ArchDomDummy))) {
    652 ***************
    653 *** 373,382 ****
    654 --- 399,415 ----
     643--- 363,370 ----
     644  int
     645  archTorus3ArchLoad (
     646  ArchTorus3 * restrict const archptr,
     647! FILE * restrict const       stream)
     648! {
     649  #ifdef SCOTCH_DEBUG_ARCH1
     650    if ((sizeof (ArchTorus3)    > sizeof (ArchDummy)) ||
     651        (sizeof (ArchTorus3Dom) > sizeof (ArchDomDummy))) {
     652***************
     653*** 399,415 ****
    655654    }
    656655  #endif /* SCOTCH_DEBUG_ARCH1 */
    657656 
    658 + #ifndef MATLAB
     657- #ifndef MATLAB
    659658    if ((intLoad (stream, &archptr->c[0]) != 1) ||
    660659        (intLoad (stream, &archptr->c[1]) != 1) ||
    661660        (intLoad (stream, &archptr->c[2]) != 1) ||
    662661        (archptr->c[0] < 1) || (archptr->c[1] < 1) || (archptr->c[2] < 1)) {
    663 + #else /* MATLAB */
    664 +   if ((napar < 3)                      ||
    665 +       ((archptr->c[0]=archpar[0]) < 1) ||
    666 +       ((archptr->c[1]=archpar[1]) < 1) ||
    667 +       ((archptr->c[2]=archpar[2]) < 1)) {
    668 + #endif /* MATLAB */
     662- #else /* MATLAB */
     663-   if ((napar < 3)                      ||
     664-       ((archptr->c[0]=archpar[0]) < 1) ||
     665-       ((archptr->c[1]=archpar[1]) < 1) ||
     666-       ((archptr->c[2]=archpar[2]) < 1)) {
     667- #endif /* MATLAB */
    669668      errorPrint ("archTorus3ArchLoad: bad input");
    670669      return     (1);
    671670    }
    672 diff -rc src/src/libscotch/arch_torus.h new4/src/libscotch/arch_torus.h
    673 *** src/src/libscotch/arch_torus.h      2008-05-22 06:44:41.000000000 -0700
    674 --- new4/src/libscotch/arch_torus.h     2010-05-03 15:37:55.248089967 -0700
    675 ***************
    676 *** 96,102 ****
    677 --- 96,106 ----
     671--- 373,382 ----
     672diff -rc src/src/libscotch/arch_torus.h old/src/libscotch/arch_torus.h
     673*** src/src/libscotch/arch_torus.h      2010-07-19 10:53:22.928731976 -0700
     674--- old/src/libscotch/arch_torus.h      2008-05-22 06:44:41.000000000 -0700
     675***************
     676*** 96,106 ****
    678677  #define static
    679678  #endif
    680679 
    681 + #ifndef MATLAB
     680- #ifndef MATLAB
    682681  int                         archTorus2ArchLoad  (ArchTorus2 * restrict const, FILE * restrict const);
    683 + #else /* MATLAB */
    684 + int                         archTorus2ArchLoad  (ArchTorus2 * restrict const, FILE * restrict const, const Anum, const Anum *);
    685 + #endif /* MATLAB */
     682- #else /* MATLAB */
     683- int                         archTorus2ArchLoad  (ArchTorus2 * restrict const, FILE * restrict const, const Anum, const Anum *);
     684- #endif /* MATLAB */
    686685  int                         archTorus2ArchSave  (const ArchTorus2 * const, FILE * restrict const);
    687686  #define archTorus2ArchFree          NULL
    688687  ArchDomNum                  archTorus2DomNum    (const ArchTorus2 * const, const ArchTorus2Dom * const);
    689 ***************
    690 *** 114,120 ****
    691 --- 118,128 ----
     688--- 96,102 ----
     689***************
     690*** 118,128 ****
    692691  int                         archTorus2DomMpiType (const ArchTorus2 * const, MPI_Datatype * const);
    693692  #endif /* SCOTCH_PTSCOTCH */
    694693 
    695 + #ifndef MATLAB
     694- #ifndef MATLAB
    696695  int                         archTorus3ArchLoad  (ArchTorus3 * restrict const, FILE * restrict const);
    697 + #else /* MATLAB */
    698 + int                         archTorus3ArchLoad  (ArchTorus3 * restrict const, FILE * restrict const, const Anum, const Anum *);
    699 + #endif /* MATLAB */
     696- #else /* MATLAB */
     697- int                         archTorus3ArchLoad  (ArchTorus3 * restrict const, FILE * restrict const, const Anum, const Anum *);
     698- #endif /* MATLAB */
    700699  int                         archTorus3ArchSave  (const ArchTorus3 * const, FILE * restrict const);
    701700  #define archTorus3ArchFree          NULL
    702701  ArchDomNum                  archTorus3DomNum    (const ArchTorus3 * const, const ArchTorus3Dom * const);
    703 diff -rc src/src/libscotch/common.c new4/src/libscotch/common.c
    704 *** src/src/libscotch/common.c  2008-05-22 06:44:41.000000000 -0700
    705 --- new4/src/libscotch/common.c 2010-05-03 15:37:55.254089972 -0700
    706 ***************
    707 *** 100,106 ****
    708 --- 100,112 ----
     702--- 114,120 ----
     703diff -rc src/src/libscotch/common.c old/src/libscotch/common.c
     704*** src/src/libscotch/common.c  2010-07-19 10:53:22.931731995 -0700
     705--- old/src/libscotch/common.c  2008-05-22 06:44:41.000000000 -0700
     706***************
     707*** 100,112 ****
    709708  {
    710709    const char **       cptr;
    711710 
    712 + #ifndef MATLAB
     711- #ifndef MATLAB
    713712    fprintf (stream, "Usage is:\n");
    714713    for (cptr = data; *cptr != NULL; cptr ++)
    715714      fprintf (stream, "  %s\n", *cptr);
    716 + #else /* MATLAB */
    717 +   mexPrintf ("Usage is:\n");
    718 +   for (cptr = data; *cptr != NULL; cptr ++)
    719 +     mexPrintf ("  %s\n", *cptr);
    720 + #endif /* MATLAB */
     715- #else /* MATLAB */
     716-   mexPrintf ("Usage is:\n");
     717-   for (cptr = data; *cptr != NULL; cptr ++)
     718-     mexPrintf ("  %s\n", *cptr);
     719- #endif /* MATLAB */
    721720  }
    722 diff -rc src/src/libscotch/common.h new4/src/libscotch/common.h
    723 *** src/src/libscotch/common.h  2009-02-06 14:20:55.000000000 -0800
    724 --- new4/src/libscotch/common.h 2010-05-03 15:37:55.261089978 -0700
    725 ***************
    726 *** 66,71 ****
    727 --- 66,72 ----
     721--- 100,106 ----
     722diff -rc src/src/libscotch/common.h old/src/libscotch/common.h
     723*** src/src/libscotch/common.h  2010-07-19 10:53:22.933732008 -0700
     724--- old/src/libscotch/common.h  2009-02-06 14:20:55.000000000 -0800
     725***************
     726*** 66,72 ****
    728727  #include            <stdio.h>
    729728  #include            <stdarg.h>
    730729  #include            <stdlib.h>
    731 + #include            <stdint.h>                    /* added for intptr_t */
     730- #include            <stdint.h>                    /* added for intptr_t */
    732731  #ifdef HAVE_MALLOC_H
    733732  #include            <malloc.h>                    /* Deprecated, but required on some old systems */
    734733  #endif /* HAVE_MALLOC_H */
    735 ***************
    736 *** 88,93 ****
    737 --- 89,108 ----
     734--- 66,71 ----
     735***************
     736*** 89,108 ****
    738737  #include            <pthread.h>
    739738  #endif /* ((defined COMMON_PTHREAD) || (defined SCOTCH_PTHREAD)) */
    740739 
    741 + #ifdef MATLAB
    742 +     #include "mat.h"
    743 +     #include "mex.h"
    744 +     #include "matrix.h"
    745 +
    746 +     #define printf mexPrintf
    747 +     #define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
    748 +     #define malloc mxMalloc
    749 +     #define calloc mxCalloc
    750 +     #define realloc mxRealloc
    751 +     #define free mxFree
    752 +     #define exit(status) mexErrMsgTxt("exit=" #status)
    753 + #endif
    754 +
     740- #ifdef MATLAB
     741-     #include "mat.h"
     742-     #include "mex.h"
     743-     #include "matrix.h"
     744-
     745-     #define printf mexPrintf
     746-     #define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
     747-     #define malloc mxMalloc
     748-     #define calloc mxCalloc
     749-     #define realloc mxRealloc
     750-     #define free mxFree
     751-     #define exit(status) mexErrMsgTxt("exit=" #status)
     752- #endif
     753-
    755754  /*
    756755  **  Working definitions.
    757756  */
    758 ***************
    759 *** 209,214 ****
    760 --- 224,230 ----
     757--- 88,93 ----
     758***************
     759*** 224,230 ****
    761760  int                         intSave             (FILE * const, const INT);
    762761  void                        intAscn             (INT * const, const INT, const INT);
    763762  void                        intPerm             (INT * const, const INT);
    764 + void                        intRandResetStatic  (void);
     763- void                        intRandResetStatic  (void);
    765764  void                        intRandReset        (void);
    766765  void                        intRandInit         (void);
    767766  INT                         intRandVal          (INT);
    768 diff -rc src/src/libscotch/common_integer.c new4/src/libscotch/common_integer.c
    769 *** src/src/libscotch/common_integer.c  2009-01-21 01:32:32.000000000 -0800
    770 --- new4/src/libscotch/common_integer.c 2010-05-03 15:37:55.268089983 -0700
    771 ***************
    772 *** 191,196 ****
    773 --- 191,205 ----
     767--- 209,214 ----
     768diff -rc src/src/libscotch/common_integer.c old/src/libscotch/common_integer.c
     769*** src/src/libscotch/common_integer.c  2010-07-19 10:53:22.936732027 -0700
     770--- old/src/libscotch/common_integer.c  2009-01-21 01:32:32.000000000 -0800
     771***************
     772*** 191,205 ****
    774773  static volatile int intrandflag = 0;              /*+ Flag set if generator already initialized +*/
    775774  static unsigned int intrandseed = 1;              /*+ Random seed                               +*/
    776775 
    777 + void
    778 + intRandResetStatic (void)
    779 + {
    780 +   printf("intRandResetStatic begin -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
    781 +   intrandflag = 0;              /*+ Flag set if generator already initialized +*/
    782 +   intrandseed = 1;              /*+ Random seed                               +*/
    783 +   printf("intRandResetStatic end   -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
    784 + }
    785 +
     776- void
     777- intRandResetStatic (void)
     778- {
     779-   printf("intRandResetStatic begin -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
     780-   intrandflag = 0;              /*+ Flag set if generator already initialized +*/
     781-   intrandseed = 1;              /*+ Random seed                               +*/
     782-   printf("intRandResetStatic end   -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
     783- }
     784-
    786785  /* This routine initializes the pseudo-random
    787786  ** generator if necessary. In order for multi-sequential
    788787  ** programs to have exactly the same behavior on any
    789 ***************
    790 *** 205,210 ****
    791 --- 214,220 ----
     788--- 191,196 ----
     789***************
     790*** 214,220 ****
    792791  void
    793792  intRandInit (void)
    794793  {
    795 +   printf("intRandInit begin -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
     794-   printf("intRandInit begin -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
    796795    if (intrandflag == 0) {                         /* If generator not yet initialized */
    797796  #if ! ((defined COMMON_DEBUG) || (defined COMMON_RANDOM_FIXED_SEED) || (defined SCOTCH_DETERMINISTIC))
    798797      intrandseed = time (NULL);                    /* Set random seed if needed */
    799 ***************
    800 *** 216,221 ****
    801 --- 226,232 ----
     798--- 205,210 ----
     799***************
     800*** 226,232 ****
    802801  #endif /* COMMON_RANDOM_RAND */
    803802      intrandflag = 1;                              /* Generator has been initialized */
    804803    }
    805 +   printf("intRandInit end   -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
     804-   printf("intRandInit end   -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
    806805  }
    807806 
    808807  /* This routine reinitializes the pseudo-random
    809 ***************
    810 *** 228,233 ****
    811 --- 239,245 ----
     808--- 216,221 ----
     809***************
     810*** 239,245 ****
    812811  void
    813812  intRandReset (void)
    814813  {
    815 +   printf("intRandReset begin -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
     814-   printf("intRandReset begin -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
    816815    if (intrandflag != 0) {                         /* Keep seed computed during first initialization */
    817816  #ifdef COMMON_RANDOM_RAND
    818817      srand (intrandseed);
    819 ***************
    820 *** 237,242 ****
    821 --- 249,255 ----
     818--- 228,233 ----
     819***************
     820*** 249,255 ****
    822821    }
    823822    else
    824823      intRandInit ();
    825 +   printf("intRandReset end   -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
     824-   printf("intRandReset end   -- intrandflag=%d,intrandseed=%d\n",intrandflag,intrandseed);
    826825  }
    827826 
    828827  /*********************/
    829 diff -rc src/src/libscotch/common_memory.c new4/src/libscotch/common_memory.c
    830 *** src/src/libscotch/common_memory.c   2009-01-03 02:16:11.000000000 -0800
    831 --- new4/src/libscotch/common_memory.c  2010-05-03 15:37:55.275089989 -0700
    832 ***************
    833 *** 87,93 ****
    834 --- 87,95 ----
     828--- 237,242 ----
     829diff -rc src/src/libscotch/common_memory.c old/src/libscotch/common_memory.c
     830*** src/src/libscotch/common_memory.c   2010-07-19 10:53:22.939732046 -0700
     831--- old/src/libscotch/common_memory.c   2009-01-03 02:16:11.000000000 -0800
     832***************
     833*** 87,95 ****
    835834    size_t              newadd;
    836835    byte *              newptr;
    837836 
    838 +   printf("memAllocRecord begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     837-   printf("memAllocRecord begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    839838  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    840 +   printf("memAllocRecord begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     839-   printf("memAllocRecord begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    841840    if (muteflag != 0) {                            /* Unsafe code with respect to race conditions but should work as first allocs are sequential */
    842841      muteflag = 0;
    843842      pthread_mutex_init (&mutelocdat, NULL);       /* Initialize local mutex */
    844 ***************
    845 *** 109,116 ****
    846 --- 111,120 ----
     843--- 87,93 ----
     844***************
     845*** 111,120 ****
    847846 
    848847  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    849848    pthread_mutex_unlock (&mutelocdat);             /* Unlock local mutex */
    850 +   printf("memAllocRecord end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     849-   printf("memAllocRecord end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    851850  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    852851 
    853 +   printf("memAllocRecord end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     852-   printf("memAllocRecord end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    854853    return ((void *) newptr);                       /* Return skewed pointer or NULL */
    855854  }
    856855 
    857 ***************
    858 *** 124,133 ****
    859 --- 128,139 ----
     856--- 109,116 ----
     857***************
     858*** 128,139 ****
    860859    size_t              oldsiz;
    861860    size_t              newadd;
    862861 
    863 +   printf("memReallocRecord begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     862-   printf("memReallocRecord begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    864863    tmpptr = ((byte *) oldptr) - COMMON_MEMORY_SKEW;
    865864    oldsiz = *((size_t *) tmpptr);
    866865 
    867866  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    868 +   printf("memReallocRecord begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     867-   printf("memReallocRecord begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    869868    pthread_mutex_lock (&mutelocdat);               /* Lock local mutex */
    870869  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    871870 
    872 ***************
    873 *** 145,152 ****
    874 --- 151,160 ----
     871--- 124,133 ----
     872***************
     873*** 151,160 ****
    875874 
    876875  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    877876    pthread_mutex_unlock (&mutelocdat);             /* Unlock local mutex */
    878 +   printf("memReallocRecord end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     877-   printf("memReallocRecord end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    879878  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    880879 
    881 +   printf("memReallocRecord end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     880-   printf("memReallocRecord end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    882881    return ((void *) newptr);                       /* Return skewed pointer or NULL */
    883882  }
    884883 
    885 ***************
    886 *** 157,166 ****
    887 --- 165,176 ----
     884--- 145,152 ----
     885***************
     886*** 165,176 ****
    888887    byte *              tmpptr;
    889888    size_t              oldsiz;
    890889 
    891 +   printf("memFreeRecord begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     890-   printf("memFreeRecord begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    892891    tmpptr = ((byte *) oldptr) - COMMON_MEMORY_SKEW;
    893892    oldsiz = *((size_t *) tmpptr);
    894893 
    895894  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    896 +   printf("memFreeRecord begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     895-   printf("memFreeRecord begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    897896    pthread_mutex_lock (&mutelocdat);               /* Lock local mutex */
    898897  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    899898 
    900 ***************
    901 *** 169,175 ****
    902 --- 179,187 ----
     899--- 157,166 ----
     900***************
     901*** 179,187 ****
    903902 
    904903  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    905904    pthread_mutex_unlock (&mutelocdat);             /* Unlock local mutex */
    906 +   printf("memFreeRecord end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     905-   printf("memFreeRecord end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    907906  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    908 +   printf("memFreeRecord end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     907-   printf("memFreeRecord end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    909908  }
    910909 
    911910  size_t
    912 ***************
    913 *** 177,183 ****
    914 --- 189,197 ----
     911--- 169,175 ----
     912***************
     913*** 189,197 ****
    915914  {
    916915    size_t              curmax;
    917916 
    918 +   printf("memMax begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     917-   printf("memMax begin -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    919918  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    920 +   printf("memMax begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     919-   printf("memMax begin -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    921920    pthread_mutex_lock (&mutelocdat);               /* Lock local mutex */
    922921  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    923922 
    924 ***************
    925 *** 185,192 ****
    926 --- 199,208 ----
     923--- 177,183 ----
     924***************
     925*** 199,208 ****
    927926 
    928927  #if (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD))
    929928    pthread_mutex_unlock (&mutelocdat);             /* Unlock local mutex */
    930 +   printf("memMax end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
     929-   printf("memMax end   -- muteflag=%d,mutelocdat=%p\n",muteflag,mutelocdat);
    931930  #endif /* (defined (COMMON_PTHREAD) || defined (SCOTCH_PTHREAD)) */
    932931 
    933 +   printf("memMax end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
     932-   printf("memMax end   -- memorysiz=%d,memorymax=%d\n",memorysiz,memorymax);
    934933    return (curmax);
    935934  }
    936935  #endif /* COMMON_MEMORY_TRACE */
    937 diff -rc src/src/libscotch/dummysizes.c new4/src/libscotch/dummysizes.c
    938 *** src/src/libscotch/dummysizes.c      2009-05-09 16:08:02.000000000 -0700
    939 --- new4/src/libscotch/dummysizes.c     2010-05-03 15:37:55.282089995 -0700
    940 ***************
    941 *** 267,271 ****
    942 --- 267,273 ----
     936--- 185,192 ----
     937diff -rc src/src/libscotch/dummysizes.c old/src/libscotch/dummysizes.c
     938*** src/src/libscotch/dummysizes.c      2010-07-19 10:53:22.941732059 -0700
     939--- old/src/libscotch/dummysizes.c      2009-05-09 16:08:02.000000000 -0700
     940***************
     941*** 267,273 ****
    943942    }
    944943  #endif /* SCOTCH_DEBUG_MAIN1 */
    945944 
    946 + #ifndef MATLAB
     945- #ifndef MATLAB
    947946    exit (0);
    948 + #endif /* MATLAB */
     947- #endif /* MATLAB */
    949948  }
    950 diff -rc src/src/libscotch/graph.c new4/src/libscotch/graph.c
    951 *** src/src/libscotch/graph.c   2008-05-22 06:44:42.000000000 -0700
    952 --- new4/src/libscotch/graph.c  2010-05-03 15:37:55.288090000 -0700
    953 ***************
    954 *** 135,141 ****
    955       if ((grafptr->velotax != NULL) &&             /* Free graph tables             */
    956           ((grafptr->flagval & GRAPHVERTGROUP) == 0))
    957         memFree (grafptr->velotax + grafptr->baseval);
    958 !     if (grafptr->vlbltax != NULL)
    959         memFree (grafptr->vlbltax + grafptr->baseval);
    960       if ((grafptr->edlotax != NULL) &&
    961           ((grafptr->flagval & GRAPHEDGEGROUP) == 0))
    962 --- 135,144 ----
     949--- 267,271 ----
     950diff -rc src/src/libscotch/graph.c old/src/libscotch/graph.c
     951*** src/src/libscotch/graph.c   2010-07-19 10:53:22.943732072 -0700
     952--- old/src/libscotch/graph.c   2008-05-22 06:44:42.000000000 -0700
     953***************
     954*** 135,144 ****
    963955      if ((grafptr->velotax != NULL) &&             /* Free graph tables             */
    964956          ((grafptr->flagval & GRAPHVERTGROUP) == 0))
     
    971963      if ((grafptr->edlotax != NULL) &&
    972964          ((grafptr->flagval & GRAPHEDGEGROUP) == 0))
    973 diff -rc src/src/libscotch/graph.h new4/src/libscotch/graph.h
    974 *** src/src/libscotch/graph.h   2008-06-01 02:49:11.000000000 -0700
    975 --- new4/src/libscotch/graph.h  2010-05-03 15:37:55.295090006 -0700
    976 ***************
    977 *** 159,165 ****
    978 --- 159,169 ----
     965--- 135,141 ----
     966      if ((grafptr->velotax != NULL) &&             /* Free graph tables             */
     967          ((grafptr->flagval & GRAPHVERTGROUP) == 0))
     968        memFree (grafptr->velotax + grafptr->baseval);
     969!     if (grafptr->vlbltax != NULL)
     970        memFree (grafptr->vlbltax + grafptr->baseval);
     971      if ((grafptr->edlotax != NULL) &&
     972          ((grafptr->flagval & GRAPHEDGEGROUP) == 0))
     973diff -rc src/src/libscotch/graph.h old/src/libscotch/graph.h
     974*** src/src/libscotch/graph.h   2010-07-19 10:53:22.946732092 -0700
     975--- old/src/libscotch/graph.h   2008-06-01 02:49:11.000000000 -0700
     976***************
     977*** 159,169 ****
    979978  int                         graphInit           (Graph * const);
    980979  void                        graphExit           (Graph * const);
    981980  void                        graphFree           (Graph * const);
    982 + #ifndef MATLAB
     981- #ifndef MATLAB
    983982  int                         graphLoad           (Graph * const, FILE * const, const Gnum, const GraphFlag);
    984 + #else /* MATLAB */
    985 + int                         graphLoad           (Graph * const, FILE * const, const Gnum, const GraphFlag, const Gnum, const Gnum, const Gnum*, const Gnum*, const Gnum*, const Gnum*, const Gnum*);
    986 + #endif /* MATLAB */
     983- #else /* MATLAB */
     984- int                         graphLoad           (Graph * const, FILE * const, const Gnum, const GraphFlag, const Gnum, const Gnum, const Gnum*, const Gnum*, const Gnum*, const Gnum*, const Gnum*);
     985- #endif /* MATLAB */
    987986  int                         graphLoad2          (const Gnum, const Gnum, const Gnum * const, const Gnum * const, Gnum * restrict const, const Gnum, const Gnum * const);
    988987  int                         graphSave           (const Graph * const, FILE * const);
    989988  Gnum                        graphBase           (Graph * const, const Gnum);
    990 diff -rc src/src/libscotch/graph_io.c new4/src/libscotch/graph_io.c
    991 *** src/src/libscotch/graph_io.c        2008-05-22 06:44:42.000000000 -0700
    992 --- new4/src/libscotch/graph_io.c       2010-05-03 15:37:55.303090012 -0700
    993 ***************
    994 *** 86,92 ****
    995   Graph * restrict const      grafptr,              /* Graph structure to fill              */
    996   FILE * const                stream,               /* Stream from which to read graph data */
    997   const Gnum                  baseval,              /* Base value (-1 means keep file base) */
    998 ! const GraphFlag             flagval)              /* Graph loading flags                  */
    999   {
    1000     Gnum                edgenum;                    /* Number of edges really allocated */
    1001     Gnum                edgennd;
    1002 --- 86,103 ----
     989--- 159,165 ----
     990diff -rc src/src/libscotch/graph_io.c old/src/libscotch/graph_io.c
     991*** src/src/libscotch/graph_io.c        2010-07-19 10:53:22.949732111 -0700
     992--- old/src/libscotch/graph_io.c        2008-05-22 06:44:42.000000000 -0700
     993***************
     994*** 86,103 ****
    1003995  Graph * restrict const      grafptr,              /* Graph structure to fill              */
    1004996  FILE * const                stream,               /* Stream from which to read graph data */
     
    10191011    Gnum                edgenum;                    /* Number of edges really allocated */
    10201012    Gnum                edgennd;
    1021 ***************
    1022 *** 104,120 ****
    1023 --- 115,141 ----
     1013--- 86,92 ----
     1014  Graph * restrict const      grafptr,              /* Graph structure to fill              */
     1015  FILE * const                stream,               /* Stream from which to read graph data */
     1016  const Gnum                  baseval,              /* Base value (-1 means keep file base) */
     1017! const GraphFlag             flagval)              /* Graph loading flags                  */
     1018  {
     1019    Gnum                edgenum;                    /* Number of edges really allocated */
     1020    Gnum                edgennd;
     1021***************
     1022*** 115,141 ****
    10241023    char                proptab[4];
    10251024    Gnum                vertnum;
    10261025 
    1027 + #ifdef MATLAB
    1028 +   printf("graphLoad - stream=%p; nvert=%d,nedge2=%d\n",stream,nvert,nedge2);
    1029 +   printf("graphLoad - adjir=%p,adjjc=%p,vertlab=%p,vertwgt=%p,edgewgt=%p\n",
    1030 +          adjir,adjjc,vertlab,vertwgt,edgewgt);
    1031 + #endif /* MATLAB */
     1026- #ifdef MATLAB
     1027-   printf("graphLoad - stream=%p; nvert=%d,nedge2=%d\n",stream,nvert,nedge2);
     1028-   printf("graphLoad - adjir=%p,adjjc=%p,vertlab=%p,vertwgt=%p,edgewgt=%p\n",
     1029-          adjir,adjjc,vertlab,vertwgt,edgewgt);
     1030- #endif /* MATLAB */
    10321031    memSet (grafptr, 0, sizeof (Graph));
    10331032 
    1034 + #ifndef MATLAB
     1033- #ifndef MATLAB
    10351034    if (intLoad (stream, &versval) != 1) {          /* Read version number */
    10361035      errorPrint ("graphLoad: bad input (1)");
    10371036      return     (1);
    10381037    }
    1039 + #else /* MATLAB */
    1040 +   versval=0;
    1041 + #endif /* MATLAB */
     1038- #else /* MATLAB */
     1039-   versval=0;
     1040- #endif /* MATLAB */
    10421041    if (versval != 0) {                             /* If version not zero */
    10431042      errorPrint ("graphLoad: old-style graph format no longer supported");
     
    10451044    }
    10461045 
    1047 + #ifndef MATLAB
     1046- #ifndef MATLAB
    10481047    if ((intLoad (stream, &grafptr->vertnbr) != 1) || /* Read rest of header */
    10491048        (intLoad (stream, &grafptr->edgenbr) != 1) ||
    10501049        (intLoad (stream, &baseadj)          != 1) ||
    1051 ***************
    1052 *** 124,129 ****
    1053 --- 145,159 ----
     1050--- 104,120 ----
     1051***************
     1052*** 145,159 ****
    10541053      errorPrint ("graphLoad: bad input (2)");
    10551054      return     (1);
    10561055    }
    1057 + #else /* MATLAB */
    1058 +   grafptr->vertnbr=nvert;
    1059 +   grafptr->edgenbr=nedge2;
    1060 +   baseadj=1;
    1061 +   propval=0;
    1062 +   if (vertlab) propval+=100;
    1063 +   if (edgewgt) propval+= 10;
    1064 +   if (vertwgt) propval+=  1;
    1065 + #endif /* MATLAB */
     1056- #else /* MATLAB */
     1057-   grafptr->vertnbr=nvert;
     1058-   grafptr->edgenbr=nedge2;
     1059-   baseadj=1;
     1060-   propval=0;
     1061-   if (vertlab) propval+=100;
     1062-   if (edgewgt) propval+= 10;
     1063-   if (vertwgt) propval+=  1;
     1064- #endif /* MATLAB */
    10661065    sprintf (proptab, "%3.3d", (int) propval);      /* Compute file properties */
    10671066    proptab[0] -= '0';                              /* Vertex labels flag      */
    10681067    proptab[1] -= '0';                              /* Edge weights flag       */
    1069 ***************
    1070 *** 140,145 ****
    1071 --- 170,179 ----
     1068--- 124,129 ----
     1069***************
     1070*** 170,179 ****
    10721071    }
    10731072    if (proptab[0] != 0)                            /* If vertex labels, no base adjust */
    10741073      baseadj = 0;
    1075 + #ifdef MATLAB
    1076 +   printf("graphLoad - baseadj=%d,baseval=%d,grafptr->baseval=%d\n",
    1077 +          baseadj,baseval,grafptr->baseval);
    1078 + #endif /* MATLAB */
     1074- #ifdef MATLAB
     1075-   printf("graphLoad - baseadj=%d,baseval=%d,grafptr->baseval=%d\n",
     1076-          baseadj,baseval,grafptr->baseval);
     1077- #endif /* MATLAB */
    10791078 
    10801079    velonbr = ((proptab[2] != 0) && ((flagval & GRAPHIONOLOADVERT) == 0)) ? grafptr->vertnbr : 0;
    10811080    vlblnbr = (proptab[0] != 0) ? grafptr->vertnbr : 0;
    1082 ***************
    1083 *** 178,188 ****
    1084 --- 212,226 ----
     1081--- 140,145 ----
     1082***************
     1083*** 212,226 ****
    10851084      if (grafptr->vlbltax != NULL) {               /* If must read label               */
    10861085        Gnum                vlblval;                /* Value where to read vertex label */
    10871086 
    1088 + #ifndef MATLAB
     1087- #ifndef MATLAB
    10891088        if (intLoad (stream, &vlblval) != 1) {      /* Read label data */
    10901089          errorPrint ("graphLoad: bad input (3)");
     
    10921091          return     (1);
    10931092        }
    1094 + #else /* MATLAB */
    1095 +       vlblval=vertlab[vertnum-grafptr->baseval];
    1096 + #endif /* MATLAB */
     1093- #else /* MATLAB */
     1094-       vlblval=vertlab[vertnum-grafptr->baseval];
     1095- #endif /* MATLAB */
    10971096        grafptr->vlbltax[vertnum] = vlblval;
    10981097        if (grafptr->vlbltax[vertnum] > vlblmax)    /* Get maximum vertex label */
    10991098          vlblmax = grafptr->vlbltax[vertnum];
    1100 ***************
    1101 *** 190,209 ****
    1102 --- 228,257 ----
     1099--- 178,188 ----
     1100***************
     1101*** 228,257 ****
    11031102      if (proptab[2] != 0) {                        /* If must read vertex load        */
    11041103        Gnum                veloval;                /* Value where to read vertex load */
    11051104 
    1106 + #ifndef MATLAB
     1105- #ifndef MATLAB
    11071106        if (intLoad (stream, &veloval) != 1) {      /* Read vertex load data    */
    11081107          errorPrint ("graphLoad: bad input (4)");
     
    11101109          return     (1);
    11111110        }
    1112 + #else /* MATLAB */
    1113 +       veloval=vertwgt[vertnum-grafptr->baseval];
    1114 + #endif /* MATLAB */
     1111- #else /* MATLAB */
     1112-       veloval=vertwgt[vertnum-grafptr->baseval];
     1113- #endif /* MATLAB */
    11151114        if (grafptr->velotax != NULL)
    11161115          velosum                  +=
    11171116          grafptr->velotax[vertnum] = veloval;
    11181117      }
    1119 + #ifndef MATLAB
     1118- #ifndef MATLAB
    11201119      if (intLoad (stream, &degrval) != 1) {        /* Read vertex degree */
    11211120        errorPrint ("graphLoad: bad input (5)");
     
    11231122        return     (1);
    11241123      }
    1125 + #else /* MATLAB */
    1126 + //    printf("old degrval=%d; new degrval=%d\n",
    1127 + //           degrval,adjjc[vertnum-grafptr->baseval+1]-adjjc[vertnum-grafptr->baseval]);
    1128 +     degrval=adjjc[vertnum-grafptr->baseval+1]-adjjc[vertnum-grafptr->baseval];
    1129 + #endif /* MATLAB */
     1124- #else /* MATLAB */
     1125- //    printf("old degrval=%d; new degrval=%d\n",
     1126- //           degrval,adjjc[vertnum-grafptr->baseval+1]-adjjc[vertnum-grafptr->baseval]);
     1127-     degrval=adjjc[vertnum-grafptr->baseval+1]-adjjc[vertnum-grafptr->baseval];
     1128- #endif /* MATLAB */
    11301129      if (degrmax < degrval)                        /* Set maximum degree */
    11311130        degrmax = degrval;
    11321131 
    1133 ***************
    1134 *** 219,238 ****
    1135 --- 267,301 ----
     1132--- 190,209 ----
     1133***************
     1134*** 267,301 ****
    11361135        if (proptab[1] != 0) {                      /* If must read edge load        */
    11371136          Gnum                edloval;              /* Value where to read edge load */
    11381137 
    1139 + #ifndef MATLAB
     1138- #ifndef MATLAB
    11401139          if (intLoad (stream, &edloval) != 1) {    /* Read edge load data    */
    11411140            errorPrint ("graphLoad: bad input (6)");
     
    11431142            return     (1);
    11441143          }
    1145 + #else /* MATLAB */
    1146 +         edloval=edgewgt[edgenum-grafptr->baseval];
    1147 + #endif /* MATLAB */
     1144- #else /* MATLAB */
     1145-         edloval=edgewgt[edgenum-grafptr->baseval];
     1146- #endif /* MATLAB */
    11481147          if (grafptr->edlotax != NULL)
    11491148            edlosum                  +=
    11501149            grafptr->edlotax[edgenum] = (Gnum) edloval;
    11511150        }
    1152 + #ifndef MATLAB
     1151- #ifndef MATLAB
    11531152        if (intLoad (stream, &edgeval) != 1) {      /* Read edge data */
    11541153          errorPrint ("graphLoad: bad input (7)");
     
    11561155          return     (1);
    11571156        }
    1158 + #else /* MATLAB */
    1159 + //      printf("edgenum=%d: old edgeval=%d; new edgeval[%d]=%d\n",
    1160 + //            edgenum,edgeval,edgenum-grafptr->baseval,adjir[edgenum-grafptr->baseval]+1);
    1161 + /*  if vertex labels are supplied, they must be referenced  (jes, 1/05/10)  */
    1162 + //      edgeval=adjir[edgenum-grafptr->baseval]+1;
    1163 +       if (vertlab)
    1164 +         edgeval=vertlab[adjir[edgenum-grafptr->baseval]  ];
    1165 +       else
    1166 +         edgeval=        adjir[edgenum-grafptr->baseval]+1;
    1167 + #endif /* MATLAB */
     1157- #else /* MATLAB */
     1158- //      printf("edgenum=%d: old edgeval=%d; new edgeval[%d]=%d\n",
     1159- //            edgenum,edgeval,edgenum-grafptr->baseval,adjir[edgenum-grafptr->baseval]+1);
     1160- /*  if vertex labels are supplied, they must be referenced  (jes, 1/05/10)  */
     1161- //      edgeval=adjir[edgenum-grafptr->baseval]+1;
     1162-       if (vertlab)
     1163-         edgeval=vertlab[adjir[edgenum-grafptr->baseval]  ];
     1164-       else
     1165-         edgeval=        adjir[edgenum-grafptr->baseval]+1;
     1166- #endif /* MATLAB */
    11681167        grafptr->edgetax[edgenum] = edgeval + baseadj;
    11691168      }
    11701169    }
    1171 ***************
    1172 *** 279,284 ****
    1173 --- 342,351 ----
     1170--- 219,238 ----
     1171***************
     1172*** 342,351 ****
    11741173    Gnum                vertnum;                    /* Number of current vertex        */
    11751174    Gnum * restrict     indxtab;                    /* Vertex label/number index table */
    11761175 
    1177 + #ifdef MATLAB
    1178 +   printf("graphLoad2 - baseval=%d,vertnnd=%d,vlblmax=%d\n",
    1179 +          baseval,vertnnd,vlblmax);
    1180 + #endif /* MATLAB */
     1176- #ifdef MATLAB
     1177-   printf("graphLoad2 - baseval=%d,vertnnd=%d,vlblmax=%d\n",
     1178-          baseval,vertnnd,vlblmax);
     1179- #endif /* MATLAB */
    11811180    if ((indxtab = (Gnum *) memAlloc ((vlblmax + 1) * sizeof (Gnum))) == NULL) {
    11821181      errorPrint  ("graphLoad2: out of memory");
    11831182      return      (1);
    1184 ***************
    1185 *** 286,291 ****
    1186 --- 353,362 ----
     1183--- 279,284 ----
     1184***************
     1185*** 353,362 ****
    11871186 
    11881187    memSet (indxtab, ~0, (vlblmax + 1) * sizeof (Gnum)); /* Assume labels not used */
    11891188    for (vertnum = baseval; vertnum < vertnnd; vertnum ++) {
    1190 + #ifdef MATLAB
    1191 + //    printf("graphLoad2 - vertnum=%d; vlbltax=%d,indxtab=%d\n",
    1192 + //           vertnum,vlbltax[vertnum],indxtab[vlbltax[vertnum]]);
    1193 + #endif /* MATLAB */
     1189- #ifdef MATLAB
     1190- //    printf("graphLoad2 - vertnum=%d; vlbltax=%d,indxtab=%d\n",
     1191- //           vertnum,vlbltax[vertnum],indxtab[vlbltax[vertnum]]);
     1192- #endif /* MATLAB */
    11941193      if (indxtab[vlbltax[vertnum]] != ~0) {        /* If vertex label already used */
    11951194        errorPrint  ("graphLoad2: duplicate vertex label");
    11961195        memFree     (indxtab);
    1197 ***************
    1198 *** 294,299 ****
    1199 --- 365,374 ----
     1196--- 286,291 ----
     1197***************
     1198*** 365,374 ****
    12001199      indxtab[vlbltax[vertnum]] = vertnum;          /* Set vertex number index */
    12011200    }
    12021201    for (vertnum = baseval; vertnum < vertnnd; vertnum ++) {
    1203 + #ifdef MATLAB
    1204 + //    printf("graphLoad2 - vertnum=%d; vlbltax=%d,indxtab=%d\n",
    1205 + //           vertnum,vlbltax[vertnum],indxtab[vlbltax[vertnum]]);
    1206 + #endif /* MATLAB */
     1202- #ifdef MATLAB
     1203- //    printf("graphLoad2 - vertnum=%d; vlbltax=%d,indxtab=%d\n",
     1204- //           vertnum,vlbltax[vertnum],indxtab[vlbltax[vertnum]]);
     1205- #endif /* MATLAB */
    12071206      Gnum                edgenum;                  /* Number of current edge */
    12081207 
    12091208      for (edgenum = verttax[vertnum]; edgenum < vendtax[vertnum]; edgenum ++) {
    1210 ***************
    1211 *** 307,313 ****
    1212 --- 382,396 ----
     1209--- 294,299 ----
     1210***************
     1211*** 382,396 ****
    12131212          memFree    (indxtab);
    12141213          return     (1);
    12151214        }
    1216 + #ifdef MATLAB
    1217 + //      printf("graphLoad2 - edgenum=%d; old edgetax=%d,",
    1218 + //             edgenum,edgetax[edgenum]);
    1219 + #endif /* MATLAB */
     1215- #ifdef MATLAB
     1216- //      printf("graphLoad2 - edgenum=%d; old edgetax=%d,",
     1217- //             edgenum,edgetax[edgenum]);
     1218- #endif /* MATLAB */
    12201219        edgetax[edgenum] = indxtab[edgetax[edgenum]]; /* Replace label by number */
    1221 + #ifdef MATLAB
    1222 + //      printf("new edgetax=%d\n",
    1223 + //             edgetax[edgenum]);
    1224 + #endif /* MATLAB */
     1220- #ifdef MATLAB
     1221- //      printf("new edgetax=%d\n",
     1222- //             edgetax[edgenum]);
     1223- #endif /* MATLAB */
    12251224      }
    12261225    }
    12271226 
    1228 diff -rc src/src/libscotch/graph_io_scot.c new4/src/libscotch/graph_io_scot.c
    1229 *** src/src/libscotch/graph_io_scot.c   2008-05-22 06:44:42.000000000 -0700
    1230 --- new4/src/libscotch/graph_io_scot.c  2010-05-03 15:37:55.310090018 -0700
    1231 ***************
    1232 *** 89,95 ****
    1233 --- 89,99 ----
     1227--- 307,313 ----
     1228diff -rc src/src/libscotch/graph_io_scot.c old/src/libscotch/graph_io_scot.c
     1229*** src/src/libscotch/graph_io_scot.c   2010-07-19 10:53:22.952732130 -0700
     1230--- old/src/libscotch/graph_io_scot.c   2008-05-22 06:44:42.000000000 -0700
     1231***************
     1232*** 89,99 ****
    12341233    int                           o;
    12351234 
    12361235    if (filesrcptr != NULL) {
    1237 + #ifndef MATLAB
     1236- #ifndef MATLAB
    12381237      if (graphLoad (grafptr, filesrcptr, -1, 0) != 0)
    1239 + #else /* MATLAB */
    1240 +     if (graphLoad (grafptr, filesrcptr, -1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL) != 0)
    1241 + #endif /* MATLAB */
     1238- #else /* MATLAB */
     1239-     if (graphLoad (grafptr, filesrcptr, -1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL) != 0)
     1240- #endif /* MATLAB */
    12421241        return (1);
    12431242    }
    12441243 
    1245 diff -rc src/src/libscotch/library_arch.c new4/src/libscotch/library_arch.c
    1246 *** src/src/libscotch/library_arch.c    2008-05-22 06:44:42.000000000 -0700
    1247 --- new4/src/libscotch/library_arch.c   2010-05-03 15:37:55.317090024 -0700
    1248 ***************
    1249 *** 120,128 ****
    1250   int
    1251   SCOTCH_archLoad (
    1252   SCOTCH_Arch * const         archptr,
    1253 ! FILE * const                stream)
    1254   {
    1255     return (archLoad ((Arch *) archptr, stream));
    1256   }
    1257  
    1258   /*+ This routine saves the given opaque
    1259 --- 120,139 ----
     1244--- 89,95 ----
     1245diff -rc src/src/libscotch/library_arch.c old/src/libscotch/library_arch.c
     1246*** src/src/libscotch/library_arch.c    2010-07-19 10:53:22.954732143 -0700
     1247--- old/src/libscotch/library_arch.c    2008-05-22 06:44:42.000000000 -0700
     1248***************
     1249*** 120,139 ****
    12601250  int
    12611251  SCOTCH_archLoad (
     
    12701260!                                    )
    12711261  {
    1272 + #ifndef MATLAB
     1262- #ifndef MATLAB
    12731263    return (archLoad ((Arch *) archptr, stream));
    1274 + #else /* MATLAB */
    1275 +   return (archLoad ((Arch *) archptr, stream, archtyp, napar, archpar));
    1276 + #endif /* MATLAB */
     1264- #else /* MATLAB */
     1265-   return (archLoad ((Arch *) archptr, stream, archtyp, napar, archpar));
     1266- #endif /* MATLAB */
    12771267  }
    12781268 
    12791269  /*+ This routine saves the given opaque
    1280 diff -rc src/src/libscotch/library_arch_f.c new4/src/libscotch/library_arch_f.c
    1281 *** src/src/libscotch/library_arch_f.c  2008-05-22 06:44:42.000000000 -0700
    1282 --- new4/src/libscotch/library_arch_f.c 2010-05-03 15:37:55.323090029 -0700
    1283 ***************
    1284 *** 121,127 ****
    1285 --- 121,131 ----
     1270--- 120,128 ----
     1271  int
     1272  SCOTCH_archLoad (
     1273  SCOTCH_Arch * const         archptr,
     1274! FILE * const                stream)
     1275  {
     1276    return (archLoad ((Arch *) archptr, stream));
     1277  }
     1278 
     1279  /*+ This routine saves the given opaque
     1280diff -rc src/src/libscotch/library_arch_f.c old/src/libscotch/library_arch_f.c
     1281*** src/src/libscotch/library_arch_f.c  2010-07-19 10:53:22.956732156 -0700
     1282--- old/src/libscotch/library_arch_f.c  2008-05-22 06:44:42.000000000 -0700
     1283***************
     1284*** 121,131 ****
    12861285    }
    12871286    setbuf (stream, NULL);                          /* Do not buffer on input */
    12881287 
    1289 + #ifndef MATLAB
     1288- #ifndef MATLAB
    12901289    o = SCOTCH_archLoad (archptr, stream);
    1291 + #else /* MATLAB */
    1292 +   o = SCOTCH_archLoad (archptr, stream, "", 0, NULL);
    1293 + #endif /* MATLAB */
     1290- #else /* MATLAB */
     1291-   o = SCOTCH_archLoad (archptr, stream, "", 0, NULL);
     1292- #endif /* MATLAB */
    12941293 
    12951294    fclose (stream);                                /* This closes filenum too */
    12961295 
    1297 diff -rc src/src/libscotch/library_error_exit.c new4/src/libscotch/library_error_exit.c
    1298 *** src/src/libscotch/library_error_exit.c      2009-01-20 00:36:33.000000000 -0800
    1299 --- new4/src/libscotch/library_error_exit.c     2010-05-03 15:37:55.330090035 -0700
    1300 ***************
    1301 *** 114,119 ****
    1302 --- 114,120 ----
     1296--- 121,127 ----
     1297diff -rc src/src/libscotch/library_error_exit.c old/src/libscotch/library_error_exit.c
     1298*** src/src/libscotch/library_error_exit.c      2010-07-19 10:53:22.959732175 -0700
     1299--- old/src/libscotch/library_error_exit.c      2009-01-20 00:36:33.000000000 -0800
     1300***************
     1301*** 114,120 ****
    13031302    int                 proclocnum;
    13041303  #endif /* SCOTCH_PTSCOTCH */
    13051304 
    1306 + #ifndef MATLAB
     1305- #ifndef MATLAB
    13071306    fprintf  (stderr, "%s", _SCOTCHerrorProgName);
    13081307  #ifdef SCOTCH_PTSCOTCH
    13091308    if ((MPI_Initialized (&proclocnum) == MPI_SUCCESS) &&
    1310 ***************
    1311 *** 131,136 ****
    1312 --- 132,155 ----
     1309--- 114,119 ----
     1310***************
     1311*** 132,155 ****
    13131312    fprintf  (stderr, "\n");
    13141313    fflush   (stderr);                              /* In case it has been set to buffered mode */
    13151314 
    1316 + #else /* MATLAB */
    1317 +   mexPrintf  ("%s", _SCOTCHerrorProgName);
    1318 + #ifdef SCOTCH_PTSCOTCH
    1319 +   if ((MPI_Initialized (&proclocnum) == MPI_SUCCESS) &&
    1320 +       (proclocnum != 0)                              &&
    1321 +       (MPI_Comm_rank (MPI_COMM_WORLD, &proclocnum) == MPI_SUCCESS))
    1322 +     mexPrintf ("(%d): ", proclocnum);
    1323 + #else /* SCOTCH_PTSCOTCH */
    1324 +   if (_SCOTCHerrorProgName[0] != '\0')
    1325 +     mexPrintf  (": ");
    1326 + #endif /* SCOTCH_PTSCOTCH */
    1327 +   mexPrintf  ("ERROR: ");
    1328 +   va_start (errlist, errstr);
    1329 +   mexPrintf (errstr, errlist);             /* Print arguments */
    1330 +   va_end   (errlist);
    1331 +   mexPrintf  ("\n");
    1332 + #endif /* MATLAB */
    1333 +
     1315- #else /* MATLAB */
     1316-   mexPrintf  ("%s", _SCOTCHerrorProgName);
     1317- #ifdef SCOTCH_PTSCOTCH
     1318-   if ((MPI_Initialized (&proclocnum) == MPI_SUCCESS) &&
     1319-       (proclocnum != 0)                              &&
     1320-       (MPI_Comm_rank (MPI_COMM_WORLD, &proclocnum) == MPI_SUCCESS))
     1321-     mexPrintf ("(%d): ", proclocnum);
     1322- #else /* SCOTCH_PTSCOTCH */
     1323-   if (_SCOTCHerrorProgName[0] != '\0')
     1324-     mexPrintf  (": ");
     1325- #endif /* SCOTCH_PTSCOTCH */
     1326-   mexPrintf  ("ERROR: ");
     1327-   va_start (errlist, errstr);
     1328-   mexPrintf (errstr, errlist);             /* Print arguments */
     1329-   va_end   (errlist);
     1330-   mexPrintf  ("\n");
     1331- #endif /* MATLAB */
     1332-
    13341333  #ifdef SCOTCH_ERROR_SLEEP
    13351334    sleep (SCOTCH_ERROR_SLEEP);                     /* Wait for messages to be propagated */
    13361335  #endif /* SCOTCH_ERROR_SLEEP */
    1337 ***************
    1338 *** 155,160 ****
    1339 --- 174,180 ----
     1336--- 131,136 ----
     1337***************
     1338*** 174,180 ****
    13401339    int                 proclocnum;
    13411340  #endif /* SCOTCH_PTSCOTCH */
    13421341 
    1343 + #ifndef MATLAB
     1342- #ifndef MATLAB
    13441343    fprintf  (stderr, "%s", _SCOTCHerrorProgName);
    13451344  #ifdef SCOTCH_PTSCOTCH
    13461345    if ((MPI_Initialized (&proclocnum) == MPI_SUCCESS) &&
    1347 ***************
    1348 *** 171,174 ****
    1349 --- 191,212 ----
     1346--- 155,160 ----
     1347***************
     1348*** 191,212 ****
    13501349    va_end   (errlist);
    13511350    fprintf  (stderr, "\n");
    13521351    fflush   (stderr);                              /* In case it has been set to buffered mode */
    1353 +
    1354 + #else /* MATLAB */
    1355 +   mexPrintf  ("%s", _SCOTCHerrorProgName);
    1356 + #ifdef SCOTCH_PTSCOTCH
    1357 +   if ((MPI_Initialized (&proclocnum) == MPI_SUCCESS) &&
    1358 +       (proclocnum != 0)                              &&
    1359 +       (MPI_Comm_rank (MPI_COMM_WORLD, &proclocnum) == MPI_SUCCESS))
    1360 +     mexPrintf ("(%d): ", proclocnum);
    1361 + #else /* SCOTCH_PTSCOTCH */
    1362 +   if (_SCOTCHerrorProgName[0] != '\0')
    1363 +     mexPrintf  (": ");
    1364 + #endif /* SCOTCH_PTSCOTCH */
    1365 +   mexPrintf  ("WARNING: ");
    1366 +   va_start (errlist, errstr);
    1367 +   mexPrintf (errstr, errlist);             /* Print arguments */
    1368 +   va_end   (errlist);
    1369 +   mexPrintf  ("\n");
    1370 + #endif /* MATLAB */
     1352-
     1353- #else /* MATLAB */
     1354-   mexPrintf  ("%s", _SCOTCHerrorProgName);
     1355- #ifdef SCOTCH_PTSCOTCH
     1356-   if ((MPI_Initialized (&proclocnum) == MPI_SUCCESS) &&
     1357-       (proclocnum != 0)                              &&
     1358-       (MPI_Comm_rank (MPI_COMM_WORLD, &proclocnum) == MPI_SUCCESS))
     1359-     mexPrintf ("(%d): ", proclocnum);
     1360- #else /* SCOTCH_PTSCOTCH */
     1361-   if (_SCOTCHerrorProgName[0] != '\0')
     1362-     mexPrintf  (": ");
     1363- #endif /* SCOTCH_PTSCOTCH */
     1364-   mexPrintf  ("WARNING: ");
     1365-   va_start (errlist, errstr);
     1366-   mexPrintf (errstr, errlist);             /* Print arguments */
     1367-   va_end   (errlist);
     1368-   mexPrintf  ("\n");
     1369- #endif /* MATLAB */
    13711370  }
    1372 diff -rc src/src/libscotch/library_graph.c new4/src/libscotch/library_graph.c
    1373 *** src/src/libscotch/library_graph.c   2008-05-22 07:28:12.000000000 -0700
    1374 --- new4/src/libscotch/library_graph.c  2010-05-03 15:37:55.337090040 -0700
    1375 ***************
    1376 *** 137,143 ****
    1377   SCOTCH_Graph * const        grafptr,
    1378   FILE * const                stream,
    1379   const SCOTCH_Num            baseval,
    1380 ! const SCOTCH_Num            flagval)
    1381   {
    1382     GraphFlag           srcgrafflag;                /* Graph flags */
    1383  
    1384 --- 137,154 ----
     1371--- 171,174 ----
     1372diff -rc src/src/libscotch/library_graph.c old/src/libscotch/library_graph.c
     1373*** src/src/libscotch/library_graph.c   2010-07-19 10:53:22.962732194 -0700
     1374--- old/src/libscotch/library_graph.c   2008-05-22 07:28:12.000000000 -0700
     1375***************
     1376*** 137,154 ****
    13851377  SCOTCH_Graph * const        grafptr,
    13861378  FILE * const                stream,
     
    14011393    GraphFlag           srcgrafflag;                /* Graph flags */
    14021394 
    1403 ***************
    1404 *** 153,159 ****
    1405 --- 164,174 ----
     1395--- 137,143 ----
     1396  SCOTCH_Graph * const        grafptr,
     1397  FILE * const                stream,
     1398  const SCOTCH_Num            baseval,
     1399! const SCOTCH_Num            flagval)
     1400  {
     1401    GraphFlag           srcgrafflag;                /* Graph flags */
     1402 
     1403***************
     1404*** 164,174 ****
    14061405    srcgrafflag = (((flagval & 1) != 0) ? GRAPHIONOLOADVERT : 0) +
    14071406                  (((flagval & 2) != 0) ? GRAPHIONOLOADEDGE : 0);
    14081407 
    1409 + #ifndef MATLAB
     1408- #ifndef MATLAB
    14101409    return (graphLoad ((Graph * const) grafptr, stream, (Gnum) baseval, srcgrafflag));
    1411 + #else /* MATLAB */
    1412 +   return (graphLoad ((Graph * const) grafptr, stream, (Gnum) baseval, srcgrafflag, (const Gnum) nvert, (const Gnum) nedge2, (const Gnum *) adjir, (const Gnum *) adjjc, (const Gnum *) vertlab, (const Gnum *) vertwgt, (const Gnum *) edgewgt));
    1413 + #endif /* MATLAB */
     1410- #else /* MATLAB */
     1411-   return (graphLoad ((Graph * const) grafptr, stream, (Gnum) baseval, srcgrafflag, (const Gnum) nvert, (const Gnum) nedge2, (const Gnum *) adjir, (const Gnum *) adjjc, (const Gnum *) vertlab, (const Gnum *) vertwgt, (const Gnum *) edgewgt));
     1412- #endif /* MATLAB */
    14141413  }
    14151414 
    14161415  /*+ This routine saves the contents of the given
    1417 diff -rc src/src/libscotch/library_graph_f.c new4/src/libscotch/library_graph_f.c
    1418 *** src/src/libscotch/library_graph_f.c 2008-05-22 06:44:43.000000000 -0700
    1419 --- new4/src/libscotch/library_graph_f.c        2010-05-03 15:37:55.344090046 -0700
    1420 ***************
    1421 *** 136,142 ****
    1422 --- 136,146 ----
     1416--- 153,159 ----
     1417diff -rc src/src/libscotch/library_graph_f.c old/src/libscotch/library_graph_f.c
     1418*** src/src/libscotch/library_graph_f.c 2010-07-19 10:53:22.964732207 -0700
     1419--- old/src/libscotch/library_graph_f.c 2008-05-22 06:44:43.000000000 -0700
     1420***************
     1421*** 136,146 ****
    14231422    }
    14241423    setbuf (stream, NULL);                          /* Do not buffer on input */
    14251424 
    1426 + #ifndef MATLAB
     1425- #ifndef MATLAB
    14271426    o = SCOTCH_graphLoad (grafptr, stream, *baseptr, *flagptr);
    1428 + #else /* MATLAB */
    1429 +   o = SCOTCH_graphLoad (grafptr, stream, *baseptr, *flagptr, 0, 0, NULL, NULL, NULL, NULL, NULL);
    1430 + #endif /* MATLAB */
     1427- #else /* MATLAB */
     1428-   o = SCOTCH_graphLoad (grafptr, stream, *baseptr, *flagptr, 0, 0, NULL, NULL, NULL, NULL, NULL);
     1429- #endif /* MATLAB */
    14311430 
    14321431    fclose (stream);                                /* This closes filenum too */
    14331432 
    1434 diff -rc src/src/libscotch/library_graph_map.c new4/src/libscotch/library_graph_map.c
    1435 *** src/src/libscotch/library_graph_map.c       2008-09-28 04:04:05.000000000 -0700
    1436 --- new4/src/libscotch/library_graph_map.c      2010-05-03 15:37:55.350090051 -0700
    1437 ***************
    1438 *** 182,192 ****
    1439 --- 182,200 ----
     1433--- 136,142 ----
     1434diff -rc src/src/libscotch/library_graph_map.c old/src/libscotch/library_graph_map.c
     1435*** src/src/libscotch/library_graph_map.c       2010-07-19 10:53:22.967732227 -0700
     1436--- old/src/libscotch/library_graph_map.c       2008-09-28 04:04:05.000000000 -0700
     1437***************
     1438*** 182,200 ****
    14401439 
    14411440  int
    14421441  SCOTCH_graphMapSave (
    1443 + #ifdef MATLAB
    1444 + Gnum *pnvert,
    1445 + Gnum (**pmaptab)[2],
    1446 + #endif /* MATLAB */
     1442- #ifdef MATLAB
     1443- Gnum *pnvert,
     1444- Gnum (**pmaptab)[2],
     1445- #endif /* MATLAB */
    14471446  const SCOTCH_Graph * const    grafptr,            /*+ Graph to order  +*/
    14481447  const SCOTCH_Mapping * const  mappptr,            /*+ Mapping to save +*/
    14491448  FILE * const                  stream)             /*+ Output stream   +*/
    14501449  {
    1451 + #ifndef MATLAB
     1450- #ifndef MATLAB
    14521451    return (mapSave (&((LibMapping *) mappptr)->m, ((Graph *) grafptr)->vlbltax, stream));
    1453 + #else /* MATLAB */
    1454 +   return (mapSave (pnvert, pmaptab, &((LibMapping *) mappptr)->m, ((Graph *) grafptr)->vlbltax, stream));
    1455 + #endif /* MATLAB */
     1452- #else /* MATLAB */
     1453-   return (mapSave (pnvert, pmaptab, &((LibMapping *) mappptr)->m, ((Graph *) grafptr)->vlbltax, stream));
     1454- #endif /* MATLAB */
    14561455  }
    14571456 
    14581457  /*+ This routine computes a mapping
    1459 diff -rc src/src/libscotch/library_graph_map_f.c new4/src/libscotch/library_graph_map_f.c
    1460 *** src/src/libscotch/library_graph_map_f.c     2008-06-28 03:44:26.000000000 -0700
    1461 --- new4/src/libscotch/library_graph_map_f.c    2010-05-03 15:37:55.357090057 -0700
    1462 ***************
    1463 *** 183,189 ****
    1464 --- 183,193 ----
     1458--- 182,192 ----
     1459diff -rc src/src/libscotch/library_graph_map_f.c old/src/libscotch/library_graph_map_f.c
     1460*** src/src/libscotch/library_graph_map_f.c     2010-07-19 10:53:22.969732239 -0700
     1461--- old/src/libscotch/library_graph_map_f.c     2008-06-28 03:44:26.000000000 -0700
     1462***************
     1463*** 183,193 ****
    14651464      return;
    14661465    }
    14671466 
    1468 + #ifndef MATLAB
     1467- #ifndef MATLAB
    14691468    o = SCOTCH_graphMapSave (grafptr, mapptr, stream);
    1470 + #else /* MATLAB */
    1471 +   o = SCOTCH_graphMapSave (NULL, NULL, grafptr, mapptr, stream);
    1472 + #endif /* MATLAB */
     1469- #else /* MATLAB */
     1470-   o = SCOTCH_graphMapSave (NULL, NULL, grafptr, mapptr, stream);
     1471- #endif /* MATLAB */
    14731472 
    14741473    fclose (stream);                                /* This closes filenum too */
    14751474 
    1476 diff -rc src/src/libscotch/library.h new4/src/libscotch/library.h
    1477 *** src/src/libscotch/library.h 2009-05-09 16:08:03.000000000 -0700
    1478 --- new4/src/libscotch/library.h        2010-05-03 15:37:55.365090063 -0700
    1479 ***************
    1480 *** 134,140 ****
    1481 --- 134,144 ----
     1475--- 183,189 ----
     1476diff -rc src/src/libscotch/library.h old/src/libscotch/library.h
     1477*** src/src/libscotch/library.h 2010-07-19 10:53:22.972732259 -0700
     1478--- old/src/libscotch/library.h 2009-05-09 16:08:03.000000000 -0700
     1479***************
     1480*** 134,144 ****
    14821481 
    14831482  int                         SCOTCH_archInit     (SCOTCH_Arch * const);
    14841483  void                        SCOTCH_archExit     (SCOTCH_Arch * const);
    1485 + #ifndef MATLAB
     1484- #ifndef MATLAB
    14861485  int                         SCOTCH_archLoad     (SCOTCH_Arch * const, FILE * const);
    1487 + #else /* MATLAB */
    1488 + int                         SCOTCH_archLoad     (SCOTCH_Arch * const, FILE * const, const char *, const SCOTCH_Num, const SCOTCH_Num *);
    1489 + #endif /* MATLAB */
     1486- #else /* MATLAB */
     1487- int                         SCOTCH_archLoad     (SCOTCH_Arch * const, FILE * const, const char *, const SCOTCH_Num, const SCOTCH_Num *);
     1488- #endif /* MATLAB */
    14901489  int                         SCOTCH_archSave     (const SCOTCH_Arch * const, FILE * const);
    14911490  int                         SCOTCH_archBuild    (SCOTCH_Arch * const, const SCOTCH_Graph * const, const SCOTCH_Num, const SCOTCH_Num * const, const SCOTCH_Strat * const);
    14921491  int                         SCOTCH_archCmplt    (SCOTCH_Arch * const, const SCOTCH_Num);
    1493 ***************
    1494 *** 191,197 ****
    1495 --- 195,205 ----
     1492--- 134,140 ----
     1493***************
     1494*** 195,205 ****
    14961495  int                         SCOTCH_graphInit    (SCOTCH_Graph * const);
    14971496  void                        SCOTCH_graphExit    (SCOTCH_Graph * const);
    14981497  void                        SCOTCH_graphFree    (SCOTCH_Graph * const);
    1499 + #ifndef MATLAB
     1498- #ifndef MATLAB
    15001499  int                         SCOTCH_graphLoad    (SCOTCH_Graph * const, FILE * const, const SCOTCH_Num, const SCOTCH_Num);
    1501 + #else /* MATLAB */
    1502 + int                         SCOTCH_graphLoad    (SCOTCH_Graph * const, FILE * const, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num *, const SCOTCH_Num *, const SCOTCH_Num *, const SCOTCH_Num *, const SCOTCH_Num *);
    1503 + #endif /* MATLAB */
     1500- #else /* MATLAB */
     1501- int                         SCOTCH_graphLoad    (SCOTCH_Graph * const, FILE * const, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num *, const SCOTCH_Num *, const SCOTCH_Num *, const SCOTCH_Num *, const SCOTCH_Num *);
     1502- #endif /* MATLAB */
    15041503  int                         SCOTCH_graphSave    (const SCOTCH_Graph * const, FILE * const);
    15051504  int                         SCOTCH_graphBuild   (SCOTCH_Graph * const, const SCOTCH_Num, const SCOTCH_Num, const SCOTCH_Num * const, const SCOTCH_Num * const, const SCOTCH_Num * const, const SCOTCH_Num * const, const SCOTCH_Num, const SCOTCH_Num * const, const SCOTCH_Num * const);
    15061505  SCOTCH_Num                  SCOTCH_graphBase    (SCOTCH_Graph * const, const SCOTCH_Num baseval);
    1507 ***************
    1508 *** 210,216 ****
    1509 --- 218,228 ----
     1506--- 191,197 ----
     1507***************
     1508*** 218,228 ****
    15101509  int                         SCOTCH_graphMapInit (const SCOTCH_Graph * const, SCOTCH_Mapping * const, const SCOTCH_Arch * const, SCOTCH_Num * const);
    15111510  void                        SCOTCH_graphMapExit (const SCOTCH_Graph * const, SCOTCH_Mapping * const);
    15121511  int                         SCOTCH_graphMapLoad (const SCOTCH_Graph * const, const SCOTCH_Mapping * const, FILE * const);
    1513 + #ifndef MATLAB
     1512- #ifndef MATLAB
    15141513  int                         SCOTCH_graphMapSave (const SCOTCH_Graph * const, const SCOTCH_Mapping * const, FILE * const);
    1515 + #else /* MATLAB */
    1516 + int                         SCOTCH_graphMapSave (SCOTCH_Num *, SCOTCH_Num (**)[2], const SCOTCH_Graph * const, const SCOTCH_Mapping * const, FILE * const);
    1517 + #endif /* MATLAB */
     1514- #else /* MATLAB */
     1515- int                         SCOTCH_graphMapSave (SCOTCH_Num *, SCOTCH_Num (**)[2], const SCOTCH_Graph * const, const SCOTCH_Mapping * const, FILE * const);
     1516- #endif /* MATLAB */
    15181517  int                         SCOTCH_graphMapView (const SCOTCH_Graph * const, const SCOTCH_Mapping * const, FILE * const);
    15191518  int                         SCOTCH_graphMapCompute (const SCOTCH_Graph * const, SCOTCH_Mapping * const, const SCOTCH_Strat * const);
    15201519  int                         SCOTCH_graphMap     (const SCOTCH_Graph * const, const SCOTCH_Arch * const, const SCOTCH_Strat * const, SCOTCH_Num * const);
    1521 diff -rc src/src/libscotch/Makefile new4/src/libscotch/Makefile
    1522 *** src/src/libscotch/Makefile  2009-05-09 16:08:04.000000000 -0700
    1523 --- new4/src/libscotch/Makefile 2010-06-17 09:55:33.101320246 -0700
     1520--- 210,216 ----
     1521diff -rc src/src/libscotch/Makefile old/src/libscotch/Makefile
     1522*** src/src/libscotch/Makefile  2010-07-19 10:53:22.977732291 -0700
     1523--- old/src/libscotch/Makefile  2009-05-09 16:08:04.000000000 -0700
    15241524***************
    15251525*** 49,55 ****
     
    15271527  ##
    15281528 
    1529 ! .PHONY                                :       ptscotch        scotch  ptinstall       install clean   realclean
     1529! .PHONY                                :       ptscotch        scotch  mexscotch       ptinstall       install clean   realclean
    15301530 
    15311531  scotch                                :       clean
     
    15351535  ##
    15361536 
    1537 ! .PHONY                                :       ptscotch        scotch  mexscotch       ptinstall       install clean   realclean
     1537! .PHONY                                :       ptscotch        scotch  ptinstall       install clean   realclean
    15381538 
    15391539  scotch                                :       clean
    15401540                                        $(MAKE) CC="$(CCS)" CCD="$(CCS)" SCOTCHLIB=scotch       \
    15411541***************
    1542 *** 68,73 ****
    1543 --- 68,83 ----
     1542*** 68,83 ****
    15441543                                        libptscotcherr$(LIB)                                                            \
    15451544                                        libptscotcherrexit$(LIB)
    15461545 
    1547 + mexscotch                     :       clean
    1548 +                                       $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CCS)" CCD="$(CCS)" LDFLAGS="$(LDFLAGS)" SCOTCHLIB=scotch       \
    1549 +                                       dummysizes$(EXE)
    1550 +                                       $(MAKE) CFLAGS="$(CFLAGS) -DMATLAB -I${MATLAB_DIR}/extern/include" CC="$(CCS)" CCD="$(CCS)" LDFLAGS="$(LDFLAGS) -Wl,-rpath-link,${MATLAB_DIR}/bin/glnxa64 -L${MATLAB_DIR}/bin/glnxa64 -lmex -lmat" SCOTCHLIB=scotch     \
    1551 +                                       scotch.h                                                \
    1552 +                                       scotchf.h                                               \
    1553 +                                       libmexscotch$(LIB)                                              \
    1554 +                                       libmexscotcherr$(LIB)                                   \
    1555 +                                       libmexscotcherrexit$(LIB)
    1556 +
     1546- mexscotch                     :       clean
     1547-                                       $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CCS)" CCD="$(CCS)" LDFLAGS="$(LDFLAGS)" SCOTCHLIB=scotch       \
     1548-                                       dummysizes$(EXE)
     1549-                                       $(MAKE) CFLAGS="$(CFLAGS) -DMATLAB -I${MATLAB_DIR}/extern/include" CC="$(CCS)" CCD="$(CCS)" LDFLAGS="$(LDFLAGS) -Wl,-rpath-link,${MATLAB_DIR}/bin/glnxa64 -L${MATLAB_DIR}/bin/glnxa64 -lmex -lmat" SCOTCHLIB=scotch     \
     1550-                                       scotch.h                                                \
     1551-                                       scotchf.h                                               \
     1552-                                       libmexscotch$(LIB)                                              \
     1553-                                       libmexscotcherr$(LIB)                                   \
     1554-                                       libmexscotcherrexit$(LIB)
     1555-
    15571556  install                               :
    15581557                                        -$(CP) scotch.h scotchf.h $(includedir)
    15591558                                        -$(CP) libscotch$(LIB) libscotcherr*$(LIB) $(libdir)
    1560 ***************
    1561 *** 77,82 ****
    1562 --- 87,96 ----
     1559--- 68,73 ----
     1560***************
     1561*** 87,96 ****
    15631562                                        -$(CP) scotchf.h $(includedir)/ptscotchf.h
    15641563                                        -$(CP) libptscotch*$(LIB) $(libdir)
    15651564 
    1566 + mexinstall                            :
    1567 +                                       -$(CP) scotch.h scotchf.h $(includedir)
    1568 +                                       -$(CP) libmexscotch$(LIB) libmexscotcherr*$(LIB) $(libdir)
    1569 +
     1565- mexinstall                            :
     1566-                                       -$(CP) scotch.h scotchf.h $(includedir)
     1567-                                       -$(CP) libmexscotch$(LIB) libmexscotcherr*$(LIB) $(libdir)
     1568-
    15701569  clean                         :
    15711570                                        -$(RM) *~ *$(OBJ) lib*$(LIB) common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes$(EXE)
    15721571 
    1573 ***************
    1574 *** 2452,2457 ****
    1575 --- 2466,2632 ----
     1572--- 77,82 ----
     1573***************
     1574*** 2466,2632 ****
    15761575                                        $(AR) $(ARFLAGS) lib$(SCOTCHLIB)$(LIB) $(?)
    15771576                                        -$(RANLIB) lib$(SCOTCHLIB)$(LIB)
    15781577 
    1579 + libmexscotch$(LIB)                    :       arch$(OBJ)                              \
    1580 +                                       arch_build$(OBJ)                        \
    1581 +                                       arch_cmplt$(OBJ)                        \
    1582 +                                       arch_cmpltw$(OBJ)                       \
    1583 +                                       arch_deco$(OBJ)                         \
    1584 +                                       arch_hcub$(OBJ)                         \
    1585 +                                       arch_mesh$(OBJ)                         \
    1586 +                                       arch_tleaf$(OBJ)                        \
    1587 +                                       arch_torus$(OBJ)                        \
    1588 +                                       arch_vcmplt$(OBJ)                       \
    1589 +                                       arch_vhcub$(OBJ)                        \
    1590 +                                       bgraph$(OBJ)                            \
    1591 +                                       bgraph_bipart_bd$(OBJ)                  \
    1592 +                                       bgraph_bipart_df$(OBJ)                  \
    1593 +                                       bgraph_bipart_ex$(OBJ)                  \
    1594 +                                       bgraph_bipart_fm$(OBJ)                  \
    1595 +                                       bgraph_bipart_gg$(OBJ)                  \
    1596 +                                       bgraph_bipart_gp$(OBJ)                  \
    1597 +                                       bgraph_bipart_ml$(OBJ)                  \
    1598 +                                       bgraph_bipart_st$(OBJ)                  \
    1599 +                                       bgraph_bipart_zr$(OBJ)                  \
    1600 +                                       bgraph_check$(OBJ)                      \
    1601 +                                       bgraph_store$(OBJ)                      \
    1602 +                                       common$(OBJ)                            \
    1603 +                                       common_file$(OBJ)                       \
    1604 +                                       common_file_compress$(OBJ)              \
    1605 +                                       common_file_uncompress$(OBJ)            \
    1606 +                                       common_integer$(OBJ)                    \
    1607 +                                       common_memory$(OBJ)                     \
    1608 +                                       common_stub$(OBJ)                       \
    1609 +                                       gain$(OBJ)                              \
    1610 +                                       geom$(OBJ)                              \
    1611 +                                       graph$(OBJ)                             \
    1612 +                                       graph_base$(OBJ)                        \
    1613 +                                       graph_check$(OBJ)                       \
    1614 +                                       graph_coarsen$(OBJ)                     \
    1615 +                                       graph_induce$(OBJ)                      \
    1616 +                                       graph_io$(OBJ)                          \
    1617 +                                       graph_io_chac$(OBJ)                     \
    1618 +                                       graph_io_habo$(OBJ)                     \
    1619 +                                       graph_io_mmkt$(OBJ)                     \
    1620 +                                       graph_io_scot$(OBJ)                     \
    1621 +                                       graph_list$(OBJ)                        \
    1622 +                                       hall_order_hd$(OBJ)                     \
    1623 +                                       hall_order_hf$(OBJ)                     \
    1624 +                                       hall_order_hx$(OBJ)                     \
    1625 +                                       hgraph$(OBJ)                            \
    1626 +                                       hgraph_check$(OBJ)                      \
    1627 +                                       hgraph_induce$(OBJ)                     \
    1628 +                                       hgraph_order_bl$(OBJ)                   \
    1629 +                                       hgraph_order_cp$(OBJ)                   \
    1630 +                                       hgraph_order_gp$(OBJ)                   \
    1631 +                                       hgraph_order_hd$(OBJ)                   \
    1632 +                                       hgraph_order_hf$(OBJ)                   \
    1633 +                                       hgraph_order_hx$(OBJ)                   \
    1634 +                                       hgraph_order_nd$(OBJ)                   \
    1635 +                                       hgraph_order_si$(OBJ)                   \
    1636 +                                       hgraph_order_st$(OBJ)                   \
    1637 +                                       hmesh$(OBJ)                             \
    1638 +                                       hmesh_check$(OBJ)                       \
    1639 +                                       hmesh_hgraph$(OBJ)                      \
    1640 +                                       hmesh_induce$(OBJ)                      \
    1641 +                                       hmesh_mesh$(OBJ)                        \
    1642 +                                       hmesh_order_bl$(OBJ)                    \
    1643 +                                       hmesh_order_cp$(OBJ)                    \
    1644 +                                       hmesh_order_gr$(OBJ)                    \
    1645 +                                       hmesh_order_gp$(OBJ)                    \
    1646 +                                       hmesh_order_hd$(OBJ)                    \
    1647 +                                       hmesh_order_hf$(OBJ)                    \
    1648 +                                       hmesh_order_hx$(OBJ)                    \
    1649 +                                       hmesh_order_nd$(OBJ)                    \
    1650 +                                       hmesh_order_si$(OBJ)                    \
    1651 +                                       hmesh_order_st$(OBJ)                    \
    1652 +                                       kgraph$(OBJ)                            \
    1653 +                                       kgraph_map_rb$(OBJ)                     \
    1654 +                                       kgraph_map_rb_map$(OBJ)                 \
    1655 +                                       kgraph_map_rb_part$(OBJ)                \
    1656 +                                       kgraph_map_st$(OBJ)                     \
    1657 +                                       library_arch$(OBJ)                      \
    1658 +                                       library_arch_f$(OBJ)                    \
    1659 +                                       library_arch_build$(OBJ)                \
    1660 +                                       library_arch_build_f$(OBJ)              \
    1661 +                                       library_arch_cmpltw$(OBJ)               \
    1662 +                                       library_arch_cmpltw_f$(OBJ)             \
    1663 +                                       library_geom$(OBJ)                      \
    1664 +                                       library_geom_f$(OBJ)                    \
    1665 +                                       library_graph$(OBJ)                     \
    1666 +                                       library_graph_f$(OBJ)                   \
    1667 +                                       library_graph_base$(OBJ)                \
    1668 +                                       library_graph_base_f$(OBJ)              \
    1669 +                                       library_graph_check$(OBJ)               \
    1670 +                                       library_graph_check_f$(OBJ)             \
    1671 +                                       library_graph_io_chac$(OBJ)             \
    1672 +                                       library_graph_io_chac_f$(OBJ)           \
    1673 +                                       library_graph_io_habo$(OBJ)             \
    1674 +                                       library_graph_io_habo_f$(OBJ)           \
    1675 +                                       library_graph_io_mmkt$(OBJ)             \
    1676 +                                       library_graph_io_mmkt_f$(OBJ)           \
    1677 +                                       library_graph_io_scot$(OBJ)             \
    1678 +                                       library_graph_io_scot_f$(OBJ)           \
    1679 +                                       library_graph_map$(OBJ)                 \
    1680 +                                       library_graph_map_f$(OBJ)               \
    1681 +                                       library_graph_map_view$(OBJ)            \
    1682 +                                       library_graph_map_view_f$(OBJ)          \
    1683 +                                       library_graph_order$(OBJ)               \
    1684 +                                       library_graph_order_f$(OBJ)             \
    1685 +                                       library_mesh$(OBJ)                      \
    1686 +                                       library_mesh_f$(OBJ)                    \
    1687 +                                       library_mesh_graph$(OBJ)                \
    1688 +                                       library_mesh_graph_f$(OBJ)              \
    1689 +                                       library_mesh_io_habo$(OBJ)              \
    1690 +                                       library_mesh_io_habo_f$(OBJ)            \
    1691 +                                       library_mesh_io_scot$(OBJ)              \
    1692 +                                       library_mesh_io_scot_f$(OBJ)            \
    1693 +                                       library_mesh_order$(OBJ)                \
    1694 +                                       library_mesh_order_f$(OBJ)              \
    1695 +                                       library_parser$(OBJ)                    \
    1696 +                                       library_parser_f$(OBJ)                  \
    1697 +                                       library_random$(OBJ)                    \
    1698 +                                       library_random_f$(OBJ)                  \
    1699 +                                       mapping$(OBJ)                           \
    1700 +                                       mapping_io$(OBJ)                        \
    1701 +                                       mesh$(OBJ)                              \
    1702 +                                       mesh_check$(OBJ)                        \
    1703 +                                       mesh_coarsen$(OBJ)                      \
    1704 +                                       mesh_graph$(OBJ)                        \
    1705 +                                       mesh_induce_sepa$(OBJ)                  \
    1706 +                                       mesh_io$(OBJ)                           \
    1707 +                                       mesh_io_habo$(OBJ)                      \
    1708 +                                       mesh_io_scot$(OBJ)                      \
    1709 +                                       order$(OBJ)                             \
    1710 +                                       order_check$(OBJ)                       \
    1711 +                                       order_io$(OBJ)                          \
    1712 +                                       parser$(OBJ)                            \
    1713 +                                       parser_ll$(OBJ)                         \
    1714 +                                       parser_yy$(OBJ)                         \
    1715 +                                       vgraph$(OBJ)                            \
    1716 +                                       vgraph_check$(OBJ)                      \
    1717 +                                       vgraph_separate_bd$(OBJ)                \
    1718 +                                       vgraph_separate_es$(OBJ)                \
    1719 +                                       vgraph_separate_fm$(OBJ)                \
    1720 +                                       vgraph_separate_gg$(OBJ)                \
    1721 +                                       vgraph_separate_gp$(OBJ)                \
    1722 +                                       vgraph_separate_ml$(OBJ)                \
    1723 +                                       vgraph_separate_st$(OBJ)                \
    1724 +                                       vgraph_separate_th$(OBJ)                \
    1725 +                                       vgraph_separate_vw$(OBJ)                \
    1726 +                                       vgraph_separate_zr$(OBJ)                \
    1727 +                                       vgraph_store$(OBJ)                      \
    1728 +                                       vmesh$(OBJ)                             \
    1729 +                                       vmesh_check$(OBJ)                       \
    1730 +                                       vmesh_separate_fm$(OBJ)                 \
    1731 +                                       vmesh_separate_gg$(OBJ)                 \
    1732 +                                       vmesh_separate_gr$(OBJ)                 \
    1733 +                                       vmesh_separate_ml$(OBJ)                 \
    1734 +                                       vmesh_separate_zr$(OBJ)                 \
    1735 +                                       vmesh_separate_st$(OBJ)                 \
    1736 +                                       vmesh_store$(OBJ)
    1737 +                                       $(AR) $(ARFLAGS) $(@) $(?)
    1738 +                                       -$(RANLIB) $(@)
    1739 +
     1578- libmexscotch$(LIB)                    :       arch$(OBJ)                              \
     1579-                                       arch_build$(OBJ)                        \
     1580-                                       arch_cmplt$(OBJ)                        \
     1581-                                       arch_cmpltw$(OBJ)                       \
     1582-                                       arch_deco$(OBJ)                         \
     1583-                                       arch_hcub$(OBJ)                         \
     1584-                                       arch_mesh$(OBJ)                         \
     1585-                                       arch_tleaf$(OBJ)                        \
     1586-                                       arch_torus$(OBJ)                        \
     1587-                                       arch_vcmplt$(OBJ)                       \
     1588-                                       arch_vhcub$(OBJ)                        \
     1589-                                       bgraph$(OBJ)                            \
     1590-                                       bgraph_bipart_bd$(OBJ)                  \
     1591-                                       bgraph_bipart_df$(OBJ)                  \
     1592-                                       bgraph_bipart_ex$(OBJ)                  \
     1593-                                       bgraph_bipart_fm$(OBJ)                  \
     1594-                                       bgraph_bipart_gg$(OBJ)                  \
     1595-                                       bgraph_bipart_gp$(OBJ)                  \
     1596-                                       bgraph_bipart_ml$(OBJ)                  \
     1597-                                       bgraph_bipart_st$(OBJ)                  \
     1598-                                       bgraph_bipart_zr$(OBJ)                  \
     1599-                                       bgraph_check$(OBJ)                      \
     1600-                                       bgraph_store$(OBJ)                      \
     1601-                                       common$(OBJ)                            \
     1602-                                       common_file$(OBJ)                       \
     1603-                                       common_file_compress$(OBJ)              \
     1604-                                       common_file_uncompress$(OBJ)            \
     1605-                                       common_integer$(OBJ)                    \
     1606-                                       common_memory$(OBJ)                     \
     1607-                                       common_stub$(OBJ)                       \
     1608-                                       gain$(OBJ)                              \
     1609-                                       geom$(OBJ)                              \
     1610-                                       graph$(OBJ)                             \
     1611-                                       graph_base$(OBJ)                        \
     1612-                                       graph_check$(OBJ)                       \
     1613-                                       graph_coarsen$(OBJ)                     \
     1614-                                       graph_induce$(OBJ)                      \
     1615-                                       graph_io$(OBJ)                          \
     1616-                                       graph_io_chac$(OBJ)                     \
     1617-                                       graph_io_habo$(OBJ)                     \
     1618-                                       graph_io_mmkt$(OBJ)                     \
     1619-                                       graph_io_scot$(OBJ)                     \
     1620-                                       graph_list$(OBJ)                        \
     1621-                                       hall_order_hd$(OBJ)                     \
     1622-                                       hall_order_hf$(OBJ)                     \
     1623-                                       hall_order_hx$(OBJ)                     \
     1624-                                       hgraph$(OBJ)                            \
     1625-                                       hgraph_check$(OBJ)                      \
     1626-                                       hgraph_induce$(OBJ)                     \
     1627-                                       hgraph_order_bl$(OBJ)                   \
     1628-                                       hgraph_order_cp$(OBJ)                   \
     1629-                                       hgraph_order_gp$(OBJ)                   \
     1630-                                       hgraph_order_hd$(OBJ)                   \
     1631-                                       hgraph_order_hf$(OBJ)                   \
     1632-                                       hgraph_order_hx$(OBJ)                   \
     1633-                                       hgraph_order_nd$(OBJ)                   \
     1634-                                       hgraph_order_si$(OBJ)                   \
     1635-                                       hgraph_order_st$(OBJ)                   \
     1636-                                       hmesh$(OBJ)                             \
     1637-                                       hmesh_check$(OBJ)                       \
     1638-                                       hmesh_hgraph$(OBJ)                      \
     1639-                                       hmesh_induce$(OBJ)                      \
     1640-                                       hmesh_mesh$(OBJ)                        \
     1641-                                       hmesh_order_bl$(OBJ)                    \
     1642-                                       hmesh_order_cp$(OBJ)                    \
     1643-                                       hmesh_order_gr$(OBJ)                    \
     1644-                                       hmesh_order_gp$(OBJ)                    \
     1645-                                       hmesh_order_hd$(OBJ)                    \
     1646-                                       hmesh_order_hf$(OBJ)                    \
     1647-                                       hmesh_order_hx$(OBJ)                    \
     1648-                                       hmesh_order_nd$(OBJ)                    \
     1649-                                       hmesh_order_si$(OBJ)                    \
     1650-                                       hmesh_order_st$(OBJ)                    \
     1651-                                       kgraph$(OBJ)                            \
     1652-                                       kgraph_map_rb$(OBJ)                     \
     1653-                                       kgraph_map_rb_map$(OBJ)                 \
     1654-                                       kgraph_map_rb_part$(OBJ)                \
     1655-                                       kgraph_map_st$(OBJ)                     \
     1656-                                       library_arch$(OBJ)                      \
     1657-                                       library_arch_f$(OBJ)                    \
     1658-                                       library_arch_build$(OBJ)                \
     1659-                                       library_arch_build_f$(OBJ)              \
     1660-                                       library_arch_cmpltw$(OBJ)               \
     1661-                                       library_arch_cmpltw_f$(OBJ)             \
     1662-                                       library_geom$(OBJ)                      \
     1663-                                       library_geom_f$(OBJ)                    \
     1664-                                       library_graph$(OBJ)                     \
     1665-                                       library_graph_f$(OBJ)                   \
     1666-                                       library_graph_base$(OBJ)                \
     1667-                                       library_graph_base_f$(OBJ)              \
     1668-                                       library_graph_check$(OBJ)               \
     1669-                                       library_graph_check_f$(OBJ)             \
     1670-                                       library_graph_io_chac$(OBJ)             \
     1671-                                       library_graph_io_chac_f$(OBJ)           \
     1672-                                       library_graph_io_habo$(OBJ)             \
     1673-                                       library_graph_io_habo_f$(OBJ)           \
     1674-                                       library_graph_io_mmkt$(OBJ)             \
     1675-                                       library_graph_io_mmkt_f$(OBJ)           \
     1676-                                       library_graph_io_scot$(OBJ)             \
     1677-                                       library_graph_io_scot_f$(OBJ)           \
     1678-                                       library_graph_map$(OBJ)                 \
     1679-                                       library_graph_map_f$(OBJ)               \
     1680-                                       library_graph_map_view$(OBJ)            \
     1681-                                       library_graph_map_view_f$(OBJ)          \
     1682-                                       library_graph_order$(OBJ)               \
     1683-                                       library_graph_order_f$(OBJ)             \
     1684-                                       library_mesh$(OBJ)                      \
     1685-                                       library_mesh_f$(OBJ)                    \
     1686-                                       library_mesh_graph$(OBJ)                \
     1687-                                       library_mesh_graph_f$(OBJ)              \
     1688-                                       library_mesh_io_habo$(OBJ)              \
     1689-                                       library_mesh_io_habo_f$(OBJ)            \
     1690-                                       library_mesh_io_scot$(OBJ)              \
     1691-                                       library_mesh_io_scot_f$(OBJ)            \
     1692-                                       library_mesh_order$(OBJ)                \
     1693-                                       library_mesh_order_f$(OBJ)              \
     1694-                                       library_parser$(OBJ)                    \
     1695-                                       library_parser_f$(OBJ)                  \
     1696-                                       library_random$(OBJ)                    \
     1697-                                       library_random_f$(OBJ)                  \
     1698-                                       mapping$(OBJ)                           \
     1699-                                       mapping_io$(OBJ)                        \
     1700-                                       mesh$(OBJ)                              \
     1701-                                       mesh_check$(OBJ)                        \
     1702-                                       mesh_coarsen$(OBJ)                      \
     1703-                                       mesh_graph$(OBJ)                        \
     1704-                                       mesh_induce_sepa$(OBJ)                  \
     1705-                                       mesh_io$(OBJ)                           \
     1706-                                       mesh_io_habo$(OBJ)                      \
     1707-                                       mesh_io_scot$(OBJ)                      \
     1708-                                       order$(OBJ)                             \
     1709-                                       order_check$(OBJ)                       \
     1710-                                       order_io$(OBJ)                          \
     1711-                                       parser$(OBJ)                            \
     1712-                                       parser_ll$(OBJ)                         \
     1713-                                       parser_yy$(OBJ)                         \
     1714-                                       vgraph$(OBJ)                            \
     1715-                                       vgraph_check$(OBJ)                      \
     1716-                                       vgraph_separate_bd$(OBJ)                \
     1717-                                       vgraph_separate_es$(OBJ)                \
     1718-                                       vgraph_separate_fm$(OBJ)                \
     1719-                                       vgraph_separate_gg$(OBJ)                \
     1720-                                       vgraph_separate_gp$(OBJ)                \
     1721-                                       vgraph_separate_ml$(OBJ)                \
     1722-                                       vgraph_separate_st$(OBJ)                \
     1723-                                       vgraph_separate_th$(OBJ)                \
     1724-                                       vgraph_separate_vw$(OBJ)                \
     1725-                                       vgraph_separate_zr$(OBJ)                \
     1726-                                       vgraph_store$(OBJ)                      \
     1727-                                       vmesh$(OBJ)                             \
     1728-                                       vmesh_check$(OBJ)                       \
     1729-                                       vmesh_separate_fm$(OBJ)                 \
     1730-                                       vmesh_separate_gg$(OBJ)                 \
     1731-                                       vmesh_separate_gr$(OBJ)                 \
     1732-                                       vmesh_separate_ml$(OBJ)                 \
     1733-                                       vmesh_separate_zr$(OBJ)                 \
     1734-                                       vmesh_separate_st$(OBJ)                 \
     1735-                                       vmesh_store$(OBJ)
     1736-                                       $(AR) $(ARFLAGS) $(@) $(?)
     1737-                                       -$(RANLIB) $(@)
     1738-
    17401739  libptscotcherr$(LIB)          :       library_error$(OBJ)
    17411740                                        $(AR) $(ARFLAGS) $(@) $(?)
    17421741                                        -$(RANLIB) $(@)
    1743 ***************
    1744 *** 2467,2469 ****
    1745 --- 2642,2651 ----
     1742--- 2452,2457 ----
     1743***************
     1744*** 2642,2651 ****
    17461745  libscotcherrexit$(LIB)                :       library_error_exit$(OBJ)
    17471746                                        $(AR) $(ARFLAGS) $(@) $(?)
    17481747                                        -$(RANLIB) $(@)
    1749 + libmexscotcherr$(LIB)         :       library_error$(OBJ)
    1750 +                                       $(AR) $(ARFLAGS) $(@) $(?)
    1751 +                                       -$(RANLIB) $(@)
    1752 +
    1753 + libmexscotcherrexit$(LIB)             :       library_error_exit$(OBJ)
    1754 +                                       $(AR) $(ARFLAGS) $(@) $(?)
    1755 +                                       -$(RANLIB) $(@)
    1756 Only in new4/src/libscotch: Makefile_save
    1757 diff -rc src/src/libscotch/mapping.h new4/src/libscotch/mapping.h
    1758 *** src/src/libscotch/mapping.h 2008-10-27 08:27:47.000000000 -0700
    1759 --- new4/src/libscotch/mapping.h        2010-05-03 15:37:55.381090077 -0700
    1760 ***************
    1761 *** 106,112 ****
    1762 --- 106,116 ----
     1748- libmexscotcherr$(LIB)         :       library_error$(OBJ)
     1749-                                       $(AR) $(ARFLAGS) $(@) $(?)
     1750-                                       -$(RANLIB) $(@)
     1751-
     1752- libmexscotcherrexit$(LIB)             :       library_error_exit$(OBJ)
     1753-                                       $(AR) $(ARFLAGS) $(@) $(?)
     1754-                                       -$(RANLIB) $(@)
     1755--- 2467,2469 ----
     1756diff -rc src/src/libscotch/mapping.h old/src/libscotch/mapping.h
     1757*** src/src/libscotch/mapping.h 2010-07-19 10:53:22.980732310 -0700
     1758--- old/src/libscotch/mapping.h 2008-10-27 08:27:47.000000000 -0700
     1759***************
     1760*** 106,116 ****
    17631761  int                         mapInit2            (Mapping * restrict const, const Gnum, const Gnum, const Arch * restrict const, const ArchDom * restrict const);
    17641762  void                        mapExit             (Mapping * const);
    17651763  int                         mapLoad             (Mapping * restrict const, const Gnum * restrict const, FILE * restrict const);
    1766 + #ifndef MATLAB
     1764- #ifndef MATLAB
    17671765  int                         mapSave             (const Mapping * restrict const, const Gnum * restrict const, FILE * restrict const);
    1768 + #else /* MATLAB */
    1769 + int                         mapSave             (Gnum *, Gnum (**)[2], const Mapping * restrict const, const Gnum * restrict const, FILE * restrict const);
    1770 + #endif /* MATLAB */
     1766- #else /* MATLAB */
     1767- int                         mapSave             (Gnum *, Gnum (**)[2], const Mapping * restrict const, const Gnum * restrict const, FILE * restrict const);
     1768- #endif /* MATLAB */
    17711769  int                         mapView             (const Mapping * restrict const, const Graph * restrict const, FILE * const);
    17721770 
    17731771  #undef static
    1774 diff -rc src/src/libscotch/mapping_io.c new4/src/libscotch/mapping_io.c
    1775 *** src/src/libscotch/mapping_io.c      2008-05-22 06:44:43.000000000 -0700
    1776 --- new4/src/libscotch/mapping_io.c     2010-05-03 15:37:55.388090082 -0700
    1777 ***************
    1778 *** 199,204 ****
    1779 --- 199,208 ----
     1772--- 106,112 ----
     1773diff -rc src/src/libscotch/mapping_io.c old/src/libscotch/mapping_io.c
     1774*** src/src/libscotch/mapping_io.c      2010-07-19 10:53:22.983732330 -0700
     1775--- old/src/libscotch/mapping_io.c      2008-05-22 06:44:43.000000000 -0700
     1776***************
     1777*** 199,208 ****
    17801778 
    17811779  int
    17821780  mapSave (
    1783 + #ifdef MATLAB
    1784 + Gnum *pnvert,
    1785 + Gnum (**pmaptab)[2],
    1786 + #endif /* MATLAB */
     1781- #ifdef MATLAB
     1782- Gnum *pnvert,
     1783- Gnum (**pmaptab)[2],
     1784- #endif /* MATLAB */
    17871785  const Mapping * restrict const  mappptr,
    17881786  const Gnum * restrict const     vlbltab,
    17891787  FILE * restrict const           stream)
    1790 ***************
    1791 *** 206,226 ****
     1788--- 199,204 ----
     1789***************
     1790*** 210,258 ****
    17921791    const Gnum * restrict vlbltax;
    17931792    Gnum                  vertnum;
    17941793 
     1794- #ifdef MATLAB
     1795-   printf("mapSave - stream=%p\n",stream);
     1796- #endif /* MATLAB */
    17951797    vlbltax = (vlbltab != NULL) ? (vlbltab - mappptr->baseval) : NULL;
    17961798 
     1799- #ifndef MATLAB
    17971800    if (fprintf (stream, "%ld\n", (long) mappptr->vertnbr) == EOF) {
    17981801      errorPrint ("mapSave: bad output (1)");
    17991802      return     (1);
    18001803    }
    1801  
    1802     for (vertnum = mappptr->baseval; vertnum < (mappptr->vertnbr + mappptr->baseval); vertnum ++) {
    1803       if (fprintf (stream, "%ld\t%ld\n",
    1804 !                  (long) ((vlbltax != NULL) ? vlbltax[vertnum] : vertnum),
    1805                    (long) archDomNum (&mappptr->archdat, &mappptr->domntab[mappptr->parttax[vertnum]])) == EOF) {
    1806         errorPrint ("mapSave: bad output (2)");
    1807         return     (1);
    1808       }
    1809     }
    1810  
    1811     return (0);
    1812   }
    1813 --- 210,258 ----
    1814     const Gnum * restrict vlbltax;
    1815     Gnum                  vertnum;
    1816  
    1817 + #ifdef MATLAB
    1818 +   printf("mapSave - stream=%p\n",stream);
    1819 + #endif /* MATLAB */
    1820     vlbltax = (vlbltab != NULL) ? (vlbltab - mappptr->baseval) : NULL;
    1821  
    1822 + #ifndef MATLAB
    1823     if (fprintf (stream, "%ld\n", (long) mappptr->vertnbr) == EOF) {
    1824       errorPrint ("mapSave: bad output (1)");
    1825       return     (1);
    1826     }
    1827 + #else /* MATLAB */
    1828 +   if (pnvert) {
    1829 +     *pnvert=mappptr->vertnbr;
    1830 +     printf("mapSave - nvert=%d\n",*pnvert);
    1831 +   }
    1832 +   if (pmaptab) {
    1833 +     *pmaptab = (Gnum (*)[2]) malloc(mappptr->vertnbr*2*sizeof(Gnum));
    1834 +     printf("mapSave - maptab=%p\n",*pmaptab);
    1835 +   }
    1836 + #endif /* MATLAB */
    1837  
    1838 + #ifndef MATLAB
     1804- #else /* MATLAB */
     1805-   if (pnvert) {
     1806-     *pnvert=mappptr->vertnbr;
     1807-     printf("mapSave - nvert=%d\n",*pnvert);
     1808-   }
     1809-   if (pmaptab) {
     1810-     *pmaptab = (Gnum (*)[2]) malloc(mappptr->vertnbr*2*sizeof(Gnum));
     1811-     printf("mapSave - maptab=%p\n",*pmaptab);
     1812-   }
     1813- #endif /* MATLAB */
     1814 
     1815- #ifndef MATLAB
    18391816    for (vertnum = mappptr->baseval; vertnum < (mappptr->vertnbr + mappptr->baseval); vertnum ++) {
    18401817      if (fprintf (stream, "%ld\t%ld\n",
     
    18471824      }
    18481825    }
    1849 + #else /* MATLAB */
    1850 +   if (pmaptab && *pmaptab)
    1851 +     for (vertnum = mappptr->baseval; vertnum < (mappptr->vertnbr + mappptr->baseval); vertnum ++) {
    1852 + /*  not sure why, but need to offset vlbltax in other direction (jes, 12/11/09)  */
    1853 + //      (*pmaptab)[vertnum-mappptr->baseval][0]=((vlbltax != NULL) ? vlbltax[vertnum] : vertnum);
    1854 +       (*pmaptab)[vertnum-mappptr->baseval][0]=((vlbltax != NULL) ? vlbltax[vertnum+mappptr->baseval] : vertnum);
    1855 +       (*pmaptab)[vertnum-mappptr->baseval][1]=archDomNum (&mappptr->archdat, &mappptr->domntab[mappptr->parttax[vertnum]]);
    1856 + //    printf("mapSave - vertnum=%d; vlbltax=%d,archDomNum=%d\n",
    1857 + //           vertnum,((vlbltax != NULL) ? vlbltax[vertnum+mappptr->baseval] : -1),archDomNum (&mappptr->archdat, &mappptr->domntab[mappptr->parttax[vertnum]]));
    1858 +     }
    1859 + #endif /* MATLAB */
     1826- #else /* MATLAB */
     1827-   if (pmaptab && *pmaptab)
     1828-     for (vertnum = mappptr->baseval; vertnum < (mappptr->vertnbr + mappptr->baseval); vertnum ++) {
     1829- /*  not sure why, but need to offset vlbltax in other direction (jes, 12/11/09)  */
     1830- //      (*pmaptab)[vertnum-mappptr->baseval][0]=((vlbltax != NULL) ? vlbltax[vertnum] : vertnum);
     1831-       (*pmaptab)[vertnum-mappptr->baseval][0]=((vlbltax != NULL) ? vlbltax[vertnum+mappptr->baseval] : vertnum);
     1832-       (*pmaptab)[vertnum-mappptr->baseval][1]=archDomNum (&mappptr->archdat, &mappptr->domntab[mappptr->parttax[vertnum]]);
     1833- //    printf("mapSave - vertnum=%d; vlbltax=%d,archDomNum=%d\n",
     1834- //           vertnum,((vlbltax != NULL) ? vlbltax[vertnum+mappptr->baseval] : -1),archDomNum (&mappptr->archdat, &mappptr->domntab[mappptr->parttax[vertnum]]));
     1835-     }
     1836- #endif /* MATLAB */
    18601837 
    18611838    return (0);
    18621839  }
    1863 diff -rc src/src/libscotch/mesh_io_scot.c new4/src/libscotch/mesh_io_scot.c
    1864 *** src/src/libscotch/mesh_io_scot.c    2008-05-22 06:44:43.000000000 -0700
    1865 --- new4/src/libscotch/mesh_io_scot.c   2010-05-03 15:37:55.394090087 -0700
    1866 ***************
    1867 *** 85,91 ****
    1868 --- 85,95 ----
     1840--- 206,226 ----
     1841    const Gnum * restrict vlbltax;
     1842    Gnum                  vertnum;
     1843 
     1844    vlbltax = (vlbltab != NULL) ? (vlbltab - mappptr->baseval) : NULL;
     1845 
     1846    if (fprintf (stream, "%ld\n", (long) mappptr->vertnbr) == EOF) {
     1847      errorPrint ("mapSave: bad output (1)");
     1848      return     (1);
     1849    }
     1850 
     1851    for (vertnum = mappptr->baseval; vertnum < (mappptr->vertnbr + mappptr->baseval); vertnum ++) {
     1852      if (fprintf (stream, "%ld\t%ld\n",
     1853!                  (long) ((vlbltax != NULL) ? vlbltax[vertnum] : vertnum),
     1854                   (long) archDomNum (&mappptr->archdat, &mappptr->domntab[mappptr->parttax[vertnum]])) == EOF) {
     1855        errorPrint ("mapSave: bad output (2)");
     1856        return     (1);
     1857      }
     1858    }
     1859 
     1860    return (0);
     1861  }
     1862diff -rc src/src/libscotch/mesh_io_scot.c old/src/libscotch/mesh_io_scot.c
     1863*** src/src/libscotch/mesh_io_scot.c    2010-07-19 10:53:22.986732349 -0700
     1864--- old/src/libscotch/mesh_io_scot.c    2008-05-22 06:44:43.000000000 -0700
     1865***************
     1866*** 85,95 ****
    18691867    int                           o;
    18701868 
    18711869    if (filesrcptr != NULL) {
    1872 + #ifndef MATLAB
     1870- #ifndef MATLAB
    18731871      if (graphLoad (meshptr, filesrcptr, -1, 0) != 0)
    1874 + #else /* MATLAB */
    1875 +     if (graphLoad (meshptr, filesrcptr, -1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL) != 0)
    1876 + #endif /* MATLAB */
     1872- #else /* MATLAB */
     1873-     if (graphLoad (meshptr, filesrcptr, -1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL) != 0)
     1874- #endif /* MATLAB */
    18771875        return (1);
    18781876    }
    18791877 
    1880 diff -rc src/src/libscotch/module.h new4/src/libscotch/module.h
    1881 *** src/src/libscotch/module.h  2009-04-26 23:07:14.000000000 -0700
    1882 --- new4/src/libscotch/module.h 2010-05-03 15:37:55.402090094 -0700
    1883 ***************
    1884 *** 156,161 ****
    1885 --- 156,162 ----
     1878--- 85,91 ----
     1879diff -rc src/src/libscotch/module.h old/src/libscotch/module.h
     1880*** src/src/libscotch/module.h  2010-07-19 10:53:22.990732375 -0700
     1881--- old/src/libscotch/module.h  2009-04-26 23:07:14.000000000 -0700
     1882***************
     1883*** 156,162 ****
    18861884  #define intSave                     _SCOTCHintSave
    18871885  #define intAscn                     _SCOTCHintAscn
    18881886  #define intPerm                     _SCOTCHintPerm
    1889 + #define intRandResetStatic          _SCOTCHintRandResetStatic
     1887- #define intRandResetStatic          _SCOTCHintRandResetStatic
    18901888  #define intRandReset                _SCOTCHintRandReset
    18911889  #define intRandInit                 _SCOTCHintRandInit
    18921890  /* #define intRandVal               _SCOTCHintRandVal Already a macro */
    1893 diff -rc src/src/libscotch/parser_ll.l new4/src/libscotch/parser_ll.l
    1894 *** src/src/libscotch/parser_ll.l       2008-05-22 06:44:43.000000000 -0700
    1895 --- new4/src/libscotch/parser_ll.l      2010-05-03 15:37:55.410090101 -0700
    1896 ***************
    1897 *** 192,197 ****
    1898 --- 192,214 ----
     1891--- 156,161 ----
     1892diff -rc src/src/libscotch/parser_ll.l old/src/libscotch/parser_ll.l
     1893*** src/src/libscotch/parser_ll.l       2010-07-19 10:53:22.993732394 -0700
     1894--- old/src/libscotch/parser_ll.l       2008-05-22 06:44:43.000000000 -0700
     1895***************
     1896*** 192,214 ****
    18991897  stratParserInit (
    19001898  const char * const          string)               /*+ Strategy string to parse +*/
    19011899  {
    1902 + /*  reset static variables from previous runs (jes, 4/29/10)  */
    1903 +   yy_current_buffer = 0;
    1904 +   yy_hold_char = (char) 0;
    1905 +   yy_n_chars=0;          /* number of characters read into yy_ch_buf */
    1906 +   yy_c_buf_p = (char *) 0;
    1907 +   yy_init = 1;         /* whether we need to initialize */
    1908 +   yy_start = 0;        /* start state number */
    1909 +   yy_did_buffer_switch_on_eof=0;
    1910 +   yy_last_accepting_state=0;
    1911 +   yy_last_accepting_cpos = (char *) 0;
    1912 +   stratparserstringptr = (char *) 0; /* Pointer to the string to parse */
    1913 + #if YY_STACK_USED
    1914 +   yy_start_stack_ptr = 0;
    1915 +   yy_start_stack_depth = 0;
    1916 +   yy_start_stack = 0;
    1917 + #endif
    1918 +
     1900- /*  reset static variables from previous runs (jes, 4/29/10)  */
     1901-   yy_current_buffer = 0;
     1902-   yy_hold_char = (char) 0;
     1903-   yy_n_chars=0;          /* number of characters read into yy_ch_buf */
     1904-   yy_c_buf_p = (char *) 0;
     1905-   yy_init = 1;         /* whether we need to initialize */
     1906-   yy_start = 0;        /* start state number */
     1907-   yy_did_buffer_switch_on_eof=0;
     1908-   yy_last_accepting_state=0;
     1909-   yy_last_accepting_cpos = (char *) 0;
     1910-   stratparserstringptr = (char *) 0; /* Pointer to the string to parse */
     1911- #if YY_STACK_USED
     1912-   yy_start_stack_ptr = 0;
     1913-   yy_start_stack_depth = 0;
     1914-   yy_start_stack = 0;
     1915- #endif
     1916-
    19191917  #ifdef FLEX_SCANNER
    19201918    yyrestart (yyin);                               /* (Re-)initialize the parser */
    19211919  #endif /* FLEX_SCANNER */
    1922 diff -rc src/src/libscotch/parser_yy.y new4/src/libscotch/parser_yy.y
    1923 *** src/src/libscotch/parser_yy.y       2008-10-22 15:12:48.000000000 -0700
    1924 --- new4/src/libscotch/parser_yy.y      2010-05-03 15:37:55.418090107 -0700
    1925 ***************
    1926 *** 774,779 ****
    1927 --- 774,780 ----
     1920--- 192,197 ----
     1921diff -rc src/src/libscotch/parser_yy.y old/src/libscotch/parser_yy.y
     1922*** src/src/libscotch/parser_yy.y       2010-07-19 10:53:22.997732420 -0700
     1923--- old/src/libscotch/parser_yy.y       2008-10-22 15:12:48.000000000 -0700
     1924***************
     1925*** 774,780 ****
    19281926    stratParserInit (string);                       /* Initialize the lexical parser           */
    19291927    parserstrattab  = strattab;                     /* Point to the parsing tables             */
    19301928    parserstratcurr = NULL;                         /* Clear up the temporary strategy pointer */
    1931 +   parserparamcurr = NULL;                         /* reset the last static (jes, 4/29/10)    */
     1929-   parserparamcurr = NULL;                         /* reset the last static (jes, 4/29/10)    */
    19321930 
    19331931    if (stratParserParse2 () != 0) {                /* Parse the strategy string */
    19341932      if (parserstratcurr != NULL)
    1935 diff -rc src/src/libscotch/vgraph_separate_vw.c new4/src/libscotch/vgraph_separate_vw.c
    1936 *** src/src/libscotch/vgraph_separate_vw.c      2008-05-22 06:44:43.000000000 -0700
    1937 --- new4/src/libscotch/vgraph_separate_vw.c     2010-05-03 15:37:55.425090113 -0700
    1938 ***************
    1939 *** 83,88 ****
    1940 --- 83,89 ----
     1933--- 774,779 ----
     1934diff -rc src/src/libscotch/vgraph_separate_vw.c old/src/libscotch/vgraph_separate_vw.c
     1935*** src/src/libscotch/vgraph_separate_vw.c      2010-07-19 10:53:22.999732432 -0700
     1936--- old/src/libscotch/vgraph_separate_vw.c      2008-05-22 06:44:43.000000000 -0700
     1937***************
     1938*** 83,89 ****
    19411939    FILE * restrict     fileptr;
    19421940    Gnum                vertnum;                    /* Vertex number */
    19431941 
    1944 +   printf("vgraphSeparateVw begin -- vgraphseparatevwfilenum=%d\n",vgraphseparatevwfilenum);
     1942-   printf("vgraphSeparateVw begin -- vgraphseparatevwfilenum=%d\n",vgraphseparatevwfilenum);
    19451943    sprintf (nametab, "vgraphseparatevw_output_%08d.map", vgraphseparatevwfilenum ++);
    19461944    if ((fileptr = fopen (nametab, "w+")) == NULL) {
    19471945      errorPrint ("vgraphSeparateVw: cannot open partition file");
    1948 ***************
    1949 *** 102,106 ****
    1950 --- 103,108 ----
     1946--- 83,88 ----
     1947***************
     1948*** 103,108 ****
    19511949      }
    19521950    }
    19531951 
    1954 +   printf("vgraphSeparateVw end   -- vgraphseparatevwfilenum=%d\n",vgraphseparatevwfilenum);
     1952-   printf("vgraphSeparateVw end   -- vgraphseparatevwfilenum=%d\n",vgraphseparatevwfilenum);
    19551953    return (0);
    19561954  }
    1957 diff -rc src/src/Makefile new4/src/Makefile
    1958 *** src/src/Makefile    2008-09-15 05:50:51.000000000 -0700
    1959 --- new4/src/Makefile   2010-06-17 09:31:54.881418932 -0700
    1960 ***************
    1961 *** 97,102 ****
    1962 --- 97,106 ----
     1955--- 102,106 ----
     1956diff -rc src/src/Makefile old/src/Makefile
     1957*** src/src/Makefile    2010-07-19 10:53:23.001732445 -0700
     1958--- old/src/Makefile    2008-09-15 05:50:51.000000000 -0700
     1959***************
     1960*** 97,106 ****
    19631961                                        (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" ptscotch && $(MAKE) ptinstall)
    19641962                                        (cd libscotchmetis ; $(MAKE)                        ptscotch && $(MAKE) ptinstall)
    19651963 
    1966 + mexscotch                     :       required
    1967 +                                       (cd libscotch ;      $(MAKE) VERSION=\"$(VERSION)\" mexscotch && $(MAKE) mexinstall)
    1968 +                                       (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" mexscotch && $(MAKE) mexinstall)
    1969 +
     1964- mexscotch                     :       required
     1965-                                       (cd libscotch ;      $(MAKE) VERSION=\"$(VERSION)\" mexscotch && $(MAKE) mexinstall)
     1966-                                       (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" mexscotch && $(MAKE) mexinstall)
     1967-
    19701968  install                               :       required        $(bindir)       $(includedir)   $(libdir)       $(mandir)/man1
    19711969                                        -$(CP) -f ../bin/[agm]*$(EXE) $(bindir)
    19721970                                        -$(CP) -f ../include/*scotch*.h $(includedir)
    1973 Only in new4/src: Makefile.inc
    1974 Only in new4/src/scotch: gmap_mex.c
    1975 Only in new4/src/scotch: gmapx.c
    1976 diff -rc src/src/scotch/Makefile new4/src/scotch/Makefile
    1977 *** src/src/scotch/Makefile     2009-04-27 02:19:43.000000000 -0700
    1978 --- new4/src/scotch/Makefile    2010-06-17 10:09:39.718475100 -0700
    1979 ***************
    1980 *** 49,59 ****
     1971--- 97,102 ----
     1972Only in src/src: Makefile.inc
     1973Only in src/src/scotch: gmap_mex.c
     1974Only in src/src/scotch: gmapx.c
     1975diff -rc src/src/scotch/Makefile old/src/scotch/Makefile
     1976*** src/src/scotch/Makefile     2010-07-19 10:53:23.004732465 -0700
     1977--- old/src/scotch/Makefile     2009-04-27 02:19:43.000000000 -0700
     1978***************
     1979*** 49,62 ****
    19811980  %$(EXE)       :       %.c
    19821981                                $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
    19831982 
     1983- %$(MEX)       :       %.c
     1984-                               $(CCM) $(MFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
     1985-
    19841986  ##
    19851987  ##  Project rules.
    19861988  ##
    19871989 
    1988 ! .PHONY                                :       ptscotch        scotch  ptinstall       install clean   realclean
     1990! .PHONY                                :       ptscotch        scotch  mexscotch       ptinstall       install mexinstall      clean   realclean
    19891991 
    19901992  scotch                                :       clean
    19911993                                        $(MAKE) CC="$(CCS)" SCOTCHLIB=scotch    \
    1992 --- 49,62 ----
     1994--- 49,59 ----
    19931995  %$(EXE)       :       %.c
    19941996                                $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
    19951997 
    1996 + %$(MEX)       :       %.c
    1997 +                               $(CCM) $(MFLAGS) -I$(includedir) -I../libscotch -DSCOTCH_VERSION=\"$(VERSION)\" $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
    1998 +
    19991998  ##
    20001999  ##  Project rules.
    20012000  ##
    20022001 
    2003 ! .PHONY                                :       ptscotch        scotch  mexscotch       ptinstall       install mexinstall      clean   realclean
     2002! .PHONY                                :       ptscotch        scotch  ptinstall       install clean   realclean
    20042003 
    20052004  scotch                                :       clean
    20062005                                        $(MAKE) CC="$(CCS)" SCOTCHLIB=scotch    \
    20072006***************
    2008 *** 94,99 ****
    2009 --- 97,108 ----
     2007*** 97,108 ****
    20102008                                        dgscat$(EXE)                            \
    20112009                                        dgtst$(EXE)
    20122010 
    2013 + mexscotch                     :       clean
    2014 +                                       $(MAKE) CFLAGS="$(CFLAGS) -DMATLAB -I${MATLAB_DIR}/extern/include" CC="$(CCS)" CCD="$(CCS)" LDFLAGS="$(LDFLAGS) -Wl,-rpath-link,${MATLAB_DIR}/bin/glnxa64 -L${MATLAB_DIR}/bin/glnxa64 -lmex -lmat" SCOTCHLIB=scotch \
    2015 +                     gmapx$(OBJ)
    2016 +                                       $(MAKE) CFLAGS="$(CFLAGS) -DMATLAB -I${MATLAB_DIR}/extern/include" CC="$(CCS)" LDFLAGS="$(LDFLAGS) -Wl,-rpath-link,${MATLAB_DIR}/bin/glnxa64 -L${MATLAB_DIR}/bin/glnxa64 -lmex -lmat gmapx$(OBJ)" SCOTCHLIB=scotch      \
    2017 +                                       gmap_mex$(MEX)
    2018 +
     2011- mexscotch                     :       clean
     2012-                                       $(MAKE) CFLAGS="$(CFLAGS) -DMATLAB -I${MATLAB_DIR}/extern/include" CC="$(CCS)" CCD="$(CCS)" LDFLAGS="$(LDFLAGS) -Wl,-rpath-link,${MATLAB_DIR}/bin/glnxa64 -L${MATLAB_DIR}/bin/glnxa64 -lmex -lmat" SCOTCHLIB=scotch \
     2013-                     gmapx$(OBJ)
     2014-                                       $(MAKE) CFLAGS="$(CFLAGS) -DMATLAB -I${MATLAB_DIR}/extern/include" CC="$(CCS)" LDFLAGS="$(LDFLAGS) -Wl,-rpath-link,${MATLAB_DIR}/bin/glnxa64 -L${MATLAB_DIR}/bin/glnxa64 -lmex -lmat gmapx$(OBJ)" SCOTCHLIB=scotch      \
     2015-                                       gmap_mex$(MEX)
     2016-
    20192017  install                               :
    20202018                                        -$(CP) acpl$(EXE) amk_ccc$(EXE) amk_fft2$(EXE) amk_grf$(EXE) amk_hy$(EXE) amk_m2$(EXE) amk_p2$(EXE) atst$(EXE) gbase$(EXE) gcv$(EXE) gmap$(EXE) gmk_hy$(EXE) gmk_m2$(EXE) gmk_m3$(EXE) gmk_msh$(EXE) gmk_ub2$(EXE) gmtst$(EXE) gord$(EXE) gotst$(EXE) gout$(EXE) *gtst$(EXE) gscat$(EXE) mcv$(EXE) mmk_m2$(EXE) mmk_m3$(EXE) mord$(EXE) mtst$(EXE) $(bindir)
    20212019                                        -$(RM) $(bindir)/gpart$(EXE)
    2022 ***************
    2023 *** 104,111 ****
    2024 --- 113,126 ----
     2020--- 94,99 ----
     2021***************
     2022*** 113,126 ****
    20252023                                        -$(RM) $(bindir)/dgpart$(EXE)
    20262024                                        -$(LN) $(bindir)/dgmap$(EXE) $(bindir)/dgpart$(EXE)
    20272025 
    2028 + mexinstall                    :
    2029 +                                       -$(CP) gmap_mex$(MEX) $(bindir)
    2030 +                                       -$(RM) $(bindir)/gpart_mex$(MEX)
    2031 +                                       -$(LN) $(bindir)/gmap_mex$(MEX) $(bindir)/gpart_mex$(MEX)
    2032 +
     2026- mexinstall                    :
     2027-                                       -$(CP) gmap_mex$(MEX) $(bindir)
     2028-                                       -$(RM) $(bindir)/gpart_mex$(MEX)
     2029-                                       -$(LN) $(bindir)/gmap_mex$(MEX) $(bindir)/gpart_mex$(MEX)
     2030-
    20332031  clean                         :
    20342032                                        -$(RM) *~ *$(OBJ) acpl$(EXE) amk_ccc$(EXE) amk_fft2$(EXE) amk_grf$(EXE) amk_hy$(EXE) amk_m2$(EXE) amk_p2$(EXE) atst$(EXE) gbase$(EXE) gcv$(EXE) *gmap$(EXE) gmk_hy$(EXE) gmk_m2$(EXE) gmk_m3$(EXE) gmk_msh$(EXE) gmk_ub2$(EXE) gmtst$(EXE) *gord$(EXE) gotst$(EXE) gout$(EXE) *gpart$(EXE) *gscat$(EXE) *gtst$(EXE) mcv$(EXE) mmk_m2$(EXE) mmk_m3$(EXE) mord$(EXE) mtst$(EXE)
    2035 +                                       -$(RM) gmap_mex$(MEX)
     2033-                                       -$(RM) gmap_mex$(MEX)
    20362034 
    20372035  realclean                     :       clean
    20382036 
    2039 ***************
    2040 *** 365,367 ****
    2041 --- 380,403 ----
     2037--- 104,111 ----
     2038***************
     2039*** 380,403 ****
    20422040                                        $(libdir)/libscotch$(LIB)               \
    20432041                                        $(libdir)/libscotcherrexit$(LIB)        \
    20442042                                        mtst.h
    2045 +
    2046 + gmapx$(OBJ)                   :       gmapx.c                                 \
    2047 +                                       ../libscotch/module.h                   \
    2048 +                                       ../libscotch/common.h                   \
    2049 +                                       $(includedir)/scotch.h                  \
    2050 +                                       $(libdir)/libscotch$(LIB)               \
    2051 +                                       $(libdir)/libscotcherrexit$(LIB)        \
    2052 +                                       gmap.h
    2053 +
    2054 + gmap_mex$(MEX)                :       gmap_mex.c                                      \
    2055 +                                       ../libscotch/module.h                   \
    2056 +                                       ../libscotch/common.h                   \
    2057 +                                       $(includedir)/scotch.h                  \
    2058 +                                       $(libdir)/libscotch$(LIB)               \
    2059 +                                       $(libdir)/libscotcherrexit$(LIB)        \
    2060 +                                       gmap.h
    2061 +
    2062 + gpart_mex$(MEX)                       :       gmap_mex$(MEX)
    2063 +                                       -$(RM) gpart_mex$(MEX)
    2064 +                                       -$(LN) gmap_mex$(MEX) gpart_mex$(MEX)
    2065 +
     2043-
     2044- gmapx$(OBJ)                   :       gmapx.c                                 \
     2045-                                       ../libscotch/module.h                   \
     2046-                                       ../libscotch/common.h                   \
     2047-                                       $(includedir)/scotch.h                  \
     2048-                                       $(libdir)/libscotch$(LIB)               \
     2049-                                       $(libdir)/libscotcherrexit$(LIB)        \
     2050-                                       gmap.h
     2051-
     2052- gmap_mex$(MEX)                :       gmap_mex.c                                      \
     2053-                                       ../libscotch/module.h                   \
     2054-                                       ../libscotch/common.h                   \
     2055-                                       $(includedir)/scotch.h                  \
     2056-                                       $(libdir)/libscotch$(LIB)               \
     2057-                                       $(libdir)/libscotcherrexit$(LIB)        \
     2058-                                       gmap.h
     2059-
     2060- gpart_mex$(MEX)                       :       gmap_mex$(MEX)
     2061-                                       -$(RM) gpart_mex$(MEX)
     2062-                                       -$(LN) gmap_mex$(MEX) gpart_mex$(MEX)
     2063-
     2064--- 365,367 ----
Note: See TracChangeset for help on using the changeset viewer.