-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path__init__.py
85 lines (73 loc) · 2.75 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
###################################################################################
# Copyright 2021 National Technology & Engineering Solutions of Sandia, #
# LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the #
# U.S. Government retains certain rights in this software. #
# If you want to use this code, please refer to the README.rst and LICENSE files. #
###################################################################################
"""
A Cython interface to METIS and ParMETIS.
http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview
"""
from . metisCy import (PartGraphRecursive,
PartGraphKway,
PartMeshNodal,
PartMeshDual,
NodeND,
SetDefaultOptions)
from . metisCy import NOPTIONS
# Options codes
from . metisCy import (OPTION_PTYPE,
OPTION_OBJTYPE,
OPTION_CTYPE,
OPTION_IPTYPE,
OPTION_RTYPE,
OPTION_DBGLVL,
OPTION_NITER,
OPTION_NCUTS,
OPTION_SEED,
OPTION_NO2HOP,
OPTION_MINCONN,
OPTION_CONTIG,
OPTION_COMPRESS,
OPTION_CCORDER,
OPTION_PFACTOR,
OPTION_NSEPS,
OPTION_UFACTOR,
OPTION_NUMBERING)
# Partitioning Schemes
from . metisCy import (PTYPE_RB,
PTYPE_KWAY)
# Graph types for meshes
from . metisCy import (GTYPE_DUAL,
GTYPE_NODAL)
# Coarsening Schemes
from . metisCy import (CTYPE_RM,
CTYPE_SHEM)
# Initial partitioning schemes
from . metisCy import (IPTYPE_GROW,
IPTYPE_RANDOM,
IPTYPE_EDGE,
IPTYPE_NODE,
IPTYPE_METISRB)
# Refinement schemes
from . metisCy import (RTYPE_FM,
RTYPE_GREEDY,
RTYPE_SEP2SIDED,
RTYPE_SEP1SIDED)
# Debug Levels
from . metisCy import (DBG_INFO,
DBG_TIME,
DBG_COARSEN,
DBG_REFINE,
DBG_IPART,
DBG_MOVEINFO,
DBG_SEPINFO,
DBG_CONNINFO,
DBG_CONTIGINFO,
DBG_MEMORY)
# Types of objectives
from . metisCy import (OBJTYPE_CUT,
OBJTYPE_NODE,
OBJTYPE_VOL)
__all__ = []