Skip to content

Commit

Permalink
NDCLOVERRAT derivative on QUDA only if also the inversion is done on …
Browse files Browse the repository at this point in the history
…QUDA
  • Loading branch information
Marcogarofalo committed Apr 18, 2024
1 parent d198f15 commit b415eb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions monomial/monomial.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,12 @@ int init_monomials(const int V, const int even_odd_flag) {
monomial_list[i].name,
no_monomials);
}
if(monomial_list[i].external_library==QUDA_LIB){
if(monomial_list[i].solver_params.external_inverter != QUDA_INVERTER){
tm_debug_printf(0,0,"Error: NDCLOVERRAT monomial of UseExternalLibrary = quda is not supported without UseExternalInverter = quda\n");
exit(1);
}
}
}
else if(monomial_list[i].type == NDRATCOR) {
monomial_list[i].hbfunction = &ndratcor_heatbath;
Expand Down

0 comments on commit b415eb6

Please sign in to comment.