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

Use static_assert instead of dune_static_assert

[[Imported from SVN: r9786]]
parent b4fbe46f
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <dune/common/array.hh> #include <dune/common/array.hh>
#include <dune/common/fmatrix.hh> #include <dune/common/fmatrix.hh>
#include <dune/common/static_assert.hh>
/** \brief A third-rank tensor /** \brief A third-rank tensor
*/ */
...@@ -29,7 +28,7 @@ class Tensor3 ...@@ -29,7 +28,7 @@ class Tensor3
T infinity_norm() const T infinity_norm() const
{ {
dune_static_assert(N1>0, "infinity_norm not implemented for empty tensors"); static_assert(N1>0, "infinity_norm not implemented for empty tensors");
T norm = (*this)[0].infinity_norm(); T norm = (*this)[0].infinity_norm();
for (int i=1; i<N1; i++) for (int i=1; i<N1; i++)
norm = std::max(norm, (*this)[i].infinity_norm()); norm = std::max(norm, (*this)[i].infinity_norm());
......
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