~ubuntu-branches/ubuntu/trusty/scotch/trusty-proposed

« back to all changes in this revision

Viewing changes to src/scotch/amk_ccc.c

  • Committer: Bazaar Package Importer
  • Author(s): "Adam C. Powell, IV", Christophe Trophime, Adam C. Powell, IV
  • Date: 2010-12-29 13:07:19 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101229130719-jwalolw5d6av6wqx
Tags: 5.1.11.dfsg-1
[Christophe Trophime]
* New upstream release
* Forward-ported patches to version 5.1.10b.
* Install scotch headers properly.
* Fix chrpath commands in debian/rules.
* Fix (pt)scotch library install paths.
* Fix lintian errors and warnings.

[Adam C. Powell, IV]
* Forward-ported patches to version 5.1.11.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2004,2007,2008 ENSEIRB, INRIA & CNRS
 
1
/* Copyright 2004,2007,2008,2010 ENSEIRB, INRIA & CNRS
2
2
**
3
3
** This file is part of the Scotch software package for static mapping,
4
4
** graph partitioning and sparse matrix ordering.
54
54
/**                                 to   : 03 feb 2000     **/
55
55
/**                # Version 5.0  : from : 23 dec 2007     **/
56
56
/**                                 to   : 16 mar 2008     **/
 
57
/**                # Version 5.1  : from : 01 jul 2010     **/
 
58
/**                                 to   : 15 aug 2010     **/
57
59
/**                                                        **/
58
60
/************************************************************/
59
61
 
142
144
          usagePrint (stdout, C_usageList);
143
145
          return     (0);
144
146
        case 'V' :
145
 
          fprintf (stderr, "amk_ccc, version %s - F. Pellegrini\n", SCOTCH_VERSION);
146
 
          fprintf (stderr, "Copyright 2004,2007,2008 ENSEIRB, INRIA & CNRS, France\n");
 
147
          fprintf (stderr, "amk_ccc, version " SCOTCH_VERSION_STRING "\n");
 
148
          fprintf (stderr, "Copyright 2004,2007,2008,2010 ENSEIRB, INRIA & CNRS, France\n");
147
149
          fprintf (stderr, "This software is libre/free software under CeCILL-C -- see the user's manual for more information\n");
148
150
          return  (0);
149
151
        default :
162
164
       i >>= 1)
163
165
    ccmax = (ccmax << 1) | (i & 1);
164
166
 
165
 
  fprintf (C_filepntrarcout, "deco\n0\n%ld\t%ld\n", /* Print the file header          */
166
 
           (long) ccnbr,                          /* Print number of terminal domains */
167
 
           (long) ccmax);                         /* Print biggest terminal value     */
 
167
  fprintf (C_filepntrarcout, "deco\n0\n" SCOTCH_NUMSTRING "\t" SCOTCH_NUMSTRING "\n", /* Print the file header */
 
168
           (SCOTCH_Num) ccnbr,                    /* Print number of terminal domains */
 
169
           (SCOTCH_Num) ccmax);                   /* Print biggest terminal value     */
168
170
 
169
171
  for (v.lvl = 0; v.lvl < ccdim; v.lvl ++) {      /* For all levels                    */
170
172
    for (v.pos = 0; v.pos <= ccbit; v.pos ++) {   /* For all positions in these levels */
180
182
        else                                      /* If lower (biggest) half */
181
183
          j = k;
182
184
      }
183
 
      fprintf (C_filepntrarcout, "%ld\t1\t%ld\n",
184
 
               (long) C_vertLabl (&v),            /* Print terminal label  */
185
 
               (long) t);                         /* Print terminal number */
 
185
      fprintf (C_filepntrarcout, SCOTCH_NUMSTRING "\t1\t" SCOTCH_NUMSTRING "\n",
 
186
               (SCOTCH_Num) C_vertLabl (&v),      /* Print terminal label  */
 
187
               (SCOTCH_Num) t);                   /* Print terminal number */
186
188
    }
187
189
  }
188
190
 
214
216
      }
215
217
 
216
218
      if (v.lvl + v.pos > 0) {                    /* Print distance triangular map line */
217
 
        fprintf (C_filepntrarcout, "%ld",
218
 
                 (long) C_distaTab[0].dist);
 
219
        fprintf (C_filepntrarcout, SCOTCH_NUMSTRING,
 
220
                 (SCOTCH_Num) C_distaTab[0].dist);
219
221
        for (i = 1; i < C_vertLabl (&v); i ++)
220
 
          fprintf (C_filepntrarcout, " %ld",
221
 
                   (long) C_distaTab[i].dist);
 
222
          fprintf (C_filepntrarcout, " " SCOTCH_NUMSTRING,
 
223
                   (SCOTCH_Num) C_distaTab[i].dist);
222
224
        fprintf (C_filepntrarcout, "\n");
223
225
      }
224
226
    }