DFT-EFE
 
Loading...
Searching...
No Matches
CFEOverlapInverseOpContextGLL.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 dftefeCFEOverlapInverseOpContextGLL_h
27#define dftefeCFEOverlapInverseOpContextGLL_h
28
29#include <utils/TypeConfig.h>
42#include <vector>
43#include <memory>
44
45namespace dftefe
46{
47 namespace basis
48 {
49 template <typename ValueTypeOperator,
50 typename ValueTypeOperand,
51 utils::MemorySpace memorySpace,
52 size_type dim>
54 : public linearAlgebra::
55 OperatorContext<ValueTypeOperator, ValueTypeOperand, memorySpace>
56 {
57 public:
58 using ValueType =
60 ValueTypeOperand>;
61
62 public:
64 const basis::
66 &feBasisManager,
68 &classicalGLLBasisDataStorage,
70 linAlgOpContext);
71
72 // --------------DEBUG ONLY (direct inversion using CG solve)---------
74 const basis::
76 & feBasisManager,
77 const CFEOverlapOperatorContext<ValueTypeOperator,
78 ValueTypeOperand,
79 memorySpace,
80 dim> &MContext,
82 linAlgOpContext,
83 bool isCGSolved = true);
84
85 void
86 apply(
89
90 private:
91 const FEBasisManager<ValueTypeOperand,
92 ValueTypeOperator,
93 memorySpace,
96 const std::string d_constraints;
97
99 std::shared_ptr<linearAlgebra::LinearSolverFunction<ValueTypeOperator,
100 ValueTypeOperand,
101 memorySpace>>
103 std::shared_ptr<linearAlgebra::LinearSolverImpl<ValueTypeOperator,
104 ValueTypeOperand,
105 memorySpace>>
107 std::shared_ptr<linearAlgebra::LinAlgOpContext<memorySpace>>
109
110 }; // end of class BasisOverlapOperatorContext
111 } // namespace basis
112} // end of namespace dftefe
114#endif // dftefeCFEOverlapInverseOpContextGLL_h
Definition: CFEOverlapInverseOpContextGLL.h:56
std::shared_ptr< linearAlgebra::LinearSolverFunction< ValueTypeOperator, ValueTypeOperand, memorySpace > > d_overlapInvPoisson
Definition: CFEOverlapInverseOpContextGLL.h:102
void apply(linearAlgebra::MultiVector< ValueTypeOperand, memorySpace > &X, linearAlgebra::MultiVector< ValueType, memorySpace > &Y) const override
Definition: CFEOverlapInverseOpContextGLL.t.cpp:448
bool d_isCGSolved
Definition: CFEOverlapInverseOpContextGLL.h:98
linearAlgebra::blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueType
Definition: CFEOverlapInverseOpContextGLL.h:60
std::shared_ptr< linearAlgebra::LinearSolverImpl< ValueTypeOperator, ValueTypeOperand, memorySpace > > d_CGSolve
Definition: CFEOverlapInverseOpContextGLL.h:106
linearAlgebra::Vector< ValueTypeOperator, memorySpace > d_diagonalInv
Definition: CFEOverlapInverseOpContextGLL.h:95
const FEBasisManager< ValueTypeOperand, ValueTypeOperator, memorySpace, dim > * d_feBasisManager
Definition: CFEOverlapInverseOpContextGLL.h:94
const std::string d_constraints
Definition: CFEOverlapInverseOpContextGLL.h:96
std::shared_ptr< linearAlgebra::LinAlgOpContext< memorySpace > > d_linAlgOpContext
Definition: CFEOverlapInverseOpContextGLL.h:108
A derived class of linearAlgebra::OperatorContext to encapsulate the action of a discrete operator on...
Definition: CFEOverlapOperatorContext.h:63
An abstract class to store and access data for a given basis, such as the basis function values on a ...
Definition: FEBasisDataStorage.h:53
An abstract class to encapsulate the partitioning of a finite element basis across multiple processor...
Definition: FEBasisManager.h:44
Definition: LinAlgOpContext.h:38
Abstract class that implements the LinearSolver algorithm. For example, the derived classes of it,...
Definition: LinearSolverImpl.h:60
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
A class that encapsulates a vector. This is a vector in the mathematical sense and not in the sense o...
Definition: Vector.h:122
blas::scalar_type< ValueType1, ValueType2 > scalar_type
Definition: BlasLapackTypedef.h:70
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8