File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ struct Uniform{Nq} <: QuadratureStyle end
89
89
@inline degrees_of_freedom (:: Uniform{Nq} ) where {Nq} = Int (Nq)
90
90
91
91
@generated function quadrature_points (:: Type{FT} , :: Uniform{Nq} ) where {FT, Nq}
92
- points = SVector {Nq} (range (- 1 + 1 / Nq, step = 2 / Nq, length = Nq))
93
- weights = SVector {Nq} (ntuple (i -> 2 / Nq, Nq))
92
+ points = SVector {Nq} (range (- 1 + FT ( 1 / Nq) , step = FT ( 2 / Nq) , length = Nq))
93
+ weights = SVector {Nq} (ntuple (i -> FT ( 2 / Nq) , Nq))
94
94
:($ points, $ weights)
95
95
end
96
96
@@ -110,9 +110,9 @@ struct ClosedUniform{Nq} <: QuadratureStyle end
110
110
) where {FT, Nq}
111
111
points = SVector {Nq} (range (FT (- 1 ), FT (1 ), length = Nq))
112
112
weights = SVector {Nq} (
113
- 1 / (Nq - 1 ),
114
- ntuple (i -> 2 / (Nq - 1 ), Nq - 2 )... ,
115
- 1 / (Nq - 1 ),
113
+ FT ( 1 / (Nq - 1 ) ),
114
+ ntuple (i -> FT ( 2 / (Nq - 1 ) ), Nq - 2 )... ,
115
+ FT ( 1 / (Nq - 1 ) ),
116
116
)
117
117
:($ points, $ weights)
118
118
end
You can’t perform that action at this time.
0 commit comments