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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2608 - (show annotations)
Tue Aug 18 01:25:18 2009 UTC (10 years, 1 month ago) by jfenwick
File MIME type: text/plain
File size: 3358 byte(s)
Updating Lutz' email

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2009 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
14
15 /**************************************************************/
16
17 /* Paso: SystemMatrix and SystemVector */
18
19 /**************************************************************/
20
21 /* Copyrights by ACcESS Australia 2003,2004,2005 */
22 /* Author: Lutz Gross, l.gross@uq.edu.au */
23
24 /**************************************************************/
25
26 #ifndef INC_PASO_OPTIONS
27 #define INC_PASO_OPTIONS
28
29 #include "Paso_MPI.h"
30
31 /* solver options */
32
33 #define PASO_DEFAULT 0
34 #define PASO_DIRECT 1
35 #define PASO_CHOLEVSKY 2
36 #define PASO_PCG 3
37 #define PASO_CR 4
38 #define PASO_CGS 5
39 #define PASO_BICGSTAB 6
40 #define PASO_SSOR 7
41 #define PASO_ILU0 8
42 #define PASO_ILUT 9
43 #define PASO_JACOBI 10
44 #define PASO_GMRES 11
45 #define PASO_PRES20 12
46 #define PASO_LUMPING 13
47 #define PASO_NO_REORDERING 17
48 #define PASO_MINIMUM_FILL_IN 18
49 #define PASO_NESTED_DISSECTION 19
50 #define PASO_MKL 15
51 #define PASO_UMFPACK 16
52 #define PASO_ITERATIVE 20
53 #define PASO_PASO 21
54 #define PASO_AMG 22
55 #define PASO_REC_ILU 23
56 #define PASO_TRILINOS 24
57 #define PASO_NONLINEAR_GMRES 25
58 #define PASO_TFQMR 26
59 #define PASO_MINRES 27
60 #define PASO_GAUSS_SEIDEL 28
61 #define PASO_GS PASO_GAUSS_SEIDEL
62 #define PASO_RILU 29
63 #define PASO_DEFAULT_REORDERING 30
64 #define PASO_SUPER_LU 31
65 #define PASO_PASTIX 32
66 #define PASO_YAIR_SHAPIRA_COARSENING 33
67 #define PASO_RUGE_STUEBEN_COARSENING 34
68 #define PASO_AGGREGATION_COARSENING 35
69 #define PASO_NO_PRECONDITIONER 36
70 #define PASO_MIN_COARSE_MATRIX_SIZE 37
71
72 typedef struct {
73 index_t method;
74 index_t package;
75 bool_t symmetric;
76 double tolerance;
77 double absolute_tolerance;
78 double inner_tolerance;
79 bool_t adapt_inner_tolerance;
80 bool_t verbose;
81 bool_t reordering;
82 index_t preconditioner;
83 dim_t iter_max;
84 dim_t inner_iter_max;
85 double drop_tolerance;
86 double drop_storage;
87 index_t truncation;
88 index_t restart;
89 dim_t sweeps;
90 dim_t pre_sweeps;
91 dim_t post_sweeps;
92 dim_t level_max;
93 dim_t min_coarse_matrix_size;
94 double coarsening_threshold;
95 bool_t accept_failed_convergence;
96 index_t coarsening_method;
97 double relaxation_factor;
98
99 /* diagnostic values */
100 dim_t num_iter;
101 dim_t num_level;
102 dim_t num_inner_iter;
103 double time;
104 double set_up_time;
105 double net_time;
106 double residual_norm;
107 bool_t converged;
108
109 } Paso_Options;
110
111 /* interfaces: */
112
113
114 PASO_DLL_API
115 void Paso_Options_setDefaults(Paso_Options* in);
116
117 PASO_DLL_API
118 void Paso_Options_show(const Paso_Options* options);
119
120 PASO_DLL_API
121 void Paso_Options_showDiagnostics(const Paso_Options* options);
122 const char* Paso_Options_name(const index_t key);
123 index_t Paso_Options_getPackage(index_t solver,index_t package, bool_t symmetry, Paso_MPIInfo *mpi_info);
124
125 index_t Paso_Options_getSolver(index_t solver,index_t package, bool_t symmetry, Paso_MPIInfo *mpi_info);
126
127 #define Paso_Options_copy(in,out) memcpy((Paso_Options*)out,(Paso_Options*)in,sizeof(Paso_Options))
128
129 #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