From 0048959473c8594738d9a9aae5a6bc318717a7da Mon Sep 17 00:00:00 2001 From: John Omotani Date: Sat, 26 Oct 2024 20:19:12 +0100 Subject: [PATCH] fix adi jacobian function --- .../src/electron_kinetic_equation.jl | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/moment_kinetics/src/electron_kinetic_equation.jl b/moment_kinetics/src/electron_kinetic_equation.jl index 1686f5197f..d6628930a7 100644 --- a/moment_kinetics/src/electron_kinetic_equation.jl +++ b/moment_kinetics/src/electron_kinetic_equation.jl @@ -3404,15 +3404,12 @@ energy equation. end """ - fill_electron_kinetic_equation_z_only_Jacobian_f!(jacobian_matrix, f, ppar, moments, - collisions, composition, z, vperp, - vpa, z_spectral, vperp_specral, - vpa_spectral, z_advect, vpa_advect, - scratch_dummy, - external_source_settings, - num_diss_params, t_params, ion_dt, - ir, ivperp, ivpa, evolve_ppar, - include=:all) + fill_electron_kinetic_equation_z_only_Jacobian_f!( + jacobian_matrix, f, ppar, dpdf_dz, dpdf_dvpa, z_speed, moments, zeroth_moment, + first_moment, second_moment, third_moment, dthird_moment_dz, collisions, + composition, z, vperp, vpa, z_spectral, vperp_spectral, vpa_spectral, z_advect, + vpa_advect, scratch_dummy, external_source_settings, num_diss_params, t_params, + ion_dt, ir, ivperp, ivpa, evolve_ppar) Fill a pre-allocated matrix with the Jacobian matrix for a z-direction solve part of the ADI method for electron kinetic equation and (if `evolve_ppar=true`) the electron energy @@ -3471,10 +3468,10 @@ end """ fill_electron_kinetic_equation_z_only_Jacobian_ppar!( - jacobian_matrix, f, ppar, moments, collisions, composition, z, vperp, vpa, - z_spectral, vperp_specral, vpa_spectral, z_advect, vpa_advect, scratch_dummy, - external_source_settings, num_diss_params, t_params, ion_dt, ir, ivperp, ivpa, - evolve_ppar, include=:all) + jacobian_matrix, ppar, moments, zeroth_moment, first_moment, second_moment, + third_moment, dthird_moment_dz, collisions, composition, z, vperp, vpa, + z_spectral, vperp_spectral, vpa_spectral, z_advect, vpa_advect, scratch_dummy, + external_source_settings, num_diss_params, t_params, ion_dt, ir, evolve_ppar) Fill a pre-allocated matrix with the Jacobian matrix for a z-direction solve part of the ADI method for electron kinetic equation and (if `evolve_ppar=true`) the electron energy