DFT-EFE
 
Loading...
Searching...
No Matches
OrthoEFEOverlapInverseOpContextGLL.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 dftefeEFEOverlapInverseOperatorContext_h
27#define dftefeEFEOverlapInverseOperatorContext_h
28
29#include <utils/TypeConfig.h>
31#include <utils/MemoryStorage.h>
44#include <vector>
45#include <memory>
46
47namespace dftefe
48{
49 namespace basis
50 {
51 template <typename ValueTypeOperator,
52 typename ValueTypeOperand,
53 utils::MemorySpace memorySpace,
54 size_type dim>
56 : public linearAlgebra::
57 OperatorContext<ValueTypeOperator, ValueTypeOperand, memorySpace>
58 {
59 public:
60 using ValueType =
62 ValueTypeOperand>;
63
64 public:
66 const basis::
68 &feBasisManager,
70 &classicalBlockGLLBasisDataStorage,
72 &enrichmentBlockEnrichmentBasisDataStorage,
74 &enrichmentBlockClassicalBasisDataStorage,
76 linAlgOpContext);
77
78
79 // --------------DEBUG ONLY (direct inversion)---------
81 const basis::
83 & feBasisManager,
84 const OrthoEFEOverlapOperatorContext<ValueTypeOperator,
85 ValueTypeOperand,
86 memorySpace,
87 dim> &MContext,
89 linAlgOpContext,
90 bool isCGSolved = true);
91
92
93 void
94 apply(
97
98 private:
99 const FEBasisManager<ValueTypeOperand,
100 ValueTypeOperator,
101 memorySpace,
103 const EFEBasisDofHandler<ValueTypeOperand,
104 ValueTypeOperator,
105 memorySpace,
108 std::shared_ptr<utils::MemoryStorage<ValueTypeOperator, memorySpace>>
111 std::shared_ptr<linearAlgebra::LinAlgOpContext<memorySpace>>
113
114
117 std::shared_ptr<linearAlgebra::LinearSolverFunction<ValueTypeOperator,
118 ValueTypeOperand,
119 memorySpace>>
121 std::shared_ptr<linearAlgebra::LinearSolverImpl<ValueTypeOperator,
122 ValueTypeOperand,
123 memorySpace>>
125
126 }; // end of class BasisOverlapOperatorContext
127 } // namespace basis
128} // end of namespace dftefe
130#endif // dftefeEFEOverlapInverseOperatorContext_h
Definition: EFEBasisDofHandler.h:57
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: OrthoEFEOverlapInverseOpContextGLL.h:58
std::shared_ptr< linearAlgebra::LinAlgOpContext< memorySpace > > d_linAlgOpContext
Definition: OrthoEFEOverlapInverseOpContextGLL.h:112
global_size_type d_nglobalIds
Definition: OrthoEFEOverlapInverseOpContextGLL.h:115
linearAlgebra::Vector< ValueTypeOperator, memorySpace > d_diagonalInv
Definition: OrthoEFEOverlapInverseOpContextGLL.h:107
void apply(linearAlgebra::MultiVector< ValueTypeOperand, memorySpace > &X, linearAlgebra::MultiVector< ValueType, memorySpace > &Y) const override
Definition: OrthoEFEOverlapInverseOpContextGLL.t.cpp:963
bool d_isCGSolved
Definition: OrthoEFEOverlapInverseOpContextGLL.h:116
const FEBasisManager< ValueTypeOperand, ValueTypeOperator, memorySpace, dim > * d_feBasisManager
Definition: OrthoEFEOverlapInverseOpContextGLL.h:102
const EFEBasisDofHandler< ValueTypeOperand, ValueTypeOperator, memorySpace, dim > * d_efebasisDofHandler
Definition: OrthoEFEOverlapInverseOpContextGLL.h:106
std::shared_ptr< linearAlgebra::LinearSolverFunction< ValueTypeOperator, ValueTypeOperand, memorySpace > > d_overlapInvPoisson
Definition: OrthoEFEOverlapInverseOpContextGLL.h:120
size_type d_nglobalEnrichmentIds
Definition: OrthoEFEOverlapInverseOpContextGLL.h:110
std::shared_ptr< utils::MemoryStorage< ValueTypeOperator, memorySpace > > d_basisOverlapEnrichmentBlock
Definition: OrthoEFEOverlapInverseOpContextGLL.h:109
std::shared_ptr< linearAlgebra::LinearSolverImpl< ValueTypeOperator, ValueTypeOperand, memorySpace > > d_CGSolve
Definition: OrthoEFEOverlapInverseOpContextGLL.h:124
linearAlgebra::blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueType
Definition: OrthoEFEOverlapInverseOpContextGLL.h:62
A derived class of linearAlgebra::OperatorContext to encapsulate the action of a discrete operator on...
Definition: OrthoEFEOverlapOperatorContext.h:67
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
unsigned long int global_size_type
Definition: TypeConfig.h:9