Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/metis.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ METIS_API(int) METIS_Free(void *ptr);

METIS_API(int) METIS_SetDefaultOptions(idx_t *options);

METIS_API(int) METIS_Version(int *major, int *minor, int *subminor, int *idx_bits,
int *real_bits);


/* These functions are used by ParMETIS */

Expand Down
23 changes: 23 additions & 0 deletions libmetis/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,27 @@ int metis_rcode(int sigrval)
}
}

/*****************************************************************************/
/*! This function returns version and data type information. All arguments are
optional and may be NULL.

\param major will hold the major version.
\param minor will hold the minor version.
\param subminor will hold the subminor version.
\param idx_bits will hold sizeof(idx_t)*8.
\param idx_bits will hold sizeof(real_t)*8

*/
/*****************************************************************************/
int METIS_Version(int *major, int *minor, int *subminor, int *idx_bits,
int *real_bits)
{
if (major) *major = METIS_VER_MAJOR;
if (minor) *minor = METIS_VER_MINOR;
if (subminor) *subminor = METIS_VER_SUBMINOR;
if (idx_bits) *idx_bits = sizeof(idx_t)*8;
if (real_bits) *real_bits = sizeof(real_t)*8;

return METIS_OK;
}