Skip to content

Commit

Permalink
Rename variables in external_sources.jl module in line with present s…
Browse files Browse the repository at this point in the history
…tate of code. Unclear how examples/fokker_planck/ tests passed with variables out of namespace, now corrected.
  • Loading branch information
mrhardman committed Dec 19, 2024
1 parent 753e320 commit 998c725
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions moment_kinetics/src/external_sources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ Add external source term to the ion kinetic equation.
end
elseif source_type == "alphas" || source_type == "alphas-with-losses"
begin_s_r_z_region()
source_v0 = ion_source_settings.source_v0
source_v0 = ion_source.source_v0
if !(source_v0 > 1.0e-8)
error("source_v0=$source_v0 < 1.0e-8")
end
Expand All @@ -840,8 +840,8 @@ Add external source term to the ion kinetic equation.
end

if source_type == "alphas-with-losses"
sink_vth = ion_source_settings.sink_vth
sink_strength = ion_source_settings.sink_strength
sink_vth = ion_source.sink_vth
sink_strength = ion_source.sink_strength
if !(sink_vth > 1.0e-8)
error("sink_vth=$sink_vth < 1.0e-8")
end
Expand Down Expand Up @@ -871,8 +871,8 @@ Add external source term to the ion kinetic equation.
end
elseif source_type == "beam" || source_type == "beam-with-losses"
begin_s_r_z_region()
source_vpa0 = ion_source_settings.source_vpa0
source_vperp0 = ion_source_settings.source_vperp0
source_vpa0 = ion_source.source_vpa0
source_vperp0 = ion_source.source_vperp0
if !(source_vpa0 > 1.0e-8)
error("source_vpa0=$source_vpa0 < 1.0e-8")
end
Expand Down Expand Up @@ -901,8 +901,8 @@ Add external source term to the ion kinetic equation.
end

if source_type == "beam-with-losses"
sink_vth = ion_source_settings.sink_vth
sink_strength = ion_source_settings.sink_strength
sink_vth = ion_source.sink_vth
sink_strength = ion_source.sink_strength
if !(sink_vth > 1.0e-8)
error("sink_vth=$sink_vth < 1.0e-8")
end
Expand Down

0 comments on commit 998c725

Please sign in to comment.