Skip to content

Commit 9e673d9

Browse files
Merge pull request #60 from SciML/transformed
fix transformed problem construction
2 parents a1def7a + 5250023 commit 9e673d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Quadrature"
22
uuid = "67601950-bd08-11e9-3c89-fd23fb4432d2"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "1.8.0"
4+
version = "1.8.1"
55

66
[deps]
77
CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"

src/Quadrature.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,21 @@ function transformation_if_inf(prob)
9696
h(t , p) = transform_inf(t , p , g , prob.lb , prob.ub)
9797
lb = -1.00
9898
ub = 1.00
99-
_prob = QuadratureProblem(h , lb ,ub, p = prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs)
99+
_prob = QuadratureProblem(h , lb ,ub, prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs...)
100100
return _prob
101101
elseif prob.lb != -Inf && prob.ub == Inf
102102
g = prob.f
103103
h_(t , p) = transform_inf(t , p , g , prob.lb , prob.ub)
104104
lb = 0.00
105105
ub = 1.00
106-
_prob = QuadratureProblem(h_ , lb ,ub, p = prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs)
106+
_prob = QuadratureProblem(h_ , lb ,ub, prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs...)
107107
return _prob
108108
elseif prob.lb == -Inf && prob.ub != Inf
109109
g = prob.f
110110
_h(t , p) = transform_inf(t , p , g , prob.lb , prob.ub)
111111
lb = -1.00
112112
ub = 0.00
113-
_prob = QuadratureProblem(_h , lb ,ub, p = prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs)
113+
_prob = QuadratureProblem(_h , lb ,ub, prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs...)
114114
return _prob
115115
end
116116
end
@@ -126,7 +126,7 @@ function transformation_if_inf(prob)
126126
_ub = 1.00.*_semiup + 1.00.*_inf + 0.00.*_semilw + _none.*prob.ub
127127
g = prob.f
128128
hs(t , p) = transform_inf(t , p , g , prob.lb , prob.ub)
129-
_prob = QuadratureProblem(hs, _lb ,_ub, p = prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs)
129+
_prob = QuadratureProblem(hs, _lb ,_ub, prob.p , nout = prob.nout , batch = prob.batch , prob.kwargs...)
130130
return _prob
131131
end
132132
return prob

0 commit comments

Comments
 (0)