16 const Function & fn = _fe_problem->getFunction(_fn_name_positive);
20 const Real abs_tol = 1e-13;
24 const Point p(
x, _hump_center_position, z);
25 ABS_TEST(fn.
value(0, p), _hump_center_value_positive, abs_tol);
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);
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);
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);
49 const Function & fn = _fe_problem->getFunction(_fn_name_negative);
53 const Real abs_tol = 1e-13;
57 const Point p(
x, _hump_center_position, z);
58 ABS_TEST(fn.
value(0, p), _hump_center_value_negative, abs_tol);
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);
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);
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);
const std::vector< double > x
TEST_F(CosineHumpFunctionTest, testPositiveHump)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real value(Real t, const Point &p) const