mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
5x speed up now
This commit is contained in:
parent
1c3ab017e8
commit
d6a2d734d3
@ -276,15 +276,15 @@ public:
|
|||||||
HermitianLinearOperator<CoarseOperator,CoarseVector> HermOp(_CoarseOperator);
|
HermitianLinearOperator<CoarseOperator,CoarseVector> HermOp(_CoarseOperator);
|
||||||
MdagMLinearOperator<CoarseOperator,CoarseVector> MdagMOp(_CoarseOperator);
|
MdagMLinearOperator<CoarseOperator,CoarseVector> MdagMOp(_CoarseOperator);
|
||||||
// MdagMLinearOperator<Matrix,FineField> fMdagMOp(_Matrix);
|
// MdagMLinearOperator<Matrix,FineField> fMdagMOp(_Matrix);
|
||||||
ShiftedMdagMLinearOperator<Matrix,FineField> fMdagMOp(_Matrix,0.5);
|
ShiftedMdagMLinearOperator<Matrix,FineField> fMdagMOp(_Matrix,1.0);
|
||||||
|
|
||||||
FineField vec1(in._grid);
|
FineField vec1(in._grid);
|
||||||
FineField vec2(in._grid);
|
FineField vec2(in._grid);
|
||||||
|
|
||||||
// Chebyshev<FineField> Cheby (0.5,70.0,30,InverseApproximation);
|
// Chebyshev<FineField> Cheby (0.5,70.0,30,InverseApproximation);
|
||||||
// Chebyshev<FineField> ChebyAccu(0.5,70.0,30,InverseApproximation);
|
// Chebyshev<FineField> ChebyAccu(0.5,70.0,30,InverseApproximation);
|
||||||
Chebyshev<FineField> Cheby (1.0,70.0,20,InverseApproximation);
|
Chebyshev<FineField> Cheby (2.0,70.0,10,InverseApproximation);
|
||||||
Chebyshev<FineField> ChebyAccu(1.0,70.0,20,InverseApproximation);
|
Chebyshev<FineField> ChebyAccu(2.0,70.0,10,InverseApproximation);
|
||||||
|
|
||||||
_Aggregates.ProjectToSubspace (Csrc,in);
|
_Aggregates.ProjectToSubspace (Csrc,in);
|
||||||
_Aggregates.PromoteFromSubspace(Csrc,out);
|
_Aggregates.PromoteFromSubspace(Csrc,out);
|
||||||
@ -477,8 +477,8 @@ int main (int argc, char ** argv)
|
|||||||
std::cout << "Unprec CG "<< std::endl;
|
std::cout << "Unprec CG "<< std::endl;
|
||||||
std::cout << "**************************************************"<< std::endl;
|
std::cout << "**************************************************"<< std::endl;
|
||||||
// TrivialPrecon<LatticeFermion> simple;
|
// TrivialPrecon<LatticeFermion> simple;
|
||||||
ConjugateGradient<LatticeFermion> fCG(1.0e-8,100000);
|
// ConjugateGradient<LatticeFermion> fCG(1.0e-8,100000);
|
||||||
fCG(HermDefOp,src,result);
|
// fCG(HermDefOp,src,result);
|
||||||
// exit(0);
|
// exit(0);
|
||||||
|
|
||||||
std::cout << "**************************************************"<< std::endl;
|
std::cout << "**************************************************"<< std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user