Skip to content

Commit 27e31bc

Browse files
Merge pull request #2637 from SciML/ChrisRackauckas-patch-2
Test master
2 parents 3bc55df + e6ec9a2 commit 27e31bc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
continue-on-error: ${{ matrix.group == 'Downstream' }}
1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
group:
1617
- InterfaceI

test/integrators/split_ode_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ prob = ODEProblem(fun, h0, tspan)
5656

5757
#Should be functionally equivalent to above, explicit_fun does nothing
5858
sfun = SplitFunction(fun, explicit_fun, jac_prototype = jac_proto)
59-
sprob = ODEProblem(sfun, h0, tspan)
59+
sprob = SplitODEProblem(sfun, h0, tspan)
6060

6161
#CFNLIRK3 has same erroneous FSAL logic as KenCarp solvers
6262
#Can't efficiently test with stiff problem (to cause dtmin issue) because it requires constant dt

test/regression/psos_and_energy_conservation.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ for i=2:Ntraj
6262
end
6363
=#
6464

65-
using OrdinaryDiffEq, DiffEqCallbacks, Test
65+
using OrdinaryDiffEq, NonlinearSolve, DiffEqCallbacks, Test
6666

6767
# Initial state
6868
u0 = [0, -0.25, 0.42081, 0]
@@ -84,13 +84,12 @@ end
8484
const E = Hhh(u0)
8585

8686
function ghh(resid, u, p)
87-
resid[1] = Hhh(u[1], u[2], u[3], u[4]) - E
88-
resid[2:4] .= 0
87+
resid[1] = -Hhh(u[1], u[2], u[3], u[4]) + E
8988
end
9089

9190
# energy conserving callback:
9291
# important to use save = false, I don't want rescaling points
93-
cb = ManifoldProjection(ghh, abstol = 1e-13, save = false, autodiff = AutoForwardDiff())
92+
cb = ManifoldProjection(ghh, resid_prototype = ones(1), nlsolve = TrustRegion(), abstol = 1e-9, save = false, autodiff = AutoForwardDiff())
9493

9594
# Callback for Poincare surface of section
9695
function psos_callback(j, direction = +1, offset::Real = 0,
@@ -113,7 +112,7 @@ totalcb = CallbackSet(poincarecb, cb)
113112
prob = ODEProblem(hheom!, u0, (0.0, 100.0), callback = totalcb)
114113

115114
extra_kw = Dict(:save_start => false, :save_end => false)
116-
DEFAULT_DIFFEQ_KWARGS = Dict{Symbol, Any}(:abstol => 1e-9, :reltol => 1e-9)
115+
DEFAULT_DIFFEQ_KWARGS = Dict{Symbol, Any}(:abstol => 1e-10, :reltol => 1e-10)
117116

118117
sol = solve(prob, Vern9(); extra_kw..., DEFAULT_DIFFEQ_KWARGS..., save_everystep = false)
119118

0 commit comments

Comments
 (0)