QR_MUMPS
 All Classes Files Functions Variables Enumerations Enumerator Pages
qrm_metis_wrap.c
Go to the documentation of this file.
1 /* ##############################################################################################
2 **
3 ** Copyright 2012 CNRS, INPT
4 **
5 ** This file is part of qr_mumps.
6 **
7 ** qr_mumps is free software: you can redistribute it and/or modify
8 ** it under the terms of the GNU Lesser General Public License as
9 ** published by the Free Software Foundation, either version 3 of
10 ** the License, or (at your option) any later version.
11 **
12 ** qr_mumps is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU Lesser General Public License for more details.
16 **
17 ** You can find a copy of the GNU Lesser General Public License
18 ** in the qr_mumps/doc directory.
19 **
20 ** ##############################################################################################*/
21 
22 
23 /*##############################################################################################*/
33 /*##############################################################################################*/
34 
35 
36 #if defined(have_metis)
37 #include "metis.h"
38 #endif
39 #include <stdio.h>
40 
41 void qrm_metis(int *n, int *iptr, int *jcn, int *cperm, int *iperm){
42 #if defined(have_metis)
43 
44 
45 #if defined(METIS_VER_MAJOR)
46  int options [METIS_NOPTIONS] ;
47 
48  METIS_SetDefaultOptions(options);
49  options[METIS_OPTION_NUMBERING]=1;
50 
51  METIS_NodeND(n, iptr, jcn, NULL, options, cperm, iperm);
52 
53 #else
54  int options [8] ;
55  int numflag;
56 
57  options[0]=0;
58 
59  numflag=1;
60  METIS_NodeND(n, iptr, jcn, &numflag, &options[0], cperm, iperm);
61 #endif
62 
63  return;
64 #endif
65 }
66 
67 
68 
69 
70 
71 
72 
void qrm_metis(int *n, int *iptr, int *jcn, int *cperm, int *iperm)