testJacobian.hh

Go to the documentation of this file.
1 
8 #ifndef testJacobian2D_hh
9 #define testJacobian2D_hh
10 
11 #include "basics/testcase.hh"
12 #include "basics/typedefs.hh"
13 
14 namespace concepts {
15  class Quad2d;
16  class Quad2dSubdivision;
17 }
18 
19 namespace test {
20  using concepts::Real;
21 
22  // ******************************************************** TestJacobian2D **
23 
31  class TestJacobian2D : public TestCase {
32  public:
33  virtual ~TestJacobian2D();
34  virtual void run();
35 
37 
38 
65 
93 
121 
150  private:
168  void recTest_(concepts::Quad2d* q, Real guess, Real div,
169  Real guess00, Real div00,
170  Real guess01, Real div01,
171  Real guess10, Real div10,
172  Real guess11, Real div11,
173  uint rec, const concepts::Quad2dSubdivision* ref = 0);
174  };
175 
176 } // namespace test
177 
178 #endif // testJacobian_hh
virtual ~TestJacobian2D()
Base class for tests.
Definition: testcase.hh:92
A 2D cell: quadrilateral.
Definition: cell2D.hh:378
void testRot0Isotropic()
Tests Jacobians for isotropic subdivisions.
void testRot3Isotropic()
Tests Jacobians for isotropic subdivisions.
void testRot3Vertical()
Tests Jacobians for anisotropic, vertical subdivisions.
Unit tests.
Definition: testcase.hh:66
void testRot3Horizontal()
Tests Jacobians for anisotropic, horizontal subdivisions.
void recTest_(concepts::Quad2d *q, Real guess, Real div, Real guess00, Real div00, Real guess01, Real div01, Real guess10, Real div10, Real guess11, Real div11, uint rec, const concepts::Quad2dSubdivision *ref=0)
Recursively test the Jacobian of the children of q to be equal to guess.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testRot0Vertical()
Tests Jacobians for anisotropic, vertical subdivisions.
void testRot1Isotropic()
Tests Jacobians for isotropic subdivisions.
void testRot1Horizontal()
Tests Jacobians for anisotropic, horizontal subdivisions.
void testRot2Horizontal()
Tests Jacobians for anisotropic, horizontal subdivisions.
void testRot1Vertical()
Tests Jacobians for anisotropic, vertical subdivisions.
Interface for geometrical subdivision strategies for quadrilaterals.
Definition: cell2D.hh:283
Tests the Jacobian for anisotropic and isotropic refinements of quadrilaterals in two dimensions.
Definition: testJacobian.hh:31
void testRot2Isotropic()
Tests Jacobians for isotropic subdivisions.
void testRot2Vertical()
Tests Jacobians for anisotropic, vertical subdivisions.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
void testRot0Horizontal()
Tests Jacobians for anisotropic, horizontal subdivisions.
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