functionTest.hh

Go to the documentation of this file.
1 
7 #ifndef functionSpcTest_hh
8 #define functionSpcTest_hh
9 
10 #include "basics/testcase.hh"
11 #include "basics/typedefs.hh"
12 #include "space/space.hh"
13 
14 namespace concepts {
15  // forward declaration
16  class Mesh2;
17 }
18 
19 namespace test {
20 
32  class ElementFunctionTest : public TestCase {
33  public:
35  virtual ~ElementFunctionTest() {}
36  virtual void run();
37 
39 
40 
42  template<class F>
43  void hp2DValue(const F dummy);
45  private:
46  // Mesh
47  std::unique_ptr<concepts::Mesh2> msh_;
48  // Space
49  std::unique_ptr<concepts::Space<concepts::Real> > spc_;
50 
55  const concepts::Real f(const uint j, const concepts::Real x) const;
56  };
57 
58 } // namespace test
59 
60 #endif // functionSpcTest_hh
Base class for tests.
Definition: testcase.hh:92
std::unique_ptr< concepts::Mesh2 > msh_
Test for 2D nodal space.
Definition: functionTest.hh:47
void hp2DValue(const F dummy)
Test for 2D nodal space.
Unit tests.
Definition: testcase.hh:66
Test the element functions.
Definition: functionTest.hh:32
std::unique_ptr< concepts::Space< concepts::Real > > spc_
Test for 2D nodal space.
Definition: functionTest.hh:49
const concepts::Real f(const uint j, const concepts::Real x) const
Return shape function.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich