integralTest.hh

Go to the documentation of this file.
1 
6 #ifndef integralTest_hh
7 #define integralTest_hh
8 
9 #include "basics/testcase.hh"
10 #include "basics/typedefs.hh"
12 
13 using concepts::Real;
14 
15 namespace concepts {
16  // forward declaration
17  class Mesh;
18 }
19 
20 namespace hp2D {
21  // forward declaration
22  class Space;
23 }
24 
25 namespace test {
26 
27  // ********************************************************** IntegralTest **
28 
32  class IntegralTest : public TestCase {
33  public:
34  virtual ~IntegralTest() {}
35  virtual void run();
36 
38 
39 
41  void element();
43  void circle();
45  void ring();
46  // Integration of a FE solution
47  void FEintegral();
49  template<typename F, typename G>
53  };
54 
55 } // namespace test
56 
57 #endif // integralTest_hh
void element()
Test for a single element.
Base class for tests.
Definition: testcase.hh:92
Tests the integrals.
Definition: integralTest.hh:32
2D hp-FEM for H1-conforming elements.
Unit tests.
Definition: testcase.hh:66
F integrate(concepts::Mesh2 &msh, const concepts::ElementFormula< F, G > &frm)
Returns the integral of a element formula over a space.
Interface for a formula defined element by element.
void ring()
Test for piecewise defined formula at a ring.
An abstract class for 2D meshes.
Definition: mesh.hh:103
virtual void run()
Runs the tests. Must be overwritten by the specialization.
virtual ~IntegralTest()
Definition: integralTest.hh:34
void FEintegral()
Test for a single element.
void circle()
Test for a mesh of a circle (area, moments)
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