2010-08-13 12:24:19 -05:00
|
|
|
#ifndef PARTITION_H_INCLUDED
|
|
|
|
#define PARTITION_H_INCLUDED
|
|
|
|
|
|
|
|
int
|
|
|
|
partition_unif_idx(int ndims, int nc,
|
|
|
|
const int *fine_d,
|
|
|
|
const int *coarse_d,
|
|
|
|
const int *idx,
|
|
|
|
int *p);
|
|
|
|
|
|
|
|
int
|
|
|
|
partition_compress(int n, int *p);
|
|
|
|
|
2010-08-18 10:04:33 -05:00
|
|
|
|
|
|
|
int
|
|
|
|
partition_allocate_inverse(int nc, int max_blk,
|
|
|
|
int **pi, int **inverse);
|
|
|
|
|
|
|
|
void
|
|
|
|
partition_deallocate_inverse(int *pi, int *inverse);
|
|
|
|
|
|
|
|
void
|
|
|
|
partition_invert(int nc, const int *p,
|
|
|
|
int *pi, int *inverse);
|
|
|
|
|
|
|
|
void
|
|
|
|
partition_localidx(int nblk, const int *pi, const int *inverse,
|
|
|
|
int *localidx);
|
|
|
|
|
2010-08-19 11:33:13 -05:00
|
|
|
|
|
|
|
int
|
|
|
|
partition_split_disconnected(int nc, int nneigh, const int *neigh,
|
|
|
|
int *p);
|
2010-08-13 12:24:19 -05:00
|
|
|
#endif /* PARTITION_H_INLCUDED */
|