Missed boundary conditions during merge
This commit is contained in:
parent
61979c4521
commit
1311db53f7
|
|
@ -68,12 +68,12 @@ function solveNucleonWf(κ, p::Bool, E, s::system; normalize=true, algo=Vern9())
|
||||||
right_r = s.r_mesh.r[mid_idx:end]
|
right_r = s.r_mesh.r[mid_idx:end]
|
||||||
|
|
||||||
# left partition
|
# 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)
|
sol = solve(prob, algo, p=(κ, E, f1, f2), saveat=left_r)
|
||||||
wf_left = hcat(sol.u...)
|
wf_left = hcat(sol.u...)
|
||||||
|
|
||||||
# right partition
|
# 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)
|
sol = solve(prob, algo, p=(κ, E, f1, f2), saveat=right_r)
|
||||||
wf_right = reverse(hcat(sol.u...); dims=2)
|
wf_right = reverse(hcat(sol.u...); dims=2)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue