source: issm/branches/trunk-jpl-damage/src/c/modules/Scotchx/Scotchx.h@ 12878

Last change on this file since 12878 was 12878, checked in by cborstad, 13 years ago

merged trunk-jpl into trunk-jpl-damage through revision 12877

File size: 2.2 KB
Line 
1/*!\file: Scotchxx.h
2 * \brief header file for Scotch partitioner
3 */
4
5#ifndef _SCOTCHX_H
6#define _SCOTCHX_H
7
8
9#undef __FUNCT__
10#define __FUNCT__ "Scotchx"
11
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#else
15#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
16#endif
17
18#include <stdio.h>
19#include <string.h>
20
21#include "../../Container/Container.h"
22#include "../../classes/objects/objects.h"
23
24#ifdef _HAVE_SCOTCH_ //only works if scotch library has been compiled in.
25
26 #define GMAP
27
28 #include "scotch_module.h"
29 #include "scotch_common.h"
30 #include "scotch.h"
31 #include "scotch_gmap.h"
32
33 /*
34 ** The static variables.
35 */
36
37 static int C_partNbr = 2; /* Default number of parts */
38 static int C_paraNum = 0; /* Number of parameters */
39 static int C_paraNbr = 0; /* No parameters for mapping */
40 static int C_fileNum = 0; /* Number of file in arg list */
41 static int C_fileNbr = 4; /* Number of files for mapping */
42 static File C_fileTab[C_FILENBR] = { /* File array */
43 { "-", NULL, "r" },
44 { "-", NULL, "r" },
45 { "-", NULL, "w" },
46 { "-", NULL, "w" } };
47
48 static const char * C_usageList[] = { /* Usage */
49 "gmap [<input source file> [<input target file> [<output mapping file> [<output log file>]]]] <options>",
50 "gpart [<nparts>] [<input source file> [<output mapping file> [<output log file>]]] <options>",
51 " -h : Display this help",
52 " -m<strat> : Set mapping strategy (see user's manual)",
53 " -s<obj> : Force unity weights on <obj>:",
54 " e : edges",
55 " v : vertices",
56 " -V : Print program version and copyright",
57 " -v<verb> : Set verbose mode to <verb>:",
58 " m : mapping information",
59 " s : strategy information",
60 " t : timing information",
61 "",
62 "See default strategy with option '-vs'",
63 NULL };
64
65#endif
66
67/* local prototypes: */
68int gmapx ( int (**pmaptabi)[2], int argcm, char *argvm[], int nvi, int ne2i, int *ir, int *jc, int *vli, int *vwi, int *ewi, char archtyp[], int nai, int *api);
69
70#endif /* _SCOTCHX_H */
Note: See TracBrowser for help on using the repository browser.