functionEvaluation.hh

Go to the documentation of this file.
1 
9 #ifndef testname_hh
10 #define testname_hh
11 
12 #include "basics/testcase.hh"
13 #include "basics/typedefs.hh"
15 
16 using concepts::Real;
17 
18 namespace hp2D {
19  class Space;
20 }
21 
22 namespace test {
23 
24  // **************************************************** FunctionEvaluation **
25 
30  class FunctionEvaluation : public TestCase {
31  public:
32  virtual ~FunctionEvaluation() {}
33  virtual void run();
34 
36 
37 
41  void testValue(hp2D::Space& spc);
51  void testTrace(hp2D::Space& spc);
53  private:
55  Real shapeFct_(const uint i[2], const concepts::Real2d& p) const;
56  };
57 
58 } // namespace test
59 
60 #endif // hp2DFunctionEvalutation_hh
Base class for tests.
Definition: testcase.hh:92
void testValue(hp2D::Space &spc)
Tests the evaluation of hp2D::Value at an arbitrary point in an element.
Tests the evaluation of functions like hp2D::Value.
Real shapeFct_(const uint i[2], const concepts::Real2d &p) const
Computes shape function with index i in point p.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
2D hp-FEM for H1-conforming elements.
Unit tests.
Definition: testcase.hh:66
void testValueComb(hp2D::Space &spc)
Tests if the evaluation of hp2D::Value at the integration points and at arbitrary points (chosen in t...
void testTrace(hp2D::Space &spc)
Test the evaluation of hp2D::Trace on the edges.
A 2D hp FEM space with continuous, piecewise polynomial basis functions.
Definition: space.hh:88
void testValueInt(hp2D::Space &spc)
Tests the evaluation of hp2D::Value at the integration points.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich