~ubuntu-branches/ubuntu/precise/scotch/precise

« back to all changes in this revision

Viewing changes to src/libscotch/bdgraph.c

  • Committer: Package Import Robot
  • Author(s): "Adam C. Powell, IV"
  • Date: 2011-12-21 13:40:52 UTC
  • mfrom: (14.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20111221134052-1yw353l7p7zoo51d
Tags: 5.1.12b.dfsg-1
* New upstream (closes: #652900).
* Rebuild with new mpi-defaults (closes: #652311).
* Forward-ported build-fixes.patch (just shifted one hunk two lines).
* New build-arch and build-indep targets in rules.
* Updated VCS URLs.
* Bumped Standards-Version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2007,2008 ENSEIRB, INRIA & CNRS
 
1
/* Copyright 2007,2008,2011 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
/**                handling routines.                      **/
42
42
/**                                                        **/
43
43
/**   DATES      : # Version 5.1  : from : 10 sep 2007     **/
44
 
/**                                 to     03 jul 2008     **/
 
44
/**                                 to     14 apr 2011     **/
45
45
/**                                                        **/
46
46
/************************************************************/
47
47
 
117
117
const Anum                      domwght0,         /* Processor workforce in each domain */
118
118
const Anum                      domwght1)
119
119
{
120
 
  actgrafptr->fronlocnbr       =                      /* No frontier vertices */
 
120
  actgrafptr->fronlocnbr       =                  /* No frontier vertices */
121
121
  actgrafptr->fronglbnbr       = 0;
122
122
  actgrafptr->complocload0     = actgrafptr->s.velolocsum;
123
123
  actgrafptr->compglbload0     = actgrafptr->s.veloglbsum;
 
124
  actgrafptr->compglbload0min  = 0;               /* No external constraints on bipartition (yet) */
 
125
  actgrafptr->compglbload0max  = actgrafptr->s.veloglbsum;
124
126
  actgrafptr->compglbload0avg  = (Gnum) (((double) actgrafptr->s.veloglbsum * (double) domwght0) / (double) (domwght0 + domwght1));
125
127
  actgrafptr->compglbload0dlt  = actgrafptr->s.veloglbsum - actgrafptr->compglbload0avg;
126
128
  actgrafptr->complocsize0     = actgrafptr->s.vertlocnbr;