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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5148 - (show annotations)
Mon Sep 15 01:25:23 2014 UTC (5 years ago) by caltinay
File MIME type: text/plain
File size: 4572 byte(s)
Merging ripley diagonal storage + CUDA support into trunk.
Options file version has been incremented due to new options
'cuda' and 'nvccflags'.

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 /****************************************************************************/
19
20 /* Paso: Options */
21
22 /****************************************************************************/
23
24 /* Copyrights by ACcESS Australia 2003,2004,2005 */
25 /* Author: Lutz Gross, l.gross@uq.edu.au */
26
27 /****************************************************************************/
28
29 #ifndef __PASO_OPTIONS_H__
30 #define __PASO_OPTIONS_H__
31
32 #include "esysUtils/types.h"
33
34 // valid solver options
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_ILU0 8
43 #define PASO_ILUT 9
44 #define PASO_JACOBI 10
45 #define PASO_GMRES 11
46 #define PASO_PRES20 12
47 #define PASO_MKL 15
48 #define PASO_UMFPACK 16
49 #define PASO_NO_REORDERING 17
50 #define PASO_MINIMUM_FILL_IN 18
51 #define PASO_NESTED_DISSECTION 19
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_AMLI 38
71 #define PASO_STANDARD_COARSENING 39
72 #define PASO_CLASSIC_INTERPOLATION_WITH_FF_COUPLING 50
73 #define PASO_CLASSIC_INTERPOLATION 51
74 #define PASO_DIRECT_INTERPOLATION 52
75 #define PASO_BOOMERAMG 60
76 #define PASO_CIJP_FIXED_RANDOM_COARSENING 61
77 #define PASO_CIJP_COARSENING 62
78 #define PASO_FALGOUT_COARSENING 63
79 #define PASO_PMIS_COARSENING 64
80 #define PASO_HMIS_COARSENING 65
81 #define PASO_LINEAR_CRANK_NICOLSON 66
82 #define PASO_CRANK_NICOLSON 67
83 #define PASO_BACKWARD_EULER 68
84
85 #define PASO_SMOOTHER 99999999
86
87 namespace paso {
88
89 PASO_DLL_API
90 struct Options
91 {
92 Options() { setDefaults(); }
93
94 /// sets the default values for solver options
95 void setDefaults();
96
97 /// prints current option values
98 void show() const;
99
100 /// prints diagnostic data
101 void showDiagnostics() const;
102
103 static const char* name(index_t key);
104
105 static index_t getPackage(index_t solver, index_t package, bool symmetry,
106 const esysUtils::JMPI& mpi_info);
107
108 /// returns the solver to be used with given combination
109 static index_t getSolver(index_t solver, index_t package, bool symmetry,
110 const esysUtils::JMPI& mpi_info);
111
112 index_t method;
113 index_t package;
114 bool symmetric;
115 double tolerance;
116 double absolute_tolerance;
117 double inner_tolerance;
118 bool adapt_inner_tolerance;
119 bool verbose;
120 bool reordering;
121 index_t preconditioner;
122 dim_t iter_max;
123 dim_t inner_iter_max;
124 double drop_tolerance;
125 double drop_storage;
126 index_t truncation;
127 index_t restart;
128 dim_t sweeps;
129 dim_t pre_sweeps;
130 dim_t post_sweeps;
131 dim_t cycle_type;
132 dim_t level_max;
133 dim_t min_coarse_matrix_size;
134 dim_t smoother;
135 double coarsening_threshold;
136 bool accept_failed_convergence;
137 index_t coarsening_method;
138 double relaxation_factor;
139 bool use_local_preconditioner;
140 double min_coarse_sparsity;
141 dim_t refinements;
142 dim_t coarse_matrix_refinements;
143 double diagonal_dominance_threshold;
144 bool usePanel;
145 index_t interpolation_method;
146 index_t ode_solver;
147
148 // diagnostic values
149 dim_t num_iter;
150 dim_t num_level;
151 dim_t num_inner_iter;
152 double time;
153 double set_up_time;
154 double coarsening_selection_time;
155 double coarsening_matrix_time;
156 double net_time;
157 double residual_norm;
158 bool converged;
159 double preconditioner_size; // in Mbytes
160 bool time_step_backtracking_used;
161 double coarse_level_sparsity;
162 dim_t num_coarse_unknowns;
163 };
164
165 } // namespace paso
166
167 #endif // __PASO_OPTIONS_H__
168

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26