44 CPPUNIT_ASSERT_EQUAL(dual_coeff.
m(), unsigned(2));
45 CPPUNIT_ASSERT_EQUAL(dual_coeff.
n(), unsigned(2));
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);
55 const auto & dual_phi =
_fe->get_dual_phi();
57 CPPUNIT_ASSERT_EQUAL(std::size_t(2), dual_phi.size());
59 const auto & qpoints =
_qrule->get_points();
61 CPPUNIT_ASSERT_EQUAL(qpoints.size(), dual_phi[0].size());
64 LIBMESH_ASSERT_FP_EQUAL(1./2. * (1. - 3.*qpoints[qp](0)), dual_phi[0][qp],
67 CPPUNIT_ASSERT_EQUAL(qpoints.size(), dual_phi[1].size());
70 LIBMESH_ASSERT_FP_EQUAL(1./2. * (1. + 3.*qpoints[qp](0)), dual_phi[1][qp],
static constexpr Real TOLERANCE
std::unique_ptr< QGauss > _qrule
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::unique_ptr< FEBase > _fe
auto index_range(const T &sizable)
Helper function that returns an IntRange<std::size_t> representing all the indices of the passed-in v...