Class documentation of Concepts

Loading...
Searching...
No Matches
extremaTest.hh
1
9#ifndef extremaTest_hh
10#define extremaTest_hh
11
12#include "hp2D/extrema.hh"
13#include <optimization.h>
14#include <ap.h>
15#include "hp2D.hh"
16#include "basics/testcase.hh"
17
18
19namespace test{
20
21 using concepts::Real;
22 using concepts::Real2d;
23
24 //*************************************************** ExtremaTest **************************
25
26 class ExtremaTest : public TestCase{
27 public:
28 //virtual ~minMaxTest() {}
29 virtual void run();
30
31 // testCase for a constant function, max = min = random value between 0 and 1
32 void testCase1_();
33
34 // testCase for piecewise constant function on a mesh of four cells
35 void testCase2_();
36
37 // testCase for function f = (4*x^2-4*x)*(1-y), max = 0.0 , min = -1.0
38 void testCase3_();
39
40 //TestCase for function f = cos(pi*x)*cos(pi*y), max = 1.0 , min = -1.0
41 void testCase4_();
42
43 };
44
45}//namespace test
46
47
48
49#endif //minMaxTest_hh
virtual void run()
Runs the tests. Must be overwritten by the specialization.
double Real
Definition typedefs.hh:39