From 86ad823b9ade211bfa9361b61571933aff1c9d24 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 23 Apr 2019 15:36:34 +0200 Subject: egs: merge residual calc and correct when possible Also, merge the reflect boundary condition into residual calc+add. Improves performance due to better locality. --- residual_calc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'residual_calc.h') diff --git a/residual_calc.h b/residual_calc.h index 31c1909..8c9b628 100644 --- a/residual_calc.h +++ b/residual_calc.h @@ -74,6 +74,7 @@ int mg2di_residual_calc(ResidualCalcContext *ctx, size_t size[2], const double *u, ptrdiff_t u_stride, const double *rhs, ptrdiff_t rhs_stride, const double * const diff_coeffs[MG2D_DIFF_COEFF_NB], - ptrdiff_t diff_coeffs_stride); + ptrdiff_t diff_coeffs_stride, + double u_mult, double res_mult, int mirror_line); #endif // MG2D_RESIDUAL_CALC_H -- cgit v1.2.3