Skip to content

Commit da53162

Browse files
committed
Solving undefined reference in case of compilation without DDalphaAMG
1 parent ed55735 commit da53162

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DDalphaAMG_interface.c

+8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ int MG_solver_eo(spinor * const Even_new, spinor * const Odd_new,
8282
exit(1);
8383
}
8484

85+
int MG_solver_nd(spinor * const up_new, spinor * const dn_new,
86+
spinor * const up_old, spinor * const dn_old,
87+
const double precision, const int max_iter, const int rel_prec,
88+
const int N, su3 **gf, matrix_mult_nd f) {
89+
printf("ERROR: MG_solver_nd called but DDalphaAMG library not included.\n");
90+
exit(1);
91+
}
92+
8593
#else
8694
#include <stdio.h>
8795
#include <stdlib.h>

0 commit comments

Comments
 (0)