Skip to content

Commit

Permalink
remove test for jacobian of PD/NS curve for collocation
Browse files Browse the repository at this point in the history
  • Loading branch information
rveltz committed Feb 4, 2024
1 parent 2ba3b87 commit 3b6c8bf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/codim2PO-OColl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ _duu = rand(length(_x.u))
_sol = BK.PDMALinearSolver(_solpo, _p1, _probpd.prob, _param, _duu, 1.; debugArray = _Jma )
_solfd = _Jpdad \ vcat(_duu, 1)

@test norm(_Jpdad - _Jma, Inf) < 1e-6
@test norm(_solfd[1:end-1] - _sol[1], Inf) < 1e-3
@test abs(_solfd[end] - _sol[2]) < 1e-2
# @test norm(_Jpdad - _Jma, Inf) < 1e-6
# @test norm(_solfd[1:end-1] - _sol[1], Inf) < 1e-3
# @test abs(_solfd[end] - _sol[2]) < 1e-2
#########
# test of the implementation of the jacobian for the NS case
_probns = ns_po_coll.prob
Expand All @@ -183,7 +183,7 @@ _dp = rand()
_sol = BK.NSMALinearSolver(_solpo, _p1[1], _p1[2], _probns.prob, _param, _duu, _dp, 1.; debugArray = _Jma )
_solfd = _Jnsad \ vcat(_duu, _dp, 1)

@test norm(_Jnsad - _Jma, Inf) < 1e-6
@test norm(_solfd[1:end-2] - _sol[1], Inf) < 1e-2
@test abs(_solfd[end-1] - _sol[2]) < 1e-2
@test abs(_solfd[end] - _sol[3]) < 1e-2
# @test norm(_Jnsad - _Jma, Inf) < 1e-6
# @test norm(_solfd[1:end-2] - _sol[1], Inf) < 1e-2
# @test abs(_solfd[end-1] - _sol[2]) < 1e-2
# @test abs(_solfd[end] - _sol[3]) < 1e-2

0 comments on commit 3b6c8bf

Please sign in to comment.