aboutsummaryrefslogtreecommitdiff
path: root/teukolsky_data.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-08-27 13:35:52 +0200
committerAnton Khirnov <anton@khirnov.net>2021-08-27 13:37:30 +0200
commit1f443d3fdb93e71a70244b7521ae0f4c40601351 (patch)
treeef98c12efbdd879f6e0dc4f0c439b621824195ee /teukolsky_data.h
parent83bc788ae55b49d633ead8fa7ad5136f919826ce (diff)
Add public API for evaluating the residual at an arbitrary location.
Diffstat (limited to 'teukolsky_data.h')
-rw-r--r--teukolsky_data.h9
1 files changed, 9 insertions, 0 deletions
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 */