Skip to content

Commit 3ce948c

Browse files
committed
Use paramdim for clarity
1 parent f4518c8 commit 3ce948c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/specializations/Line.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function integral(
1515
)
1616
# Generate a _ParametricGeometry whose parametric function spans the domain [0, 1]
1717
paramfunction(t) = _parametric(line, t)
18+
param_line = _ParametricGeometry(paramfunction, Meshes.paramdim(line))
1819

1920
# Integrate the _ParametricGeometry using the standard methods
2021
return _integral(f, param_line, rule; kwargs...)

src/specializations/Plane.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function integral(
1616
)
1717
# Generate a _ParametricGeometry whose parametric function spans the domain [0, 1]²
1818
paramfunction(t1, t2) = _parametric(plane, t1, t2)
19+
param_plane = _ParametricGeometry(paramfunction, Meshes.paramdim(plane))
1920

2021
# Integrate the _ParametricGeometry using the standard methods
2122
return _integral(f, param_plane, rule; kwargs...)

src/specializations/Ray.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function integral(
1616
)
1717
# Generate a _ParametricGeometry whose parametric function spans the domain [0, 1]
1818
paramfunction(t) = _parametric(ray, t)
19+
param_ray = _ParametricGeometry(paramfunction, Meshes.paramdim(ray))
1920

2021
# Integrate the _ParametricGeometry using the standard methods
2122
return _integral(f, param_ray, rule; kwargs...)

0 commit comments

Comments
 (0)