Missed boundary conditions during merge

This commit is contained in:
Nuwan Yapa 2025-04-16 16:48:03 -04:00
parent 61979c4521
commit 1311db53f7
1 changed files with 2 additions and 2 deletions

View File

@ -68,12 +68,12 @@ function solveNucleonWf(κ, p::Bool, E, s::system; normalize=true, algo=Vern9())
right_r = s.r_mesh.r[mid_idx:end]
# left partition
prob = ODEProblem(dirac!, [0, 1], (0, r_mid))
prob = ODEProblem(dirac!, init_BC(), (0, r_mid))
sol = solve(prob, algo, p=(κ, E, f1, f2), saveat=left_r)
wf_left = hcat(sol.u...)
# right partition
prob = ODEProblem(dirac!, [0, 1], (s.r_mesh.r_max, r_mid))
prob = ODEProblem(dirac!, asymp_BC(κ, p, E, s.r_mesh.r_max), (s.r_mesh.r_max, r_mid))
sol = solve(prob, algo, p=(κ, E, f1, f2), saveat=right_r)
wf_right = reverse(hcat(sol.u...); dims=2)