/[escript]/trunk/paso/src/Options.h
ViewVC logotype

Annotation of /trunk/paso/src/Options.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1823 - (hide annotations)
Wed Oct 1 05:56:05 2008 UTC (11 years, 1 month ago) by artak
File MIME type: text/plain
File size: 2342 byte(s)
GS preconditioner now works for block_size 2 and 3 as well. Sweep parameter introdiced, but not working yet
1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4     * Copyright (c) 2003-2008 by University of Queensland
5     * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 dhawcroft 631
14 ksteube 1811
15 jgs 150 /**************************************************************/
16    
17     /* Paso: SystemMatrix and SystemVector */
18    
19     /**************************************************************/
20    
21     /* Copyrights by ACcESS Australia 2003,2004,2005 */
22     /* Author: gross@access.edu.au */
23    
24     /**************************************************************/
25    
26     #ifndef INC_PASO_OPTIONS
27     #define INC_PASO_OPTIONS
28    
29     /* solver options */
30    
31     #define PASO_DEFAULT 0
32     #define PASO_DIRECT 1
33     #define PASO_CHOLEVSKY 2
34     #define PASO_PCG 3
35     #define PASO_CR 4
36     #define PASO_CGS 5
37     #define PASO_BICGSTAB 6
38     #define PASO_SSOR 7
39     #define PASO_ILU0 8
40     #define PASO_ILUT 9
41     #define PASO_JACOBI 10
42     #define PASO_GMRES 11
43     #define PASO_PRES20 12
44     #define PASO_LUMPING 13
45     #define PASO_SCSL 14
46     #define PASO_MKL 15
47     #define PASO_UMFPACK 16
48     #define PASO_NO_REORDERING 17
49     #define PASO_MINIMUM_FILL_IN 18
50     #define PASO_NESTED_DISSECTION 19
51     #define PASO_ITERATIVE 20
52     #define PASO_PASO 21
53 gross 430 #define PASO_RILU 22
54     #define PASO_AMG 23
55 ksteube 1312 #define PASO_TRILINOS 24
56 gross 1639 #define PASO_NONLINEAR_GMRES 25
57 artak 1703 #define PASO_TFQMR 26
58 artak 1787 #define PASO_MINRES 27
59 artak 1819 #define PASO_GS 28
60 jgs 150
61     typedef struct {
62     index_t method;
63     index_t package;
64     bool_t symmetric;
65     double tolerance;
66 gross 1476 double absolute_tolerance;
67     double inner_tolerance;
68     bool_t adapt_inner_tolerance;
69 jgs 150
70     bool_t verbose;
71     bool_t reordering;
72     double final_residual;
73     index_t preconditioner;
74     dim_t iter_max;
75 gross 1476 dim_t inner_iter_max;
76 jgs 150 dim_t iter;
77     double drop_tolerance;
78     double drop_storage;
79     dim_t truncation;
80     dim_t restart;
81 artak 1823 dim_t sweeps;
82 jgs 150
83    
84     } Paso_Options;
85    
86     /* interfaces: */
87    
88     void Paso_Options_setDefaults(Paso_Options* in);
89     index_t Paso_Options_getPackage(index_t solver,index_t package, bool_t symmetry);
90     index_t Paso_Options_getSolver(index_t solver,index_t package, bool_t symmetry);
91 gross 1639 #define Paso_Options_copy(in,out) memcpy((Paso_Options*)out,(Paso_Options*)in,sizeof(Paso_Options))
92 jgs 150
93     #endif /* #ifndef INC_PASO_OPTIONS */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26