Skip to content

Commit

Permalink
Tidy up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani authored Oct 30, 2023
1 parent afe3709 commit 5d5ddaf
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions runs/1D-wall_MMS_new_nel_r_1_z_16_vpa_16_vperp_1_krook.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ z_IC_temperature_amplitude2 = 0.0
z_IC_temperature_phase2 = 0.0
charge_exchange_frequency = 0.0
ionization_frequency = 0.0
#krook_collisions = false
krook_collisions_option = "manual"
nuii_krook = 1.0
nstep = 2000
Expand Down Expand Up @@ -60,7 +59,6 @@ vperp_ngrid = 1
vperp_nelement = 1
vperp_L = 6.0
vperp_bc = "periodic"
#vperp_discretization = "finite_difference"
vperp_discretization = "chebyshev_pseudospectral"

vz_ngrid = 17
Expand Down
2 changes: 0 additions & 2 deletions runs/1D-wall_MMS_new_nel_r_1_z_16_vpa_8_vperp_8_krook.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ z_IC_temperature_amplitude2 = 0.0
z_IC_temperature_phase2 = 0.0
charge_exchange_frequency = 0.0
ionization_frequency = 0.0
#krook_collisions = false
krook_collisions_option = "manual"
nuii_krook = 1.0
nstep = 2000
Expand Down Expand Up @@ -60,7 +59,6 @@ vperp_ngrid = 17
vperp_nelement = 8
vperp_L = 6.0
vperp_bc = "periodic"
#vperp_discretization = "finite_difference"
vperp_discretization = "chebyshev_pseudospectral"

vz_ngrid = 17
Expand Down
2 changes: 1 addition & 1 deletion src/input_structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ mutable struct collisions_input
constant_ionization_rate::Bool
# Coulomb collision rate at the reference density and temperature
krook_collision_frequency_prefactor::mk_float
# Coulomb collision rate at the reference density and temperature
# Setting to switch between different options for Krook collision operator
krook_collisions_option::String
end

Expand Down
2 changes: 1 addition & 1 deletion src/krook_collisions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function krook_collisions!(pdf_out, fvec_in, moments, composition, collisions, v
# normalized by sqrt(pi) (see velocity_moments.integrate_over_vspace).
if collisions.krook_collisions_option == "manual"
cfac = 0.0
else # default option, collisions.krook_collisions_option == "default"
else # default option, collisions.krook_collisions_option == "reference_parameters"
cfac = 1.0
end
if moments.evolve_ppar && moments.evolve_upar
Expand Down
3 changes: 0 additions & 3 deletions test/velocity_integral_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function runtests()
ppar_test = get_ppar(dfn,vpa,vperp,upar_test)
pperp_test = get_pperp(dfn,vpa,vperp)
pres_test = pressure(ppar_test,pperp_test)
# output test results
@test isapprox(dens_test, dens; atol=atol)
@test isapprox(upar_test, upar; atol=atol)
@test isapprox(pres_test, pres; atol=atol)
Expand All @@ -102,7 +101,6 @@ function runtests()
dens_test = get_density(dfn1D,vz,vr)
upar_test = get_upar(dfn1D,vz,vr,dens_test)
ppar_test = get_ppar(dfn1D,vz,vr,upar_test)
# output test results
@test isapprox(dens_test, dens; atol=atol)
@test isapprox(upar_test, upar; atol=atol)
@test isapprox(ppar_test, ppar; atol=atol)
Expand Down Expand Up @@ -131,7 +129,6 @@ function runtests()
upar_test = get_upar(dfn,vpa,vperp,dens_test)
ppar_test = get_ppar(dfn,vpa,vperp,upar_test)
pperp_test = get_pperp(dfn,vpa,vperp)
# output test results

@test isapprox(dens_test, dens; atol=atol)
@test isapprox(upar_test, upar; atol=atol)
Expand Down

0 comments on commit 5d5ddaf

Please sign in to comment.