Skip to content

Commit

Permalink
correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rveltz committed Feb 11, 2024
1 parent 15ffef9 commit e4c9b6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/periodicorbit/PeriodicOrbitCollocation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ $(SIGNATURES)
n, m, Ntst = size(pb)
L, ∂L = get_Ls(pb.mesh_cache)
ω = pb.mesh_cache.gauss_weight
mesh = pb.mesh_cache.mesh
mesh = pb.mesh_cache.τs

guj = zeros(Ty, n, m)
uj = zeros(Ty, n, m+1)
Expand Down Expand Up @@ -1203,11 +1203,11 @@ end
rg = 1:nbcoll
for _ in 1:Ntst
F = lu(J[rg, rg .+ N])
P[rg, rg] .= (F.P \ F.L)
𝐅𝐬[rg, rg] .= (F.P \ F.L)
rg = rg .+ nbcoll
end

Fₚ = lu(P)
Fₚ = lu(𝐅𝐬)
Jcond = Fₚ \ J
rhs = Fₚ \ rhs0

Expand Down
2 changes: 1 addition & 1 deletion test/stuartLandauCollocation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ length(prob_col)
BK.get_times(prob_col)
BK.get_max_time_step(prob_col)
size(prob_col.mesh_cache)
BK.update_mesh!(prob_col, prob_col.mesh_cache.mesh)
BK.update_mesh!(prob_col, prob_col.mesh_cache.τs)
PeriodicOrbitOCollProblem(10, 2) |> BK.get_mesh_size
BK.get_Ls(prob_col)
show(prob_col)
Expand Down

0 comments on commit e4c9b6b

Please sign in to comment.