edgeTest.hh

Go to the documentation of this file.
1 
7 #ifndef testedge_hh
8 #define testedge_hh
9 
10 #include "basics/testcase.hh"
11 #include "basics/typedefs.hh"
12 #include "toolbox/array.hh"
13 
14 namespace concepts {
15  // forward declarations
16  template<class F>
17  class TMatrix;
18 }
19 
20 namespace test {
21 
22  using concepts::Real;
23 
24  // **************************************************** EdgeTest **
25 
29  class EdgeTest : public TestCase {
30  public:
31  virtual ~EdgeTest() {}
32  virtual void run();
33 
35 
36 
38  void testTwoQuads();
40  void testCopy();
44  private:
45  bool testDof_(const uint dim, const concepts::TMatrix<Real> T,
46  const concepts::Array<uint> gdof,
47  const concepts::Array<int> dir);
48  };
49 
50 } // namespace test
51 
52 #endif // testedge_hh
Base class for tests.
Definition: testcase.hh:92
A T matrix in sparse notation.
Definition: edgeTest.hh:17
virtual ~EdgeTest()
Definition: edgeTest.hh:31
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testTwoQuads()
Tests the middle edge of two quads.
Unit tests.
Definition: testcase.hh:66
Test the FE hp2D::Edge.
Definition: edgeTest.hh:29
void testCopy()
Tests copy constructor.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
bool testDof_(const uint dim, const concepts::TMatrix< Real > T, const concepts::Array< uint > gdof, const concepts::Array< int > dir)
Tests the middle edge of two quads.
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
void testBilinearForm()
Test bilinearforms on the edge.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich