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

« back to all changes in this revision

Viewing changes to src/libscotch/vgraph_separate_vw.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 ENSEIRB, INRIA & CNRS
 
1
/* Copyright 2004,2007,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.
41
41
/**                                                        **/
42
42
/**   DATES      : # Version 4.0  : from : 18 may 2004     **/
43
43
/**                                 to     18 may 2004     **/
 
44
/**                # Version 5.1  : from : 11 aug 2010     **/
 
45
/**                                 to     11 aug 2010     **/
44
46
/**                                                        **/
45
47
/************************************************************/
46
48
 
89
91
    return     (1);
90
92
  }
91
93
 
92
 
  fprintf (fileptr, "%ld\n",                      /* Output size of mapping; test if failure later, in main loop */
93
 
           (long) grafptr->s.vertnbr);
 
94
  fprintf (fileptr, GNUMSTRING "\n",              /* Output size of mapping; test if failure later, in main loop */
 
95
           (Gnum) grafptr->s.vertnbr);
94
96
 
95
97
  for (vertnum = grafptr->s.baseval; vertnum < grafptr->s.vertnnd; vertnum ++) {
96
 
    if (fprintf (fileptr, "%ld\t%d\n",
97
 
                 (long) ((grafptr->s.vnumtax != NULL) ? grafptr->s.vnumtax[vertnum] : vertnum),
 
98
    if (fprintf (fileptr, GNUMSTRING "\t%d\n",
 
99
                 (Gnum) ((grafptr->s.vnumtax != NULL) ? grafptr->s.vnumtax[vertnum] : vertnum),
98
100
                 (int) grafptr->parttax[vertnum]) <= 0) {
99
101
      errorPrint ("vgraphSeparateVw: bad output");
100
102
      fclose     (fileptr);