Debian Codegraph @

packages/shylu/shylu_dd/core/src/epetra/shylu_config.h

raw
1 // @HEADER
2 // *****************************************************************************
3 // ShyLU: Scalable Hybrid LU Preconditioner and Solver
4 //
5 // Copyright 2011 NTESS and the ShyLU contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 #ifndef SHYLU_CONFIG_H
11 #define SHYLU_CONFIG_H
12
13 #if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS)
14 #ifdef __GNUC__
15 #warning "The ShyLU_DDCore package is deprecated"
16 #endif
17 #endif
18
19 typedef struct
20 {
21 int sym; // flag for symmetry
22 double Sdiagfactor; // % of diagonals added to Schur complement
23 int schurApproxMethod; // ==1 implies blockdiagonal + A22
24 // ==2 implies dropping based
25 // ==4 implies IQR
26 double relative_threshold; // Relative threshold for dropping
27 // only used if schurApproxMethod == 2
28 int inner_maxiters; // maximum iterations for inner solver
29 double inner_tolerance; // relative residual tolerance for inner solver
30 std::string libName; // library for the outer solver
31 std::string schurSolver; // Solver for the Schur complement
32 std::string schurAmesosSolver; // Amesos solver for the Schur complement
33 std::string diagonalBlockSolver; // Solver to use to factorize the diagonal blocks
34 std::string schurPreconditioner; // Preconditioner for the inner iterations on Sbar (AztecOO-Exact)
35 bool silent_subiter;
36 int sep_type;
37 int debug_level;
38 //DebugManager dm;
39 int reset_iter; // When should we reset the guided_probing
40 int overlap;
41 bool amesosForDiagonal;
42 } shylu_config;
43
44 #endif // SHYLU_CONFIG_H