Path: blob/devel/elmergrid/src/metis-5.1.0/libmetis/defs.h
3206 views
/*1* Copyright 1997, Regents of the University of Minnesota2*3* defs.h4*5* This file contains constant definitions6*7* Started 8/27/948* George9*10* $Id: defs.h 13933 2013-03-29 22:20:46Z karypis $11*12*/1314#ifndef _LIBMETIS_DEFS_H_15#define _LIBMETIS_DEFS_H_1617#define METISTITLE "METIS 5.0 Copyright 1998-13, Regents of the University of Minnesota\n"18#define MAXLINE 12800001920#define LTERM (void **) 0 /* List terminator for gk_free() */2122#define HTLENGTH ((1<<11)-1)2324#define INIT_MAXNAD 200 /* Initial number of maximum number of25adjacent domains. This number will be26adjusted as required. */2728/* Types of boundaries */29#define BNDTYPE_REFINE 1 /* Used for k-way refinement-purposes */30#define BNDTYPE_BALANCE 2 /* Used for k-way balancing purposes */3132/* Mode of optimization */33#define OMODE_REFINE 1 /* Optimize the objective function */34#define OMODE_BALANCE 2 /* Balance the subdomains */3536/* Types of vertex statues in the priority queue */37#define VPQSTATUS_PRESENT 1 /* The vertex is in the queue */38#define VPQSTATUS_EXTRACTED 2 /* The vertex has been extracted from the queue */39#define VPQSTATUS_NOTPRESENT 3 /* The vertex is not present in the queue and40has not been extracted before */4142#define UNMATCHED -14344#define LARGENIPARTS 7 /* Number of random initial partitions */45#define SMALLNIPARTS 5 /* Number of random initial partitions */4647#define COARSEN_FRACTION 0.85 /* Node reduction between succesive coarsening levels */4849#define COMPRESSION_FRACTION 0.855051#define MMDSWITCH 1205253/* Default ufactors for the various operational modes */54#define PMETIS_DEFAULT_UFACTOR 155#define MCPMETIS_DEFAULT_UFACTOR 1056#define KMETIS_DEFAULT_UFACTOR 3057#define OMETIS_DEFAULT_UFACTOR 2005859#endif606162