Skip to content

Commit 3d6db42

Browse files
committed
Fix docs
1 parent d94ee6d commit 3d6db42

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

FIAT/gauss_lobatto_legendre.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
class GaussLobattoLegendre(lagrange.Lagrange):
1515
"""Simplicial continuous element with nodes at the (recursive) Gauss-Lobatto-Legendre points."""
1616
def __init__(self, ref_el, degree):
17-
super(GaussLobattoLegendre, self).__init__(ref_el, degree, variant="gll", lexsort_entities=True)
17+
super(GaussLobattoLegendre, self).__init__(ref_el, degree, variant="gll", sort_entities=True)

FIAT/lagrange.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class LagrangeDualSet(dual_set.DualSet):
1919
2020
:arg ref_el: The simplicial complex.
2121
:arg degree: The polynomial degree.
22-
:point_variant: The point distribution variant passed on to recursivenodes.
23-
:lexsort_entities: A flag to sort entities by lexicographically by coordinate,
24-
if false then entities are sorted first by dimension and then by
25-
entity id. The DOFs are always sorted by the entity ordering
26-
and then lexicographically by coordinate.
22+
:arg point_variant: The point distribution variant passed on to recursivenodes.
23+
:arg sort_entities: A flag to sort entities by support vertex ids.
24+
If false then entities are sorted first by dimension and then by
25+
entity id. The DOFs are always sorted by the entity ordering
26+
and then lexicographically by lattice multiindex.
2727
"""
28-
def __init__(self, ref_el, degree, point_variant="equispaced", lexsort_entities=False):
28+
def __init__(self, ref_el, degree, point_variant="equispaced", sort_entities=False):
2929
nodes = []
3030
entity_ids = {}
3131
entity_permutations = {}
@@ -38,8 +38,8 @@ def __init__(self, ref_el, degree, point_variant="equispaced", lexsort_entities=
3838
entity_permutations[dim][entity] = perms
3939

4040
entities = [(dim, entity) for dim in sorted(top) for entity in sorted(top[dim])]
41-
if lexsort_entities:
42-
# sort the entities by their support vertex ids
41+
if sort_entities:
42+
# sort the entities by support vertex ids
4343
support = [top[dim][entity] for dim, entity in entities]
4444
entities = [entity for verts, entity in sorted(zip(support, entities))]
4545

@@ -67,16 +67,16 @@ class Lagrange(finite_element.CiarletElement):
6767
variant='equispaced,Iso(2)' with degree=1 gives the P2:P1 iso element.
6868
variant='Alfeld' can be used to obtain a barycentrically refined
6969
macroelement for Scott-Vogelius.
70-
:arg lexsort_entities: A flag to sort entities lexicographically by coordinate,
71-
if false then entities are sorted first by dimension and then by
72-
entity id. The DOFs are always sorted by the entity ordering
73-
and then lexicographically by coordinate.
70+
:arg sort_entities: A flag to sort entities by support vertex ids.
71+
If false then entities are sorted first by dimension and then by
72+
entity id. The DOFs are always sorted by the entity ordering
73+
and then lexicographically by lattice multiindex.
7474
"""
75-
def __init__(self, ref_el, degree, variant="equispaced", lexsort_entities=False):
75+
def __init__(self, ref_el, degree, variant="equispaced", sort_entities=False):
7676
splitting, point_variant = parse_lagrange_variant(variant)
7777
if splitting is not None:
7878
ref_el = splitting(ref_el)
79-
dual = LagrangeDualSet(ref_el, degree, point_variant=point_variant, lexsort_entities=lexsort_entities)
79+
dual = LagrangeDualSet(ref_el, degree, point_variant=point_variant, sort_entities=sort_entities)
8080
if ref_el.shape == LINE:
8181
# In 1D we can use the primal basis as the expansion set,
8282
# avoiding any round-off coming from a basis transformation

0 commit comments

Comments
 (0)