From 1f443d3fdb93e71a70244b7521ae0f4c40601351 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 27 Aug 2021 13:35:52 +0200 Subject: Add public API for evaluating the residual at an arbitrary location. --- teukolsky_data.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'teukolsky_data.h') diff --git a/teukolsky_data.h b/teukolsky_data.h index 786554e..861613d 100644 --- a/teukolsky_data.h +++ b/teukolsky_data.h @@ -207,4 +207,13 @@ int td_eval_lapse(const TDContext *td, const unsigned int diff_order[2], double *out); +/** + * Evaluate the residual of the three constraint equations at the specified + * coordinates. + */ +int td_eval_residual(const TDContext *td, + size_t nb_coords_r, const double *r, + size_t nb_coords_theta, const double *theta, + double *out[3]); + #endif /* TEUKOLSKY_DATA_H */ -- cgit v1.2.3