From fe922fa9df9290cd6dff7529883ed78f582e5d8e Mon Sep 17 00:00:00 2001 From: John Omotani Date: Thu, 12 Sep 2024 22:10:03 +0100 Subject: [PATCH] Fix typo in external_electron_source!() --- moment_kinetics/src/external_sources.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moment_kinetics/src/external_sources.jl b/moment_kinetics/src/external_sources.jl index 07474ca76..444833d11 100644 --- a/moment_kinetics/src/external_sources.jl +++ b/moment_kinetics/src/external_sources.jl @@ -935,7 +935,8 @@ function total_external_electron_sources!(pdf_out, pdf_in, electron_density, ele end """ - external_electron_source!(pdf, fvec, moments, electron_source_settings, vperp, + external_electron_source!(pdf_out, pdf_in, electron_density, electron_upar, + moments, composition, electron_source, index, vperp, vpa, dt) Add external source term to the electron kinetic equation. @@ -974,7 +975,7 @@ function external_electron_source!(pdf_out, pdf_in, electron_density, electron_u end end - if electron_source_settings.source_type == "energy" + if electron_source.source_type == "energy" # Take particles out of pdf so source does not change density @loop_r_z_vperp_vpa ir iz ivperp ivpa begin pdf_out[ivpa,ivperp,iz,ir] -= dt * source_amplitude[iz,ir] *