mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
Recent versions of scotch are rarely available in packaged form for ready installation on GNU/Linux distributions and so the sources are generally required.
36 lines
744 B
C
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);
|
|
}
|