From cba293d539b7e0713ac4e87908ea0217b69900f2 Mon Sep 17 00:00:00 2001 From: Bartosz Kostrzewa Date: Sat, 16 Mar 2024 14:04:57 +0100 Subject: [PATCH] display message about using a different mu for the setup only if it really differs from the current mu --- quda_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quda_interface.c b/quda_interface.c index c84a8c275..9d9c350c5 100644 --- a/quda_interface.c +++ b/quda_interface.c @@ -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;