File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed
highs/ipm/hipo/factorhighs Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,6 @@ Changes:
2626
2727- Any function not needed to call METIS_NodeND has been removed.
2828
29- - The input matrix (xadj and adjncy) is const.
29+ - The input matrix (xadj and adjncy) is const.
30+
31+ - The Metis integer type is defined based on HIGHSINT64.
Original file line number Diff line number Diff line change 77\version\verbatim $Id$\endverbatim
88*/
99
10- #ifndef _METIS_H_
11- #define _METIS_H_
10+ #ifndef HIGHS_METIS_ORDERING_H
11+ #define HIGHS_METIS_ORDERING_H
1212
1313/****************************************************************************
1414* A set of defines that can be modified by the user
3030 GCC does provides these definitions in stdint.h, but it may require some
3131 modifications on other architectures.
3232--------------------------------------------------------------------------*/
33- #ifndef IDXTYPEWIDTH
33+ #include "HConfig.h"
34+
35+ #ifdef HIGHSINT64
36+ #define IDXTYPEWIDTH 64
37+ #else
3438 #define IDXTYPEWIDTH 32
3539#endif
3640
4145 32 : single precision floating point (float)
4246 64 : double precision floating point (double)
4347--------------------------------------------------------------------------*/
44- #ifndef REALTYPEWIDTH
45- #define REALTYPEWIDTH 32
46- #endif
48+ #define REALTYPEWIDTH 32
4749
4850/****************************************************************************
4951* In principle, nothing needs to be changed beyond this point, unless the
Original file line number Diff line number Diff line change 99#include " AMD/amd.h"
1010#include " DataCollector.h"
1111#include " FactorHiGHSSettings.h"
12+ #include " Metis/metis.h"
1213#include " ReturnValues.h"
1314#include " ipm/hipo/auxiliary/Auxiliary.h"
1415#include " ipm/hipo/auxiliary/Log.h"
1516
16- // define correct int type for Metis and AMD before header is included
17- #ifdef HIGHSINT64
18- #define IDXTYPEWIDTH 64
19- #else
20- #define IDXTYPEWIDTH 32
21- #endif
22- #include " Metis/metis.h"
23-
2417namespace hipo {
2518
2619const Int64 int32_limit = std::numeric_limits<int32_t >::max();
You can’t perform that action at this time.
0 commit comments