From a4a5fc2666bfd3ca009ce6c7d05bc83ff4d57313 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 26 Mar 2019 17:31:58 +0100 Subject: egs_exact: do not construct the matrix more often than necessary It does not change unless the diff coeffs change. --- relax_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'relax_test.c') diff --git a/relax_test.c b/relax_test.c index 54155ca..5c07107 100644 --- a/relax_test.c +++ b/relax_test.c @@ -134,7 +134,7 @@ int main(int argc, char **argv) sizeof(*ctx->diff_coeffs[0]->data) * ctx->domain_size[0]); } - ret = mg2di_egs_init(ctx); + ret = mg2di_egs_init(ctx, 0); if (ret < 0) { fprintf(stderr, "Error initializing the solver context: %d\n", ret); ret = 1; -- cgit v1.2.3