Skip to content

Commit 47de08e

Browse files
committed
Fix metis.
1 parent cf1e3b3 commit 47de08e

11 files changed

Lines changed: 19 additions & 1 deletion

File tree

Code/ThirdParty/metis/simvascular_metis/Lib/graph.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#include <metis.h>
1717

18+
extern void GKfree(void **ptr1,...);
19+
1820
/*************************************************************************
1921
* This function sets up the graph from the user input
2022
**************************************************************************/

Code/ThirdParty/metis/simvascular_metis/Lib/initpart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#include <metis.h>
1717

18+
extern void GKfree(void **ptr1,...);
19+
1820
/*************************************************************************
1921
* This function computes the initial bisection of the coarsest graph
2022
**************************************************************************/

Code/ThirdParty/metis/simvascular_metis/Lib/kmetis.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#include <metis.h>
1717

18+
extern void GKfree(void **ptr1,...);
19+
1820

1921
/*************************************************************************
2022
* This function is the entry point for KMETIS

Code/ThirdParty/metis/simvascular_metis/Lib/kwayrefine.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
#include <metis.h>
1515

16+
extern void GKfree(void **ptr1,...);
17+
1618

1719
/*************************************************************************
1820
* This function is the entry point of refinement

Code/ThirdParty/metis/simvascular_metis/Lib/memory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <metis.h>
1616

17+
extern void GKfree(void **ptr1,...);
18+
1719

1820
/*************************************************************************
1921
* This function allocates memory for the workspace

Code/ThirdParty/metis/simvascular_metis/Lib/metis.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* $Id: metis.h,v 1.1 1998/11/27 17:59:21 karypis Exp $
1212
*/
1313

14+
void GKfree(void **ptr1,...);
1415

1516
#include <stdio.h>
1617
#ifdef __STDC__

Code/ThirdParty/metis/simvascular_metis/Lib/minitpart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#include <metis.h>
1717

18+
int SelectQueueOneWay(int ncon, float *npwgts, float *tpwgts, int from, PQueueType queues[MAXNCON][2]);
19+
1820
/*************************************************************************
1921
* This function computes the initial bisection of the coarsest graph
2022
**************************************************************************/

Code/ThirdParty/metis/simvascular_metis/Lib/pmetis.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#include <metis.h>
1717

18+
extern void GKfree(void **ptr1,...);
19+
1820

1921
/*************************************************************************
2022
* This function is the entry point for PMETIS

Code/ThirdParty/metis/simvascular_metis/Lib/pqueue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <metis.h>
1818

19+
extern void GKfree(void **ptr1,...);
1920

2021
/*************************************************************************
2122
* This function initializes the data structures of the priority queue

Code/ThirdParty/metis/simvascular_metis/Lib/rename.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377

378378
/* util.c */
379379
#define errexit __errexit
380-
#define GKfree __GKfree
380+
//#define GKfree __GKfree
381381
#ifndef DMALLOC
382382
#define imalloc __imalloc
383383
#define idxmalloc __idxmalloc

0 commit comments

Comments
 (0)