Skip to content

Commit

Permalink
Fix compile warning in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maddyscientist committed Dec 18, 2023
1 parent 0b99a1d commit f0356b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clover_force.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace quda {
const std::vector<double> &coeff, const std::vector<array<double, 2>> &epsilon,
double sigma_coeff, bool detratio, QudaInvertParam &inv_param)
{
if (!inv_param.matpc_type == QUDA_MATPC_EVEN_EVEN_ASYMMETRIC & !inv_param.matpc_type == QUDA_MATPC_ODD_ODD_ASYMMETRIC)
if (inv_param.matpc_type != QUDA_MATPC_EVEN_EVEN_ASYMMETRIC && inv_param.matpc_type != QUDA_MATPC_ODD_ODD_ASYMMETRIC)
errorQuda("MatPC type %d not supported", inv_param.matpc_type);

QudaParity parity = inv_param.matpc_type == QUDA_MATPC_EVEN_EVEN_ASYMMETRIC ? QUDA_EVEN_PARITY : QUDA_ODD_PARITY;
Expand Down
2 changes: 2 additions & 0 deletions tests/clover_force_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ std::tuple<int, double> clover_force_test(test_t param)

quda::RNG rng(mom, 1234);

inv_param.dagger = static_cast<QudaDagType>(dagger);
inv_param.num_offset = nvector;
for (int i = 0; i < nvector; i++) {
// Allocate memory and set pointers
Expand All @@ -107,6 +108,7 @@ std::tuple<int, double> clover_force_test(test_t param)
}
gauge_param.gauge_order = QUDA_MILC_GAUGE_ORDER;
gauge_param.overwrite_mom = 1;

if (getTuning() == QUDA_TUNE_YES)
computeTMCloverForceQuda(mom.data(), in.data(), in0.data(), coeff.data(), nvector, &gauge_param, &inv_param,
detratio);
Expand Down

0 comments on commit f0356b9

Please sign in to comment.