Files
ThirdParty-6/scotch_6.0.3/src/libscotch/wgraph_part_zr.c
Henry Weller 1cce60aa78 scotch_6.0.3: Added to the source tree to simplify building OpenFOAM
Recent versions of scotch are rarely available in packaged form for
ready installation on GNU/Linux distributions and so the sources are
generally required.
2016-05-30 21:17:14 +01:00

36 lines
744 B
C

/*
** The defines and includes.
*/
#define WGRAPH_PART_ZR
#include "module.h"
#include "common.h"
#include "graph.h"
#include "wgraph.h"
#include "wgraph_part_zr.h"
/*****************************/
/* */
/* This is the main routine. */
/* */
/*****************************/
/* This routine moves all of the graph vertices
** to the first part of the partition.
** It returns:
** - 0 : if the bipartitioning could be computed.
** - !0 : on error.
*/
int
wgraphPartZr (
Wgraph * const grafptr) /*+ Active graph +*/
{
if (grafptr->compload[0] != grafptr->s.velosum) /* If not all vertices already in part zero */
wgraphZero (grafptr);
return (0);
}