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. --- common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common.h') 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)) -- cgit v1.2.3