/[escript]/branches/RW_WIN32/paso/src/Options.h
ViewVC logotype

Contents of /branches/RW_WIN32/paso/src/Options.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations)
Sun Nov 20 10:51:16 2005 UTC (13 years, 11 months ago) by robwdcock
File MIME type: text/plain
File size: 2334 byte(s)
PARTIAL WIN32 PORT
+ Paso, ext_math and mmio libraries build using scons in top level directory
+ Scons build system currently hard coded against RW's third-party library paths.
+ Still lots TODO to complete port and build system 
1 /* $Id$ */
2
3 /**************************************************************/
4
5 /* Paso: SystemMatrix and SystemVector */
6
7 /**************************************************************/
8
9 /* Copyrights by ACcESS Australia 2003,2004,2005 */
10 /* Author: gross@access.edu.au */
11
12 /**************************************************************/
13
14 #ifndef INC_PASO_OPTIONS
15 #define INC_PASO_OPTIONS
16 #ifdef MSVC
17 #ifdef PASO_EXPORTS
18 #define PASO_DLL __declspec(dllexport)
19 #else
20 #define PASO_DLL __declspec(dllimport)
21 #endif
22 #else
23 #define PASO_DLL
24 #endif
25
26
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32
33 /* solver options */
34
35 #define PASO_DEFAULT 0
36 #define PASO_DIRECT 1
37 #define PASO_CHOLEVSKY 2
38 #define PASO_PCG 3
39 #define PASO_CR 4
40 #define PASO_CGS 5
41 #define PASO_BICGSTAB 6
42 #define PASO_SSOR 7
43 #define PASO_ILU0 8
44 #define PASO_ILUT 9
45 #define PASO_JACOBI 10
46 #define PASO_GMRES 11
47 #define PASO_PRES20 12
48 #define PASO_LUMPING 13
49 #define PASO_SCSL 14
50 #define PASO_MKL 15
51 #define PASO_UMFPACK 16
52 #define PASO_NO_REORDERING 17
53 #define PASO_MINIMUM_FILL_IN 18
54 #define PASO_NESTED_DISSECTION 19
55 #define PASO_ITERATIVE 20
56 #define PASO_PASO 21
57
58
59 typedef struct {
60 index_t method;
61 index_t package;
62 bool_t symmetric;
63 double tolerance;
64
65 bool_t verbose;
66 bool_t reordering;
67 double final_residual;
68 index_t preconditioner;
69 dim_t iter_max;
70 dim_t iter;
71 double drop_tolerance;
72 double drop_storage;
73 dim_t truncation;
74 dim_t restart;
75
76
77 } Paso_Options;
78
79 /* interfaces: */
80
81 PASO_DLL void Paso_Options_setDefaults(Paso_Options* in);
82 PASO_DLL index_t Paso_Options_getPackage(index_t solver,index_t package, bool_t symmetry);
83 PASO_DLL index_t Paso_Options_getSolver(index_t solver,index_t package, bool_t symmetry);
84
85 #ifdef __cplusplus
86 }
87 #endif /* __cplusplus */
88
89
90
91 #endif /* #ifndef INC_PASO_OPTIONS */
92
93
94
95 /*
96 * $Log$
97 * Revision 1.2 2005/09/15 03:44:38 jgs
98 * Merge of development branch dev-02 back to main trunk on 2005-09-15
99 *
100 * Revision 1.1.2.2 2005/09/07 00:59:08 gross
101 * some inconsistent renaming fixed to make the linking work.
102 *
103 * Revision 1.1.2.1 2005/09/05 06:29:46 gross
104 * These files have been extracted from finley to define a stand alone libray for iterative
105 * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
106 * has not been tested yet.
107 *
108 *
109 */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26