Skip to content

Commit d0249f1

Browse files
committed
export Point2D, Point3D, and some Trees methods
1 parent d3d174e commit d0249f1

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/Geometry/Geometry.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export
4242
ReferenceTetrahedron,
4343
ReferenceSquare,
4444
ReferenceHyperCube,
45+
Point2D,
46+
Point3D,
4547
# functions
4648
clear_entities!,
4749
entities,

src/Interpolation/Interpolation.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export
2222
# structs
2323
ParametricElement,
2424
LagrangeElement,
25+
LagrangePoint,
2526
LagrangeLine,
2627
LagrangeTriangle,
2728
LagrangeSquare,

src/Interpolation/element.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ function polynomial_space(::SType{LagrangeElement{D,Np}}) where {D,Np}
118118
Pk{D,K}()
119119
end
120120

121+
"""
122+
const LagrangePoint{N,T} = LagrangeElement{ReferencePoint,1,SVector{N,T}}
123+
"""
124+
const LagrangePoint{N,T} = LagrangeElement{ReferencePoint,1,SVector{N,T}}
125+
121126
"""
122127
const LagrangeLine = LagrangeElement{ReferenceLine}
123128
"""

src/Trees/Trees.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export
4343
isleaf,
4444
container,
4545
loc2glob,
46-
points
46+
root_elements,
47+
index_range
4748

4849
end # module

src/Trees/clustertree.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ strategy encoded in `splitter`. If `copy_elements` is set to false, the
116116
`elements` argument are directly stored in the `ClusterTree` and are permuted
117117
during the tree construction.
118118
"""
119-
function ClusterTree{D}(elements,splitter;copy_elements=true) where {D}
119+
function ClusterTree{D}(elements,splitter=CardinalitySplitter();copy_elements=true) where {D}
120120
copy_elements && (elements = deepcopy(elements))
121121
if splitter isa DyadicSplitter
122122
# make a cube for bounding box for quad/oct trees
@@ -134,7 +134,7 @@ function ClusterTree{D}(elements,splitter;copy_elements=true) where {D}
134134
_build_cluster_tree!(root,splitter)
135135
return root
136136
end
137-
ClusterTree(elements,splitter;copy_elements=true) = ClusterTree{Nothing}(elements,splitter;copy_elements)
137+
ClusterTree(args...;kwargs...) = ClusterTree{Nothing}(args...;kwargs...)
138138

139139
function _build_cluster_tree!(current_node,splitter)
140140
if should_split(current_node,splitter)

0 commit comments

Comments
 (0)