mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
WilsonMG: Switch to Galerkin coarsening in CoarsenedMatrix
This commit is contained in:
parent
68d686ec38
commit
4b8710970c
@ -295,8 +295,17 @@ namespace Grid {
|
|||||||
return norm2(out);
|
return norm2(out);
|
||||||
};
|
};
|
||||||
|
|
||||||
RealD Mdag (const CoarseVector &in, CoarseVector &out){
|
RealD Mdag (const CoarseVector &in, CoarseVector &out){
|
||||||
return M(in,out);
|
// // corresponds to Petrov-Galerkin coarsening
|
||||||
|
// return M(in,out);
|
||||||
|
|
||||||
|
// corresponds to Galerkin coarsening
|
||||||
|
CoarseVector tmp(Grid());
|
||||||
|
G5C(tmp, in);
|
||||||
|
M(tmp, out);
|
||||||
|
G5C(out, out);
|
||||||
|
return norm2(out);
|
||||||
|
};
|
||||||
|
|
||||||
void Mdir(const CoarseVector &in, CoarseVector &out, int dir, int disp){
|
void Mdir(const CoarseVector &in, CoarseVector &out, int dir, int disp){
|
||||||
|
|
||||||
@ -453,7 +462,7 @@ namespace Grid {
|
|||||||
std::cout<<GridLogMessage<<"Computed Coarse Operator"<<std::endl;
|
std::cout<<GridLogMessage<<"Computed Coarse Operator"<<std::endl;
|
||||||
#endif
|
#endif
|
||||||
// ForceHermitian();
|
// ForceHermitian();
|
||||||
AssertHermitian();
|
// AssertHermitian();
|
||||||
// ForceDiagonal();
|
// ForceDiagonal();
|
||||||
}
|
}
|
||||||
void ForceDiagonal(void) {
|
void ForceDiagonal(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user