linearFormTest.hh

Go to the documentation of this file.
1 
9 #ifndef hp2DedgeBilinearformTest_hh
10 #define hp2DedgeBilinearformTest_hh
11 
12 #include "basics/testcase.hh"
13 #include "basics/typedefs.hh"
15 #include "formula/boundary.hh"
16 #include "hp2Dedge/space.hh"
17 
18 using concepts::Real;
19 
20 namespace hp2D {
21  class Space;
22 }
23 
24 namespace test {
25 
26  // ******************************************************** LinearFormTest **
27 
32  class LinearFormTest : public TestCase {
33  public:
34  virtual ~LinearFormTest() {}
35  virtual void run();
36 
38 
39 
42  void testRieszp0();
44  private:
46  template<class F, class G>
48  const G& desiredVector, const std::string str = "");
49 
51  void setSpace_(concepts::Mesh2& msh, uint l = 0, uint p = 1);
53  std::unique_ptr<hp2Dedge::Space> spc_;
54  };
55 
56 } // namespace test
57 
58 #endif // hp2DedgeBilinearformTest_hh
void testLinearForm_(concepts::LinearForm< F, Real > *lform, const G &desiredVector, const std::string str="")
Creates vector and compare it with desired vector.
std::unique_ptr< hp2Dedge::Space > spc_
Space.
Abstract class for a linear form.
2D hp-FEM for H1-conforming elements.
Unit tests.
Definition: testcase.hh:66
virtual void run()
Runs the tests. Must be overwritten by the specialization.
An abstract class for 2D meshes.
Definition: mesh.hh:103
void testRieszp0()
Tests the integral values of the Riesz linearform for lowest order shape functions.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
void setSpace_(concepts::Mesh2 &msh, uint l=0, uint p=1)
Builds the space.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich