Skip to content

Commit 49c6523

Browse files
committed
search global pivots in integrate
1 parent 878afb6 commit 49c6523

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/integration.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ function integrate(
2222
f,
2323
a::Vector{ValueType},
2424
b::Vector{ValueType};
25-
tolerance=1e-8,
26-
GKorder::Int=15
25+
GKorder::Int=15,
26+
normalizeerror=false,
27+
kwargs...
2728
) where {ValueType}
2829
if iseven(GKorder)
2930
error("Gauss--Kronrod order must be odd, e.g. 15 or 61.")
@@ -50,7 +51,9 @@ function integrate(
5051
ValueType,
5152
F,
5253
localdims;
53-
tolerance
54+
nsearchglobalpivot=10,
55+
normalizeerror,
56+
kwargs...
5457
)
5558

5659
return sum(tci2) / normalization

0 commit comments

Comments
 (0)