I have just started using metis, and I want to call the graph partitioning routines from my FORTRAN code. However, I cannot even set the options array;

First, I allocate an integer array ``options'' with the size METIS_NOPTINS = 40 (as defined in the source code) and then call


It return the value of one, with the following error

*** glibc detected *** free(): corrupted unsorted chunks: 0x0000000009878f00 ***
*** glibc detected *** malloc(): memory corruption: 0x000000000988fcc0 ***

Am I missing sth here? The manual says METIS already has the interface with fortran. So, all I did was installing it as described in the install page.

Many thanks for your help!

RE: I forgot to add a Fortran

I forgot to add a Fortran interface to this routine. For now, just set all the entries in that array to -1 yourself.