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

« back to all changes in this revision

Viewing changes to src/scotch/gtst.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.
52
52
/**                                 to   : 10 sep 2003     **/
53
53
/**                # Version 5.0  : from : 23 dec 2007     **/
54
54
/**                                 to   : 16 mar 2008     **/
 
55
/**                # Version 5.1  : from : 01 jul 2010     **/
 
56
/**                                 to   : 15 aug 2010     **/
55
57
/**                                                        **/
56
58
/************************************************************/
57
59
 
136
138
          usagePrint (stdout, C_usageList);
137
139
          exit       (0);
138
140
        case 'V' :
139
 
          fprintf (stderr, "gtst, version %s - F. Pellegrini\n", SCOTCH_VERSION);
140
 
          fprintf (stderr, "Copyright 2004,2007,2008 ENSEIRB, INRIA & CNRS, France\n");
 
141
          fprintf (stderr, "gtst, version " SCOTCH_VERSION_STRING "\n");
 
142
          fprintf (stderr, "Copyright 2004,2007,2008,2010 ENSEIRB, INRIA & CNRS, France\n");
141
143
          fprintf (stderr, "This software is libre/free software under CeCILL-C -- see the user's manual for more information\n");
142
144
          return  (0);
143
145
        default :
159
161
                     &edlomin, &edlomax, &edlosum, &edloavg, &edlodlt);
160
162
 
161
163
  if (C_filepntrdatout != NULL) {
162
 
    fprintf (C_filepntrdatout, "S\tVertex\tnbr=%ld\n",
163
 
             (long) vertnbr);
164
 
    fprintf (C_filepntrdatout, "S\tVertex load\tmin=%ld\tmax=%ld\tsum=%ld\tavg=%g\tdlt=%g\n",
165
 
             (long) velomin, (long) velomax, (long) velosum, veloavg, velodlt);
166
 
    fprintf (C_filepntrdatout, "S\tVertex degree\tmin=%ld\tmax=%ld\tsum=%ld\tavg=%g\tdlt=%g\n",
167
 
             (long) degrmin, (long) degrmax, (long) edgenbr, degravg, degrdlt);
168
 
    fprintf (C_filepntrdatout, "S\tEdge\tnbr=%ld\n",
169
 
             (long) (edgenbr / 2));
170
 
    fprintf (C_filepntrdatout, "S\tEdge load\tmin=%ld\tmax=%ld\tsum=%ld\tavg=%g\tdlt=%g\n",
171
 
             (long) edlomin, (long) edlomax, (long) edlosum, edloavg, edlodlt);
 
164
    fprintf (C_filepntrdatout, "S\tVertex\tnbr=" SCOTCH_NUMSTRING "\n",
 
165
             (SCOTCH_Num) vertnbr);
 
166
    fprintf (C_filepntrdatout, "S\tVertex load\tmin=" SCOTCH_NUMSTRING "\tmax=" SCOTCH_NUMSTRING "\tsum=" SCOTCH_NUMSTRING "\tavg=%g\tdlt=%g\n",
 
167
             (SCOTCH_Num) velomin, (SCOTCH_Num) velomax, (SCOTCH_Num) velosum, veloavg, velodlt);
 
168
    fprintf (C_filepntrdatout, "S\tVertex degree\tmin=" SCOTCH_NUMSTRING "\tmax=" SCOTCH_NUMSTRING "\tsum=" SCOTCH_NUMSTRING "\tavg=%g\tdlt=%g\n",
 
169
             (SCOTCH_Num) degrmin, (SCOTCH_Num) degrmax, (SCOTCH_Num) edgenbr, degravg, degrdlt);
 
170
    fprintf (C_filepntrdatout, "S\tEdge\tnbr=" SCOTCH_NUMSTRING "\n",
 
171
             (SCOTCH_Num) (edgenbr / 2));
 
172
    fprintf (C_filepntrdatout, "S\tEdge load\tmin=" SCOTCH_NUMSTRING "\tmax=" SCOTCH_NUMSTRING "\tsum=" SCOTCH_NUMSTRING "\tavg=%g\tdlt=%g\n",
 
173
             (SCOTCH_Num) edlomin, (SCOTCH_Num) edlomax, (SCOTCH_Num) edlosum, edloavg, edlodlt);
172
174
  }
173
175
 
174
176
  SCOTCH_graphExit (&grafdat);