DFT-EFE
 
Loading...
Searching...
No Matches
PreconditionerNone.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Avirup Sircar
24 */
25
26#ifndef dftefePreconditionerNone_h
27#define dftefePreconditionerNone_h
28
35namespace dftefe
36{
37 namespace linearAlgebra
38 {
49 template <typename ValueTypeOperator,
50 typename ValueTypeOperand,
51 utils::MemorySpace memorySpace>
53 : public Preconditioner<ValueTypeOperator, ValueTypeOperand, memorySpace>
54 {
55 //
56 // typedefs
57 //
58 public:
59 //
60 // alias to define the union of ValueTypeOperator and ValueTypeOperand
61 // (e.g., the union of double and complex<double> is complex<double>)
62 //
65
66 public:
72
78
79 /*
80 * @brief Function to apply the Jacobi preconditioner on an input Vector \p X
81 * and store the output in \p Y. That is, it stores \f$Y_i=1/X_i$\f
82 *
83 * @param[in] X Input Vector
84 * @param[out] Y Output Vector
85 *
86 * @note The input Vector \p X can be modified inside the function for
87 * performance reasons. If the user needs \p X to be constant
88 * (un-modified), we suggest the user to make a copy of \p X
89 * prior to calling this function
90 *
91 */
92 void
95
97 getPreconditionerType() const override;
98
99 private:
101 };
102
103
104 } // end of namespace linearAlgebra
105} // end of namespace dftefe
107#endif // dftefePreconditionerNone_h
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
Class to encapsulate the NONE preconditioner. Just takes in a vector and returns it.
Definition: PreconditionerNone.h:54
void apply(MultiVector< ValueTypeOperand, memorySpace > &X, MultiVector< ValueTypeUnion, memorySpace > &Y) const override
Definition: PreconditionerNone.t.cpp:47
~PreconditionerNone()=default
Default Destructor.
PreconditionerType getPreconditionerType() const override
Definition: PreconditionerNone.t.cpp:59
PreconditionerNone()
Constructor.
Definition: PreconditionerNone.t.cpp:38
PreconditionerType d_pcType
Definition: PreconditionerNone.h:100
blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueTypeUnion
Definition: PreconditionerNone.h:64
Abstract class to encapsulate a preconditioner.
Definition: Preconditioner.h:54
blas::scalar_type< ValueType1, ValueType2 > scalar_type
Definition: BlasLapackTypedef.h:70
PreconditionerType
Definition: LinearAlgebraTypes.h:41
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31