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

« back to all changes in this revision

Viewing changes to src/libscotch/hall_order_hf.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.
46
46
/**                                 to   : 23 nov 2001     **/
47
47
/**                # Version 4.0  : from : 10 jan 2003     **/
48
48
/**                                 to   : 29 aug 2007     **/
 
49
/**                # Version 5.1  : from : 08 dec 2010     **/
 
50
/**                                 to   : 08 dec 2010     **/
49
51
/**                                                        **/
50
52
/**   NOTES      : # This module contains pieces of code   **/
51
53
/**                  that belong to other people; see      **/
923
925
            rmf = (float) deg * (float) (deg - 1 + (2 * degme)) - (float) wf[i];
924
926
          }
925
927
 
926
 
          wf[i] = (int) (rmf / (float) (nvi + 1) + 0.5);
 
928
          wf[i] = (Gnum) (rmf / (float) (nvi + 1) + 0.5F); /* Patch 08/12/2010 <FP> */
927
929
          wf[i] = MAX (0, wf[i]);
928
930
          deg   = wf[i];
929
931
          if (deg > n)
935
937
          last[i]   = 0;
936
938
          head[deg] = i;
937
939
 
938
 
          mindeg    = MIN (mindeg, deg);
 
940
          mindeg = MIN (mindeg, deg);
939
941
        }
940
942
 
941
943
        iw[p ++] = i;