Skip to content
Snippets Groups Projects
Commit fb45603c authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Use static_assert instead of dune_static_assert

[[Imported from SVN: r9934]]
parent 4853ca19
No related branches found
No related tags found
No related merge requests found
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
/** \brief A point in the hyperbolic half-space H^N /** \brief A point in the hyperbolic half-space H^N
\tparam N Dimension of the hyperbolic space space \tparam N Dimension of the hyperbolic half-space
\tparam T The type used for individual coordinates \tparam T The type used for individual coordinates
*/ */
template <class T, int N> template <class T, int N>
class HyperbolicHalfspacePoint class HyperbolicHalfspacePoint
{ {
dune_static_assert(N>=2, "A hyperbolic half-space needs to be at least two-dimensional!"); static_assert(N>=2, "A hyperbolic half-space needs to be at least two-dimensional!");
/** \brief Compute the derivative of arccosh^2 without getting unstable for x close to 1 */ /** \brief Compute the derivative of arccosh^2 without getting unstable for x close to 1 */
static T derivativeOfArcCosHSquared(const T& x) { static T derivativeOfArcCosHSquared(const T& x) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment