Skip to content

Commit 4d4f0b5

Browse files
committed
Define IDXTYPEWIDTH before metis.h is included
1 parent bcaf3d7 commit 4d4f0b5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

highs/ipm/hipo/factorhighs/Analyse.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77

88
#include "DataCollector.h"
99
#include "FactorHiGHSSettings.h"
10-
// #include "GKlib.h"
1110
#include "ReturnValues.h"
1211
#include "ipm/hipo/auxiliary/Auxiliary.h"
1312
#include "ipm/hipo/auxiliary/Log.h"
13+
14+
// define correct int type for Metis before header is included
15+
#ifdef HIGHSINT64
16+
#define IDXTYPEWIDTH 64
17+
#else
18+
#define IDXTYPEWIDTH 32
19+
#endif
1420
#include "metis.h"
1521

1622
namespace hipo {
@@ -104,7 +110,7 @@ Int Analyse::getPermutation() {
104110
}
105111
}
106112

107-
Int options[METIS_NOPTIONS];
113+
idx_t options[METIS_NOPTIONS];
108114
METIS_SetDefaultOptions(options);
109115
options[METIS_OPTION_SEED] = kMetisSeed;
110116

0 commit comments

Comments
 (0)