Skip to content

Commit

Permalink
MathematicaCompat.h: Fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Jun 4, 2011
1 parent e3e8004 commit 65be468
Showing 1 changed file with 4 additions and 9 deletions.
Expand Up @@ -17,9 +17,11 @@
#endif

#ifdef KRANC_C
#define Sign(x) (signbit(x)?-1:+1)
# define Sign(x) (copysign(1.0,(x)))
# define ToReal(x) ((CCTK_REAL)(x))
#else
#define Sign(x) (sgn(x))
# define Sign(x) (sgn(x))
# define ToReal(x) (real((x),kind(khalf)))
#endif

#define MinMod(x, y) ((x) * (y) < 0 ? 0 : (fabs((x)) < fabs((y)) ? (x) : (y)))
Expand All @@ -41,13 +43,6 @@
#define Cosh(x) (cosh(x))
#define Tanh(x) (tanh(x))

#ifdef KRANC_C
# define Sign(x) (copysign(1.0,(x)))
# define ToReal(x) ((CCTK_REAL)(x))
#else
# define Sign(x) (sgn(x))
# define ToReal(x) (real((x),kind(khalf)))
#endif

#if 0

Expand Down

0 comments on commit 65be468

Please sign in to comment.