Go to the source code of this file.
◆ TEST_F() [1/2]
Definition at line 47 of file CosineHumpFunctionTest.C.
48{
49 const Function & fn = _fe_problem->getFunction(_fn_name_negative);
50
53 const Real abs_tol = 1e-13;
54
55
56 {
57 const Point
p(
x, _hump_center_position, z);
58 ABS_TEST(fn.
value(0,
p), _hump_center_value_negative, abs_tol);
59 }
60
61
62 {
63 const Point
p(
x, _hump_center_position - 0.7 * _hump_width, z);
64 ABS_TEST(fn.
value(0,
p), _hump_begin_value, abs_tol);
65 }
66
67
68 {
69 const Point
p(
x, _hump_center_position + 0.7 * _hump_width, z);
70 ABS_TEST(fn.
value(0,
p), _hump_begin_value, abs_tol);
71 }
72
73
74 {
75 const Point
p(
x, _hump_center_position - 0.25 * _hump_width, z);
76 ABS_TEST(fn.
value(0,
p), 0.5 * (_hump_begin_value + _hump_center_value_negative), abs_tol);
77 }
78}
const std::vector< double > x
virtual Real value(Real t, const Point &p) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ TEST_F() [2/2]
Definition at line 14 of file CosineHumpFunctionTest.C.
15{
16 const Function & fn = _fe_problem->getFunction(_fn_name_positive);
17
20 const Real abs_tol = 1e-13;
21
22
23 {
24 const Point
p(
x, _hump_center_position, z);
25 ABS_TEST(fn.
value(0,
p), _hump_center_value_positive, abs_tol);
26 }
27
28
29 {
30 const Point
p(
x, _hump_center_position - 0.7 * _hump_width, z);
31 ABS_TEST(fn.
value(0,
p), _hump_begin_value, abs_tol);
32 }
33
34
35 {
36 const Point
p(
x, _hump_center_position + 0.7 * _hump_width, z);
37 ABS_TEST(fn.
value(0,
p), _hump_begin_value, abs_tol);
38 }
39
40
41 {
42 const Point
p(
x, _hump_center_position - 0.25 * _hump_width, z);
43 ABS_TEST(fn.
value(0,
p), 0.5 * (_hump_begin_value + _hump_center_value_positive), abs_tol);
44 }
45}