From d9639f6f65f1466b5e79dfd6a428c8e6c070c65e Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 28 Mar 2011 09:24:26 +0000 Subject: [PATCH] Make work with gcc-4.6. git-svn-id: https://svn.dealii.org/trunk@23541 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/point_difference_01.cc | 4 ++++ tests/bits/point_difference_02.cc | 4 ++++ tests/bits/point_value_01.cc | 4 ++++ tests/bits/point_value_02.cc | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/tests/bits/point_difference_01.cc b/tests/bits/point_difference_01.cc index 7f4baf5189..56e4b87a8d 100644 --- a/tests/bits/point_difference_01.cc +++ b/tests/bits/point_difference_01.cc @@ -38,6 +38,8 @@ template class MySquareFunction : public Function { public: + MySquareFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return (component+1)*p.square()+1; } @@ -52,6 +54,8 @@ template class MyExpFunction : public Function { public: + MyExpFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return std::exp (p(0)); } diff --git a/tests/bits/point_difference_02.cc b/tests/bits/point_difference_02.cc index eea95d8b84..ef214c4fd8 100644 --- a/tests/bits/point_difference_02.cc +++ b/tests/bits/point_difference_02.cc @@ -42,6 +42,8 @@ template class MySquareFunction : public Function { public: + MySquareFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return (component+1)*p.square()+1; } @@ -56,6 +58,8 @@ template class MyExpFunction : public Function { public: + MyExpFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return std::exp (p(0)); } diff --git a/tests/bits/point_value_01.cc b/tests/bits/point_value_01.cc index b5edd95cff..4e51139321 100644 --- a/tests/bits/point_value_01.cc +++ b/tests/bits/point_value_01.cc @@ -37,6 +37,8 @@ template class MySquareFunction : public Function { public: + MySquareFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return (component+1)*p.square()+1; } @@ -51,6 +53,8 @@ template class MyExpFunction : public Function { public: + MyExpFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return std::exp (p(0)); } diff --git a/tests/bits/point_value_02.cc b/tests/bits/point_value_02.cc index 04e3f73968..318265ae89 100644 --- a/tests/bits/point_value_02.cc +++ b/tests/bits/point_value_02.cc @@ -38,6 +38,8 @@ template class MySquareFunction : public Function { public: + MySquareFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return (component+1)*p.square()+1; } @@ -52,6 +54,8 @@ template class MyExpFunction : public Function { public: + MyExpFunction () : Function () {} + virtual double value (const Point &p, const unsigned int component) const { return std::exp (p(0)); } -- 2.39.5