aboutsummaryrefslogtreecommitdiff
path: root/common.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 /common.h
parent83bc788ae55b49d633ead8fa7ad5136f919826ce (diff)
Add public API for evaluating the residual at an arbitrary location.
Diffstat (limited to 'common.h')
-rw-r--r--common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.h b/common.h
index 16dd7ef..55359ae 100644
--- a/common.h
+++ b/common.h
@@ -18,6 +18,7 @@
#ifndef TEUKOLSKY_DATA_COMMON_H
#define TEUKOLSKY_DATA_COMMON_H
+#define ABS(x) (((x) >= 0) ? (x) : -(x))
#define SQR(x) ((x) * (x))
#define SGN(x) ((x) >= 0.0 ? 1.0 : -1.0)
#define MAX(x, y) ((x) > (y) ? (x) : (y))