linearFormTest.hh

Go to the documentation of this file.
1 
6 #ifndef linearformTest_hh
7 #define linearformTest_hh
8 
9 #include "basics/testcase.hh"
10 #include "basics/typedefs.hh"
12 #include "formula/boundary.hh"
13 #include "hp2D/space.hh"
14 
15 using concepts::Real;
16 
17 namespace hp2D {
18  class Space;
19 }
20 
21 namespace test {
22 
23  // ******************************************************** LinearFormTest **
24 
28  class LinearFormTest : public TestCase {
29  public:
30  virtual ~LinearFormTest() {}
31  virtual void run();
32 
34 
35 
51  private:
53  template<class F, class G>
55  G& desiredVector);
56 
58  void setSpace_(uint l = 0, uint p = 1,
61  std::unique_ptr<hp2D::Space> spc_;
63  std::unique_ptr<concepts::Import2dMesh> m_;
64  };
65 
66 } // namespace test
67 
68 #endif // linearformTest_hh
Base class for tests.
Definition: testcase.hh:92
std::unique_ptr< hp2D::Space > spc_
Space.
void testGradIntValue()
Tests the integral values of the Gradient linear form for lowest order shape functions.
Tests the linear forms.
Abstract class for a linear form.
2D hp-FEM for H1-conforming elements.
Unit tests.
Definition: testcase.hh:66
void testPlCurlIntValue()
Tests the integral values of the Scurl linear form for lowest order shape functions.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testLinearForm_(concepts::LinearForm< F, Real > &lform, G &desiredVector)
Creates load vector and compare it with desired vector.
void testPlCurlSystem()
Tests the Scurl linear form with solving a system.
void setSpace_(uint l=0, uint p=1, concepts::BoundaryConditions *bc=0)
Loads the mesh and builds the space.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
std::unique_ptr< concepts::Import2dMesh > m_
Mesh.
void testRieszIntValue()
Tests the integral values of the Riesz linear form for lowest order shape functions.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich