aboutsummaryrefslogtreecommitdiff
path: root/residual_calc.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-04-23 15:36:34 +0200
committerAnton Khirnov <anton@khirnov.net>2019-04-24 14:44:36 +0200
commit86ad823b9ade211bfa9361b61571933aff1c9d24 (patch)
tree7a44acde9b11a9958b953f50927441318c2beb5e /residual_calc.h
parent580740356c44658620bff6f9ddd8a006f04c31fc (diff)
egs: merge residual calc and correct when possible
Also, merge the reflect boundary condition into residual calc+add. Improves performance due to better locality.
Diffstat (limited to 'residual_calc.h')
-rw-r--r--residual_calc.h3
1 files changed, 2 insertions, 1 deletions
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