26#ifndef dftefeKohnShamOperatorContextFE_h
27#define dftefeKohnShamOperatorContextFE_h
55 template <
typename ValueTypeOperator,
56 typename ValueTypeOperand,
57 typename ValueTypeBasisData,
61 :
public linearAlgebra::
62 OperatorContext<ValueTypeOperator, ValueTypeOperand, memorySpace>
78 std::variant<Hamiltonian<float, memorySpace> *,
89 FEBasisManager<ValueTypeOperand, ValueTypeBasisData, memorySpace, dim>
91 std::vector<HamiltonianPtrVariant> hamiltonianComponentsVec,
102 dim> & feBasisManager,
103 std::vector<HamiltonianPtrVariant> hamiltonianVec);
108 bool updateGhostX =
false,
109 bool updateGhostY =
false)
const override;
113 FEBasisManager<ValueTypeOperand, ValueTypeBasisData, memorySpace, dim>
An abstract class to encapsulate the partitioning of a finite element basis across multiple processor...
Definition: FEBasisManager.h:44
Definition: Hamiltonian.h:35
A derived class of linearAlgebra::OperatorContext to encapsulate the action of a discrete Kohn-Sham o...
Definition: KohnShamOperatorContextFE.h:63
linearAlgebra::LinAlgOpContext< memorySpace > d_linAlgOpContext
Definition: KohnShamOperatorContextFE.h:118
const size_type d_maxCellBlock
Definition: KohnShamOperatorContextFE.h:116
std::variant< Hamiltonian< float, memorySpace > *, Hamiltonian< double, memorySpace > *, Hamiltonian< std::complex< float >, memorySpace > *, Hamiltonian< std::complex< double >, memorySpace > * > HamiltonianPtrVariant
Definition: KohnShamOperatorContextFE.h:81
void reinit(const basis::FEBasisManager< ValueTypeOperand, ValueTypeBasisData, memorySpace, dim > &feBasisManager, std::vector< HamiltonianPtrVariant > hamiltonianVec)
Definition: KohnShamOperatorContextFE.t.cpp:682
void apply(linearAlgebra::MultiVector< ValueTypeOperand, memorySpace > &X, linearAlgebra::MultiVector< ValueType, memorySpace > &Y, bool updateGhostX=false, bool updateGhostY=false) const override
Definition: KohnShamOperatorContextFE.t.cpp:873
~KohnShamOperatorContextFE()=default
Storage d_hamiltonianInAllCells
Definition: KohnShamOperatorContextFE.h:115
linearAlgebra::blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueType
define ValueType as the superior (bigger set) of the ValueTypeOperator and ValueTypeOperand (e....
Definition: KohnShamOperatorContextFE.h:73
const basis::FEBasisManager< ValueTypeOperand, ValueTypeBasisData, memorySpace, dim > * d_feBasisManager
Definition: KohnShamOperatorContextFE.h:114
const size_type d_maxWaveFnBatch
Definition: KohnShamOperatorContextFE.h:117
Definition: LinAlgOpContext.h:38
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
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