Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcogarofalo committed Jan 16, 2024
1 parent aeffd7a commit 5d3caec
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions monomial/cloverdet_monomial.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "global.h"
#include "su3.h"
#include "su3adj.h"
Expand All @@ -49,6 +50,11 @@
#include "operator/clovertm_operators.h"
#include "operator/clovertm_operators_32.h"
#include "cloverdet_monomial.h"
#include "xchange/xchange_deri.h"
#include "monomial/gauge_monomial.h"
#ifdef TM_USE_QUDA
# include "quda_interface.h"
#endif

/* think about chronological solver ! */

Expand Down
6 changes: 6 additions & 0 deletions monomial/cloverdetratio_monomial.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include "global.h"
#include "su3.h"
#include "start.h"
Expand All @@ -45,6 +46,11 @@
#include "monomial/monomial.h"
#include "boundary.h"
#include "cloverdetratio_monomial.h"
#include "xchange/xchange_deri.h"
#include "monomial/gauge_monomial.h"
#ifdef TM_USE_QUDA
# include "quda_interface.h"
#endif

/* think about chronological solver ! */

Expand Down
1 change: 1 addition & 0 deletions monomial/gauge_monomial.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ void gauge_derivative(const int id, hamiltonian_field_t * const hf);
void gauge_EMderivative(const int id, hamiltonian_field_t * const hf);
void gauge_heatbath(const int id, hamiltonian_field_t * const hf);
double gauge_acc(const int id, hamiltonian_field_t * const hf);
void compare_derivative(monomial *mnl, su3adj **ext_lib, su3adj **native );

#endif
5 changes: 1 addition & 4 deletions quda_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -2514,16 +2514,13 @@ void compute_gauge_derivative_quda(monomial * const mnl, hamiltonian_field_t * c
tm_stopwatch_pop(&g_timers, 0, 1, "TM_QUDA");
}

void compute_cloverdet_derivative_quda(monomial * const mnl, hamiltonian_field_t * const hf, spinor ** const X_o, spinor ** const phi, int detratio) {
void compute_cloverdet_derivative_quda(monomial * const mnl, hamiltonian_field_t * const hf, spinor * const X_o, spinor * const phi, int detratio) {
tm_stopwatch_push(&g_timers, __func__, "");

_initQuda();
_initMomQuda();
void *spinorIn;
void *spinorPhi;
const int nr_sf_in = 1;
spinor ** in_o;


spinorIn = (void*)X_o;
reorder_spinor_eo_toQuda((double*)spinorIn, inv_param.cpu_prec, 0, 1);
Expand Down
2 changes: 1 addition & 1 deletion quda_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ int invert_eo_quda_twoflavour_mshift(spinor ** const out_up, spinor ** const out

void compute_gauge_derivative_quda(monomial * const mnl, hamiltonian_field_t * const hf);
void compute_cloverdet_derivative_quda(monomial * const mnl, hamiltonian_field_t * const hf,
spinor ** const X_o, spinor ** const phi, int ratio);
spinor * const X_o, spinor * const phi, int ratio);
void compute_WFlow_quda(const double eps ,const double tmax, const int traj, FILE* outfile);

#endif /* QUDA_INTERFACE_H_ */

0 comments on commit 5d3caec

Please sign in to comment.