diff options
author | schnetter <schnetter@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2005-11-21 02:31:31 +0000 |
---|---|---|
committer | schnetter <schnetter@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2005-11-21 02:31:31 +0000 |
commit | 485e9c9b985ebee47f65c0f5cd604f1b5027ad5c (patch) | |
tree | 4a95a111ef518b8d8034ab3b3d9246c9437387d2 /src | |
parent | 901b0cb0da9e0c2c34147c5ecd5bdb6aef742f9b (diff) |
Do not define asinh, acosh, and atanh. The compiler usually already
knows these, and defining them again can lead to errors.
If these are now undefined on some systems, then we have to
re-introduce them with modified names.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/TwoPunctures/trunk@47 b2a53a04-0f4f-0410-87ed-f9f25ced00cf
Diffstat (limited to 'src')
-rw-r--r-- | src/TP_utilities.c | 2 | ||||
-rw-r--r-- | src/TP_utilities.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/TP_utilities.c b/src/TP_utilities.c index 4a35884..1736f7f 100644 --- a/src/TP_utilities.c +++ b/src/TP_utilities.c @@ -252,6 +252,7 @@ pow_int (int mantisse, int exponent) } /*--------------------------------------------------------------------------*/ +#if 0 double atanh (double x) { @@ -271,6 +272,7 @@ acosh (double x) { return log (x + sqrt (x * x - 1)); } +#endif /*--------------------------------------------------------------------------*/ dcomplex diff --git a/src/TP_utilities.h b/src/TP_utilities.h index a0c23a3..fb05cb2 100644 --- a/src/TP_utilities.h +++ b/src/TP_utilities.h @@ -1,5 +1,7 @@ /* TwoPunctures: File "utilities.h"*/ +#include <math.h> + #define Pi 3.14159265358979323846264338328 #define Pih 1.57079632679489661923132169164 /* Pi/2*/ #define Piq 0.78539816339744830961566084582 /* Pi/4*/ @@ -45,9 +47,11 @@ int minimum3 (int i, int j, int k); int maximum2 (int i, int j); int maximum3 (int i, int j, int k); int pow_int (int mantisse, int exponent); +#if 0 double atanh (double x); double asinh (double x); double acosh (double x); +#endif dcomplex Cadd (dcomplex a, dcomplex b); dcomplex Csub (dcomplex a, dcomplex b); |