00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef Metis_h
00043 #define Metis_h
00044
00045 #include <GraphPartitioner.h>
00046 #include <GraphNumberer.h>
00047
00048 #ifndef _bool_h
00049 #include <bool.h>
00050 #endif
00051
00106 class Metis : public GraphPartitioner, public GraphNumberer
00107 {
00108 public:
00113 Metis(int numParts =1);
00114
00120 Metis(int Ptype,
00121
00122 int Mtype,
00123 int coarsenTo,
00124 int Rtype,
00125 int IPtype,
00126 int numParts =1);
00131 ~Metis();
00132
00133
00139 bool setOptions(int Ptype,
00140
00141 int Mtype,
00142 int coarsenTo,
00143 int Rtype,
00144 int IPtype);
00145
00147 bool setDefaultOptions(void);
00148
00149
00151 int partition(Graph &theGraph, int numPart);
00152
00154 const ID &number(Graph &theGraph, int lastVertex = -1);
00156 const ID &number(Graph &theGraph, const ID &lastVertices);
00157
00159 int sendSelf(int commitTag,
00160 Channel &theChannel);
00162 int recvSelf(int commitTag, Channel &theChannel,
00163 FEM_ObjectBroker &theBroker);
00164
00165
00166 protected:
00167
00168 private:
00170 bool checkOptions(void);
00171
00173 int myPtype ;
00174
00176
00177 int myMtype;
00178
00179
00180
00181
00182
00183
00184
00186
00187 int myCoarsenTo;
00188
00190
00191 int myRtype;
00192
00193
00194
00195
00196
00197
00199
00200 int myIPtype;
00201
00202
00203
00205
00206 bool defaultOptions;
00207
00209 int numPartitions;
00210 ID *theRefResult;
00211 };
00212
00213 #endif
00214