Skip to content

Commit

Permalink
display message about using a different mu for the setup only if it r…
Browse files Browse the repository at this point in the history
…eally differs from the current mu
  • Loading branch information
kostrzewa committed Mar 16, 2024
1 parent d24f12a commit cba293d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quda_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ void _updateQudaMultigridPreconditioner(){

// if we have set an explicit mu value for the generation of our MG setup,
// we would like to use it here
if( fabs(quda_input.mg_setup_2kappamu) > 2*DBL_EPSILON ){
if( fabs( fabs(quda_input.mg_setup_2kappamu/2.0/g_kappa) - fabs(quda_mg_param.invert_param->mu) ) > 2*DBL_EPSILON ){
double save_mu = quda_mg_param.invert_param->mu;
// note the minus sign
quda_mg_param.invert_param->mu = -quda_input.mg_setup_2kappamu/2.0/g_kappa;
Expand Down

0 comments on commit cba293d

Please sign in to comment.