Beispiel #1
0
def test_number_of_quad_points_for_vertex_adjacent_case():
    """Test for correct number of points in vertex adjacent case."""

    actual_number_of_points = _duffy.number_of_quadrature_points(
        _order, "vertex_adjacent")
    expected_number_of_points = 2 * _order**4

    assert actual_number_of_points == expected_number_of_points
Beispiel #2
0
def test_number_of_quad_points_for_coincident_case():
    """Test for correct number of points in coincident case."""

    actual_number_of_points = _duffy.number_of_quadrature_points(
        _order, "coincident")
    expected_number_of_points = 6 * _order**4

    assert actual_number_of_points == expected_number_of_points
 def number_of_points(self, adjacency):
     """Return the number of quadrature points for given adjacency."""
     return _duffy_galerkin.number_of_quadrature_points(
         self.order, adjacency)