Skip to content

Gitlab CI does not include unit tests for OrdinaryDiffEqNonlinearSolve  #2572

Closed
@lte678

Description

@lte678

It seems to me that the tests for the subpackage OrdinaryDiffEqNonlinearSolve were never added to the gitlab CI after splitting it off into its own package (commit c399c19 perhaps).

I fixed it up, but the currently existing newton_tests.jl unfortunately don't pass with the following error message:

Newton Tests: Test Failed at /home/lteichro/Projects/scratchpad/ordinarydiffeq_bug1214/dev/OrdinaryDiffEq/lib/OrdinaryDiffEqNonlinearSolve/test/newton_tests.jl:17
  Expression: sol2.stats.nf <= sol1.stats.nf
   Evaluated: 102023 <= 102008

For the following assertion:

for prob in (prob_ode_lorenz, prob_ode_orego)
    sol1 = solve(prob, Trapezoid(), reltol = 1e-12, abstol = 1e-12)
    @test sol1.retcode == DiffEqBase.ReturnCode.Success
    sol2 = solve(prob, Trapezoid(nlsolve = NLNewton(relax = BackTracking())),
        reltol = 1e-12, abstol = 1e-12)
    @test sol2.retcode == DiffEqBase.ReturnCode.Success
    @test sol2.stats.nf <= sol1.stats.nf
end

Is it ok to toss the test or the test case? It seems like a quite mundane failure to me, unless there a reason to expect a strictly lesser amount of function evaluations.

I would like to contribute an unrelated fix to that OrdinaryDiffEqNonlinearSolve , for which I would like to get unit tests running again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions