hp2FEM  0.1
src/metis-5.0/libmetis/defs.h
00001 /*
00002  * Copyright 1997, Regents of the University of Minnesota
00003  *
00004  * defs.h
00005  *
00006  * This file contains constant definitions
00007  *
00008  * Started 8/27/94
00009  * George
00010  *
00011  * $Id: defs.h 10550 2011-07-12 12:37:37Z karypis $
00012  *
00013  */
00014 
00015 #ifndef _LIBMETIS_DEFS_H_
00016 #define _LIBMETIS_DEFS_H_
00017 
00018 #define METISTITLE              "METIS 5.0 Copyright 1998-11, Regents of the University of Minnesota\n"
00019 #define MAXLINE                 1280000
00020 
00021 #define LTERM                   (void **) 0     /* List terminator for gk_free() */
00022 
00023 #define HTLENGTH                ((1<<11)-1)
00024 
00025 #define INIT_MAXNAD             200     /* Initial number of maximum number of 
00026                                            adjacent domains. This number will be
00027                                            adjusted as required. */
00028 
00029 /* Types of boundaries */
00030 #define BNDTYPE_REFINE          1       /* Used for k-way refinement-purposes */
00031 #define BNDTYPE_BALANCE         2       /* Used for k-way balancing purposes */
00032 
00033 /* Mode of optimization */
00034 #define OMODE_REFINE            1       /* Optimize the objective function */
00035 #define OMODE_BALANCE           2       /* Balance the subdomains */
00036 
00037 /* Types of vertex statues in the priority queue */
00038 #define VPQSTATUS_PRESENT      1       /* The vertex is in the queue */
00039 #define VPQSTATUS_EXTRACTED    2       /* The vertex has been extracted from the queue */
00040 #define VPQSTATUS_NOTPRESENT   3       /* The vertex is not present in the queue and
00041                                           has not been extracted before */
00042 
00043 #define UNMATCHED               -1
00044 
00045 #define LARGENIPARTS            6       /* Number of random initial partitions */
00046 #define SMALLNIPARTS            3       /* Number of random initial partitions */
00047 
00048 #define COARSEN_FRACTION        0.75    /* Node reduction between succesive coarsening levels */
00049 #define COARSEN_FRACTION2       0.99    /* Node reduction between succesive coarsening levels */
00050 
00051 
00052 #define COMPRESSION_FRACTION            0.85
00053 
00054 #define MMDSWITCH                       120
00055 
00056 /* Default ufactors for the various operational modes */
00057 #define PMETIS_DEFAULT_UFACTOR          1
00058 #define MCPMETIS_DEFAULT_UFACTOR        10
00059 #define KMETIS_DEFAULT_UFACTOR          30
00060 #define OMETIS_DEFAULT_UFACTOR          200
00061 
00062 #endif
 All Classes Files Functions Variables Typedefs Friends Defines