26#ifndef dftefeEFEConstraintsLocalDealii_h
27#define dftefeEFEConstraintsLocalDealii_h
31#include <deal.II/lac/affine_constraints.h>
34#include <unordered_map>
41 template <
typename ValueTypeBasisCoeff,
55 dealii::AffineConstraints<ValueTypeBasisCoeff>
56 &dealiiAffineConstraintMatrix,
57 std::vector<std::pair<global_size_type, global_size_type>>
59 std::vector<global_size_type> &ghostIndices,
60 std::unordered_map<global_size_type, size_type>
61 &globalToLocalMapLocalDofs);
70 &constraintsLocalIn)
override;
87 ValueTypeBasisCoeff constraintValue)
override;
89 const std::vector<std::pair<global_size_type, ValueTypeBasisCoeff>> *
117 memorySpace> &vectorData,
119 ValueTypeBasisCoeff alpha)
const override;
124 const dealii::AffineConstraints<ValueTypeBasisCoeff> &
134 const std::vector<std::pair<global_size_type, ValueTypeBasisCoeff>>
158 dealii::AffineConstraints<ValueTypeBasisCoeff>
175 std::vector<std::pair<global_size_type, global_size_type>>
Definition: ConstraintsLocal.h:43
Definition: EFEConstraintsLocalDealii.h:46
ValueTypeBasisCoeff getInhomogeneity(const global_size_type lineDof) const override
Definition: EFEConstraintsLocalDealii.t.cpp:179
void setInhomogeneity(global_size_type basisId, ValueTypeBasisCoeff constraintValue) override
Definition: EFEConstraintsLocalDealii.t.cpp:109
SizeTypeVector d_rowConstraintsIdsLocal
Definition: EFEConstraintsLocalDealii.h:164
void setConstrainedNodesToZero(linearAlgebra::MultiVector< ValueTypeBasisCoeff, memorySpace > &vectorData, size_type blockSize) const override
Definition: EFEConstraintsLocalDealii.t.cpp:532
void copyFrom(const ConstraintsLocal< ValueTypeBasisCoeff, memorySpace > &constraintsLocalIn) override
Definition: EFEConstraintsLocalDealii.t.cpp:60
bool isInhomogeneouslyConstrained(const global_size_type index) const override
Definition: EFEConstraintsLocalDealii.t.cpp:168
void clear() override
Definition: EFEConstraintsLocalDealii.t.cpp:85
GlobalSizeTypeVector d_columnConstraintsIdsGlobal
Definition: EFEConstraintsLocalDealii.h:167
SizeTypeVector d_rowConstraintsSizes
Definition: EFEConstraintsLocalDealii.h:173
void distributeChildToParent(linearAlgebra::MultiVector< ValueTypeBasisCoeff, memorySpace > &vectorData, size_type blockSize) const override
Definition: EFEConstraintsLocalDealii.t.cpp:511
bool d_isCleared
Definition: EFEConstraintsLocalDealii.h:160
bool d_isClosed
Definition: EFEConstraintsLocalDealii.h:161
std::unordered_map< global_size_type, size_type > d_globalToLocalMap
Definition: EFEConstraintsLocalDealii.h:178
~EFEConstraintsLocalDealii()=default
utils::MemoryStorage< double, memorySpace > d_columnConstraintsValues
Definition: EFEConstraintsLocalDealii.h:169
bool inLocallyOwnedRanges(const global_size_type globalId) const
Definition: EFEConstraintsLocalDealii.t.cpp:581
void distributeParentToChild(linearAlgebra::MultiVector< ValueTypeBasisCoeff, memorySpace > &vectorData, size_type blockSize) const override
Definition: EFEConstraintsLocalDealii.t.cpp:489
void copyConstraintsDataFromDealiiToDftefe()
Definition: EFEConstraintsLocalDealii.t.cpp:288
void addEntries(const global_size_type constrainedDofIndex, const std::vector< std::pair< global_size_type, ValueTypeBasisCoeff > > &colWeightPairs)
Definition: EFEConstraintsLocalDealii.t.cpp:465
GlobalSizeTypeVector d_rowConstraintsIdsGlobal
Definition: EFEConstraintsLocalDealii.h:163
SizeTypeVector d_constraintRowSizesAccumulated
Definition: EFEConstraintsLocalDealii.h:166
std::vector< global_size_type > d_ghostIndices
Definition: EFEConstraintsLocalDealii.h:177
dealii::AffineConstraints< ValueTypeBasisCoeff > d_dealiiAffineConstraintMatrix
Definition: EFEConstraintsLocalDealii.h:159
bool isClosed() const override
Definition: EFEConstraintsLocalDealii.t.cpp:127
size_type globalToLocal(const global_size_type globalId) const
Definition: EFEConstraintsLocalDealii.t.cpp:600
void setConstrainedNodes(linearAlgebra::MultiVector< ValueTypeBasisCoeff, memorySpace > &vectorData, size_type blockSize, ValueTypeBasisCoeff alpha) const override
Definition: EFEConstraintsLocalDealii.t.cpp:548
utils::MemoryStorage< ValueTypeBasisCoeff, memorySpace > d_constraintsInhomogenities
Definition: EFEConstraintsLocalDealii.h:171
const std::vector< std::pair< global_size_type, ValueTypeBasisCoeff > > * getConstraintEntries(const global_size_type lineDof) const override
Definition: EFEConstraintsLocalDealii.t.cpp:158
void copyConstraintsDataFromDealiiToDealii(const EFEConstraintsLocalDealii< ValueTypeBasisCoeff, memorySpace, dim > &constraintsDataIn)
Definition: EFEConstraintsLocalDealii.t.cpp:190
bool isGhostEntry(const global_size_type globalId) const
Definition: EFEConstraintsLocalDealii.t.cpp:565
bool isConstrained(global_size_type basisId) const override
Definition: EFEConstraintsLocalDealii.t.cpp:138
std::vector< std::pair< global_size_type, global_size_type > > d_locallyOwnedRanges
Definition: EFEConstraintsLocalDealii.h:176
void close() override
Definition: EFEConstraintsLocalDealii.t.cpp:96
const dealii::AffineConstraints< ValueTypeBasisCoeff > & getAffineConstraints() const
Definition: EFEConstraintsLocalDealii.t.cpp:148
void addLine(const global_size_type lineDof)
Definition: EFEConstraintsLocalDealii.t.cpp:478
SizeTypeVector d_columnConstraintsIdsLocal
Definition: EFEConstraintsLocalDealii.h:165
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
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