From 971243e0bc1eb5f77b9286be3d1b58db14c4a06a Mon Sep 17 00:00:00 2001 From: Marcogarofalo Date: Wed, 3 Apr 2024 18:46:35 +0200 Subject: [PATCH] remove printing for quda debug --- monomial/ndrat_monomial.c | 164 +------------------------------------- 1 file changed, 1 insertion(+), 163 deletions(-) diff --git a/monomial/ndrat_monomial.c b/monomial/ndrat_monomial.c index a79e9b738..77c7cb02d 100644 --- a/monomial/ndrat_monomial.c +++ b/monomial/ndrat_monomial.c @@ -71,153 +71,6 @@ void nd_set_global_parameter(monomial * const mnl) { return; } - - -void print_spinor_updow_shift( double** up, double** down, int odd, int num_shifts) { - tm_stopwatch_push(&g_timers, __func__, ""); - - const int change_sign[4] = {-1, 1, 1, -1}; - const int change_spin[4] = {3, 2, 1, 0}; - const int Vh = VOLUME/2; - - // now copy and reorder from tempSpinor to spinor - for(int shift = 0; shift < num_shifts; shift++){ - for(int ud = 0; ud < 2; ud++){ - double **sp; - if (ud==0) sp=up; - if (ud==1) sp=down; - for( int x0=0; x0iter1 += solve_mms_nd(g_chi_up_spinor_field, g_chi_dn_spinor_field, mnl->pf, mnl->pf2, &(mnl->solver_params) ); - // set_spinor_updow_shift( g_chi_up_spinor_field, g_chi_dn_spinor_field, 1, mnl->rat.np); - if ( mnl->external_library == QUDA_LIB){ if(!mnl->even_odd_flag) { fatal_error("QUDA support only even_odd_flag",__func__); @@ -304,9 +155,6 @@ void ndrat_derivative(const int id, hamiltonian_field_t * const hf) { if (g_debug_level > 3){ su3adj **given = hf->derivative; hf->derivative = debug_derivative; - // int store_solver = mnl->solver; - // mnl->solver_params.external_inverter = NO_EXT_INV; - // mnl->solver = CGMMSND; mnl->external_library = NO_EXT_LIB; tm_debug_printf( 0, 3, "Recomputing the derivative from tmLQCD\n"); ndrat_derivative(id, hf); @@ -320,7 +168,6 @@ void ndrat_derivative(const int id, hamiltonian_field_t * const hf) { #endif // no other option, TM_USE_QUDA already checked by solver } else{ - // print_spinor_updow_shift( g_chi_up_spinor_field, g_chi_dn_spinor_field, 1, mnl->rat.np); // TODO: check that we did not breack anything rearranging the loop // for(int j = (mnl->rat.np-1); j > -1; j--) { for(int j = 0; j < mnl->rat.np; j++) { @@ -331,9 +178,6 @@ void ndrat_derivative(const int id, hamiltonian_field_t * const hf) { Qsw_tau1_sub_const_ndpsi(mnl->w_fields[0], mnl->w_fields[1], g_chi_up_spinor_field[j], g_chi_dn_spinor_field[j], -I*mnl->rat.mu[j], 1., mnl->EVMaxInv); - printf("MARCO:printpar mnl->rat.mu[%d] =%g\n",j,mnl->rat.mu[j]); - printf("MARCO:printpar mnl->rat.rmu[%d] =%g\n",j,mnl->rat.rmu[j]); - printf("MARCO:printpar mnl->EVMaxInv =%g\n",mnl->EVMaxInv); tm_stopwatch_pop(&g_timers, 0, 1, ""); /* Get the even parts X_j,e */ @@ -342,12 +186,7 @@ void ndrat_derivative(const int id, hamiltonian_field_t * const hf) { H_eo_sw_ndpsi(mnl->w_fields[2], mnl->w_fields[3], g_chi_up_spinor_field[j], g_chi_dn_spinor_field[j]); tm_stopwatch_pop(&g_timers, 0, 1, ""); - // mul_gamma5(g_chi_up_spinor_field[j], VOLUME/2); - // mul_gamma5(g_chi_dn_spinor_field[j], VOLUME/2); - // print_spinor_updow( g_chi_up_spinor_field[j], g_chi_dn_spinor_field[j], 1, j); //x[i][parity] - // print_spinor_updow( mnl->w_fields[2], mnl->w_fields[3], 0, j); // x[i][other_parity] - // print_spinor_updow( mnl->w_fields[0], mnl->w_fields[1], 1, j); // p[i][parity] - } else { + } else { // multiply with Q_h * tau^1 + i mu_j to get Y_j,o (odd sites) // needs phmc_Cpol = 1 to work for ndrat! tm_stopwatch_push(&g_timers, "Q_tau1_sub_const_ndpsi", ""); @@ -381,7 +220,6 @@ void ndrat_derivative(const int id, hamiltonian_field_t * const hf) { H_eo_tm_ndpsi(mnl->w_fields[4], mnl->w_fields[5], mnl->w_fields[0], mnl->w_fields[1], EO); tm_stopwatch_pop(&g_timers, 0, 1, ""); } - print_spinor_updow( mnl->w_fields[4], mnl->w_fields[5], 0, j); // p[i][other_parity] // p_e /* X_j,o \delta M_oe Y_j,e */ deriv_Sb(OE, g_chi_up_spinor_field[j], mnl->w_fields[4],