1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-07-30 11:17:07 +01:00

Mixed precision for Laplace. Main program with Metric

This commit is contained in:
Chulwoo Jung
2024-02-08 17:13:10 -05:00
parent 026eb8a695
commit 9ad6836b0f
4 changed files with 148 additions and 145 deletions

View File

@@ -36,7 +36,7 @@ directory
#endif
// second level EOFA
#undef EOFA_H
#define USE_OBC
#undef USE_OBC
#define DO_IMPLICIT
NAMESPACE_BEGIN(Grid);
@@ -203,9 +203,9 @@ int main(int argc, char **argv) {
HMCparams.MD.name =std::string("ImplicitMinimumNorm2");
#else
// typedef GenericHMCRunner<LeapFrog> HMCWrapper;
// typedef GenericHMCRunner<ForceGradient> HMCWrapper;
typedef GenericHMCRunner<MinimumNorm2> HMCWrapper;
HMCparams.MD.name =std::string("MinimumNorm2");
typedef GenericHMCRunner<ForceGradient> HMCWrapper;
// typedef GenericHMCRunner<MinimumNorm2> HMCWrapper;
HMCparams.MD.name =std::string("ForceGradient");
#endif
std::cout << GridLogMessage<< HMCparams <<std::endl;
@@ -344,7 +344,7 @@ int main(int argc, char **argv) {
ConjugateGradient<FermionField> ActionCG(ActionStoppingCondition,MaxCGIterations);
ConjugateGradient<FermionField> DerivativeCG(DerivativeStoppingCondition,MaxCGIterations);
#ifdef MIXED_PRECISION
const int MX_inner = 5000;
const int MX_inner = 50000;
// Mixed precision EOFA
LinearOperatorEOFAD Strange_LinOp_L (Strange_Op_L);