Skip to content

Commit

Permalink
Merge pull request #579 from etmc/invert_doublet_info
Browse files Browse the repository at this point in the history
output the values of mubar, epsbar, kappa and csw passed to invert_doublet_eu_quda
  • Loading branch information
kostrzewa authored Jan 30, 2024
2 parents 28295ac + 3cef4b5 commit 1466755
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions quda_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,6 @@ int invert_doublet_eo_quda(spinor * const Even_new_s, spinor * const Odd_new_s,
// IMPORTANT: use opposite TM mu-flavor since gamma5 -> -gamma5
inv_param.mu = -g_mubar /2./g_kappa;
inv_param.epsilon = g_epsbar/2./g_kappa;
// FIXME: in principle, there is also QUDA_TWIST_DEG_DOUBLET
inv_param.twist_flavor = QUDA_TWIST_NONDEG_DOUBLET;
inv_param.Ls = 2;

Expand Down Expand Up @@ -1178,18 +1177,22 @@ int invert_doublet_eo_quda(spinor * const Even_new_s, spinor * const Odd_new_s,

// choose solver
if(solver_flag == BICGSTAB) {
if(g_proc_id == 0) {printf("# TM_QUDA: Using BiCGstab!\n"); fflush(stdout);}
inv_param.inv_type = QUDA_BICGSTAB_INVERTER;
if(g_proc_id == 0) {printf("# TM_QUDA: Using BiCGstab!\n"); fflush(stdout);}
}
else {
/* Here we invert the hermitean operator squared */
inv_param.inv_type = QUDA_CG_INVERTER;
if(g_proc_id == 0) {
printf("# TM_QUDA: Using mixed precision CG!\n");
printf("# TM_QUDA: mu = %.12f, kappa = %.12f\n", g_mu/2./g_kappa, g_kappa);
fflush(stdout);
}
}
if(g_proc_id == 0) {
printf("# TM_QUDA: mubar = %.12f, epsbar = %.12f, kappa = %.12f, csw = %.12f\n",
-inv_param.mu, inv_param.epsilon, inv_param.kappa, inv_param.clover_coeff/inv_param.kappa);
fflush(stdout);
}

if( even_odd_flag ) {
inv_param.solve_type = QUDA_NORMERR_PC_SOLVE;
Expand Down

0 comments on commit 1466755

Please sign in to comment.