hpFullTest.hh

Go to the documentation of this file.
1 
8 #ifndef hpFullTest2D_hh
9 #define hpFullTest2D_hh
10 
11 #include "basics/testcase.hh"
12 #include "hp2D/spacePreBuilder.hh"
13 
14 namespace test {
15 
16  // ********************************************************** hpFullTest2D **
17 
23  class hpFullTest2D : public TestCase {
24  public:
26  virtual ~hpFullTest2D() {}
27  virtual void run();
28 
30 
31  void test4Cells();
34  private:
36  void refineCell_(hp2D::hpFull& prebuild, int nrCell, uint lx,
37  uint ly, uint p = 0, bool rebuild = false) const;
38  void getCells_(const concepts::Connector2& cntr,
39  std::map<uint, const concepts::Quad*>& map) const;
41  void newIndex_(hp2D::hpFull& prebuild, uint& idx, uint dim,
42  const concepts::Connector2& cntr, uint i = 0);
45  void rejectIndex_(hp2D::hpFull& prebuild, uint dim,
46  const concepts::Connector2& cntr, uint i = 0);
47  };
48 
49 } // namespace test
50 
51 #endif // hpFullTest2D_hh
void newIndex_(hp2D::hpFull &prebuild, uint &idx, uint dim, const concepts::Connector2 &cntr, uint i=0)
Test to set the index for 'member of space' entitites.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
Base class for tests.
Definition: testcase.hh:92
void refineCell_(hp2D::hpFull &prebuild, int nrCell, uint lx, uint ly, uint p=0, bool rebuild=false) const
Refines a particular cell and builds the space pre builder eventually.
Helper class for building 2D hp-FEM spaces (space pre builder).
Unit tests.
Definition: testcase.hh:66
void rejectIndex_(hp2D::hpFull &prebuild, uint dim, const concepts::Connector2 &cntr, uint i=0)
Test if it is not possible to set the index of 'non member of space' entities.
A 2D element of the topology.
Definition: connector.hh:226
void getCells_(const concepts::Connector2 &cntr, std::map< uint, const concepts::Quad * > &map) const
Tests a mesh with 4 cells on the finest level.
virtual ~hpFullTest2D()
Definition: hpFullTest.hh:26
Tests distribution of dof and polynomial degrees for mesh of quads with hanging nodes.
Definition: hpFullTest.hh:23
void test4Cells()
Tests a mesh with 4 cells on the finest level.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich