/usr/include/trilinos/ml_parmetis_constants.h is in libtrilinos-ml-dev 12.12.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /********************************************************************* */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
#ifndef ML_PARMETIS_CONSTANTS_H
#define ML_PARMETIS_CONSTANTS_H
/*
This header defines types used in ML's (Par)METIS interfaces and must be included whenever (Par)METIS data types are used. This is necessary
because (Par)METIS does not maintain backwards compatibility between major versions.
The typedef is based first on ParMETIS, then falls back to METIS.
*/
#if defined(PARMETIS_MAJOR_VERSION)
# if PARMETIS_MAJOR_VERSION == 3
# define indextype idxtype
# elif PARMETIS_MAJOR_VERSION == 4
# define indextype idx_t
# endif
#elif defined(METIS_VER_MAJOR)
# if METIS_VER_MAJOR == 5
# define indextype idx_t
# endif
#else
# define indextype idxtype
#endif
/* METIS 4.x doesn't supply a version macro */
#if !defined(METIS_VER_MAJOR)
# define METIS_VER_MAJOR 4
#endif
#endif /*ifndef ML_PARMETIS_CONSTANTS_H*/
|