rheolef  6.3
Classes | Namespaces | Macros | Typedefs | Functions
geo_partition_scotch.h File Reference
#include "rheolef/distributor.h"
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <stdarg.h>
#include <limits.h>
#include <time.h>
#include <assert.h>
Include dependency graph for geo_partition_scotch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rheolef::MeshType
struct  rheolef::KeyValueType

Namespaces

namespace  rheolef
 irheostream, orheostream - large data streams

Macros

#define IDX_DATATYPE   MPI_INT
#define UNBALANCE_FRACTION   1.05
#define DBG_INFO   2 /* Perform timing analysis */
#define PMV3_OPTION_DBGLVL   1
#define PMV3_OPTION_SEED   2
#define MAXNCON   12
#define MAXLINE   8192
#define amax(a, b)   ((a) >= (b) ? (a) : (b))
#define icopy(n, a, b)   memcpy((b), (a), sizeof(int)*(n))
#define idxcopy(n, a, b)   memcpy((b), (a), sizeof(my_idxtype)*(n))
#define SHIFTCSR(i, n, a)

Typedefs

typedef int rheolef::my_idxtype
typedef my_idxtype rheolef::idxtype
typedef struct KeyValueType rheolef::KeyValueType

Functions

void rheolef::geo_partition_scotch (my_idxtype *elmdist, my_idxtype *eptr, vector< my_idxtype > &eind, my_idxtype *elmwgt, int *ncon, int *ncommonnodes, int *nparts, float *tpwgts, float *ubvec, int *edgecut, my_idxtype *part, const mpi::communicator &comm)
template<class Size , class RandomIOIterator >
static void rheolef::init_csr_ptr (Size n, const RandomIOIterator &aptr)
template<class Size , class RandomIOIterator >
static void rheolef::shift_csr_ptr (Size n, const RandomIOIterator &aptr)
int rheolef::idxamin (int n, const std::vector< my_idxtype > &x)
int rheolef::idxamax (int n, const std::vector< my_idxtype > &x)

Macro Definition Documentation

#define IDX_DATATYPE   MPI_INT

Definition at line 9 of file geo_partition_scotch.h.

#define UNBALANCE_FRACTION   1.05

Definition at line 37 of file geo_partition_scotch.h.

#define DBG_INFO   2 /* Perform timing analysis */

Definition at line 38 of file geo_partition_scotch.h.

#define PMV3_OPTION_DBGLVL   1

Definition at line 39 of file geo_partition_scotch.h.

#define PMV3_OPTION_SEED   2

Definition at line 40 of file geo_partition_scotch.h.

#define MAXNCON   12

Definition at line 41 of file geo_partition_scotch.h.

#define MAXLINE   8192

Definition at line 42 of file geo_partition_scotch.h.

#define amax (   a,
 
)    ((a) >= (b) ? (a) : (b))

Definition at line 66 of file geo_partition_scotch.h.

#define icopy (   n,
  a,
 
)    memcpy((b), (a), sizeof(int)*(n))

Definition at line 67 of file geo_partition_scotch.h.

#define idxcopy (   n,
  a,
 
)    memcpy((b), (a), sizeof(my_idxtype)*(n))

Definition at line 68 of file geo_partition_scotch.h.

#define SHIFTCSR (   i,
  n,
 
)
Value:
do { \
for (i=n; i>0; i--) a[i] = a[i-1]; \
a[0] = 0; \
} while(0)

Definition at line 69 of file geo_partition_scotch.h.