2 * Copyright 1997, Regents of the University of Minnesota
6 * This file contains constant definitions
11 * $Id: defs.h 13933 2013-03-29 22:20:46Z karypis $
15 #ifndef _LIBMETIS_DEFS_H_
16 #define _LIBMETIS_DEFS_H_
18 #define METISTITLE "METIS 5.0 Copyright 1998-13, Regents of the University of Minnesota\n"
19 #define MAXLINE 1280000
21 #define LTERM (void **) 0 /* List terminator for gk_free() */
23 #define HTLENGTH ((1<<11)-1)
25 #define INIT_MAXNAD 200 /* Initial number of maximum number of
26 adjacent domains. This number will be
27 adjusted as required. */
29 /* Types of boundaries */
30 #define BNDTYPE_REFINE 1 /* Used for k-way refinement-purposes */
31 #define BNDTYPE_BALANCE 2 /* Used for k-way balancing purposes */
33 /* Mode of optimization */
34 #define OMODE_REFINE 1 /* Optimize the objective function */
35 #define OMODE_BALANCE 2 /* Balance the subdomains */
37 /* Types of vertex statues in the priority queue */
38 #define VPQSTATUS_PRESENT 1 /* The vertex is in the queue */
39 #define VPQSTATUS_EXTRACTED 2 /* The vertex has been extracted from the queue */
40 #define VPQSTATUS_NOTPRESENT 3 /* The vertex is not present in the queue and
41 has not been extracted before */
45 #define LARGENIPARTS 7 /* Number of random initial partitions */
46 #define SMALLNIPARTS 5 /* Number of random initial partitions */
48 #define COARSEN_FRACTION 0.85 /* Node reduction between succesive coarsening levels */
50 #define COMPRESSION_FRACTION 0.85
54 /* Default ufactors for the various operational modes */
55 #define PMETIS_DEFAULT_UFACTOR 1
56 #define MCPMETIS_DEFAULT_UFACTOR 10
57 #define KMETIS_DEFAULT_UFACTOR 30
58 #define OMETIS_DEFAULT_UFACTOR 200