35 {
36 LOG_UNIT_TEST;
38 return;
39
41
43
44 CPPUNIT_ASSERT_EQUAL(dual_coeff.
m(),
unsigned(2));
45 CPPUNIT_ASSERT_EQUAL(dual_coeff.
n(),
unsigned(2));
46
47
49
50 LIBMESH_ASSERT_FP_EQUAL(2, dual_coeff(0,0), my_tol);
51 LIBMESH_ASSERT_FP_EQUAL(-1, dual_coeff(0,1), my_tol);
52 LIBMESH_ASSERT_FP_EQUAL(-1, dual_coeff(1,0), my_tol);
53 LIBMESH_ASSERT_FP_EQUAL(2, dual_coeff(1,1), my_tol);
54
55 const auto & dual_phi =
_fe->get_dual_phi();
56
57 CPPUNIT_ASSERT_EQUAL(std::size_t(2), dual_phi.size());
58
59 const auto & qpoints =
_qrule->get_points();
60
61 CPPUNIT_ASSERT_EQUAL(qpoints.size(), dual_phi[0].size());
62
64 LIBMESH_ASSERT_FP_EQUAL(1./2. * (1. - 3.*qpoints[qp](0)), dual_phi[0][qp],
65 my_tol);
66
67 CPPUNIT_ASSERT_EQUAL(qpoints.size(), dual_phi[1].size());
68
70 LIBMESH_ASSERT_FP_EQUAL(1./2. * (1. + 3.*qpoints[qp](0)), dual_phi[1][qp],
71 my_tol);
72 }
Defines a dense matrix for use in Finite Element-type computations.
auto index_range(const T &sizable)
Helper function that returns an IntRange<std::size_t> representing all the indices of the passed-in v...
static constexpr Real TOLERANCE
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real