DFT-EFE
Loading...
Searching...
No Matches
SolverTypes.h
Go to the documentation of this file.
1
2
/******************************************************************************
3
* Copyright (c) 2021. *
4
* The Regents of the University of Michigan and DFT-EFE developers. *
5
* *
6
* This file is part of the DFT-EFE code. *
7
* *
8
* DFT-EFE is free software: you can redistribute it and/or modify *
9
* it under the terms of the Lesser GNU General Public License as *
10
* published by the Free Software Foundation, either version 3 of *
11
* the License, or (at your option) any later version. *
12
* *
13
* DFT-EFE is distributed in the hope that it will be useful, but *
14
* WITHOUT ANY WARRANTY; without even the implied warranty *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
16
* See the Lesser GNU General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU Lesser General Public *
19
* License at the top level of DFT-EFE distribution. If not, see *
20
* <https://www.gnu.org/licenses/>. *
21
******************************************************************************/
22
23
/*
24
* @author Bikash Kanungo
25
*/
26
27
#ifndef dftefeSolverTypes_h
28
#define dftefeSolverTypes_h
29
30
namespace
dftefe
31
{
32
namespace
linearAlgebra
33
{
34
enum class
LinearSolverType
35
{
36
CG
37
// For future: GMRES, MINRES, BICG, etc
38
//
39
};
40
41
enum class
PCType
42
{
43
NONE
,
44
JACOBI
45
// Add more sophisticated ones later
46
};
47
48
enum class
LinearSolverReturnType
49
{
50
SUCCESS
,
// The linear solve was successful
51
FAILURE
,
// generic, no reason known
52
MAX_ITER_REACHED
,
// Max. iteration provided by the user reached before
53
// convergence
54
INDEFINITE_PC
,
// the preconditioner is usually assumed to be positive
55
// definite
56
NAN_RES
,
// NaN or infinite values found in the evaluation of residual
57
// norm
58
};
59
}
// end of namespace linearAlgebra
60
}
// end of namespace dftefe
61
#endif
// dftefeSolverTypes_h
dftefe::linearAlgebra::PreconditionerType::NONE
@ NONE
dftefe::linearAlgebra::PreconditionerType::JACOBI
@ JACOBI
dftefe::linearAlgebra::PCType
PCType
Definition:
SolverTypes.h:42
dftefe::linearAlgebra::LinearSolverReturnType
LinearSolverReturnType
Definition:
SolverTypes.h:49
dftefe::linearAlgebra::LinearSolverReturnType::MAX_ITER_REACHED
@ MAX_ITER_REACHED
dftefe::linearAlgebra::LinearSolverReturnType::INDEFINITE_PC
@ INDEFINITE_PC
dftefe::linearAlgebra::LinearSolverReturnType::FAILURE
@ FAILURE
dftefe::linearAlgebra::LinearSolverReturnType::NAN_RES
@ NAN_RES
dftefe::linearAlgebra::LapackErrorCode::SUCCESS
@ SUCCESS
dftefe::linearAlgebra::LinearSolverType
LinearSolverType
Definition:
LinearAlgebraTypes.h:36
dftefe::linearAlgebra::LinearSolverType::CG
@ CG
dftefe
dealii includes
Definition:
AtomFieldDataSpherical.cpp:31
src
linearAlgebra
SolverTypes.h
Generated by
1.9.5