#if defined(MED_ENABLE_METIS) & !defined(MED_ENABLE_PARMETIS)
#ifndef MED_ENABLE_METIS_V5
- #include "defs.h"
+ // #include "defs.h"
#endif // MED_ENABLE_METIS_V5
#include "metis.h"
+ typedef idx_t idxtype;
#ifdef MED_ENABLE_METIS_V5
#define idxtype idx_t
#endif // MED_ENABLE_METIS_V5
int *options, int *edgecut, idxtype *part)
{
#if defined(MED_ENABLE_METIS)
- #ifndef MED_ENABLE_METIS_V5
+ #ifdef MED_ENABLE_METIS_V5
METIS_PartGraphRecursive(nvtxs, xadj, adjncy, vwgt,
adjwgt, wgtflag, numflag, nparts,
options, edgecut, part);
int *options, int *edgecut, idxtype *part)
{
#if defined(MED_ENABLE_METIS)
- #ifndef MED_ENABLE_METIS_V5
+ #ifdef MED_ENABLE_METIS_V5
METIS_PartGraphKway(nvtxs, xadj, adjncy, vwgt,
adjwgt, wgtflag, numflag, nparts,
options, edgecut, part);