Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
oshapoval committed Jan 21, 2025
1 parent b8e49e1 commit 02de61d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def secondary_emission():
buffer.get_particle_boundary_buffer("ions", "eb", "deltaTimeScraped", lev)
)
energy_ions = 0.5 * proton_mass * w * (ux**2 + uy**2 + uz**2)
energy_ions_in_kEv = energy_ions / (1.602176634e-19 * 1000)
energy_ions_in_kEv = energy_ions / (e * 1000)
sigma_nascap_ions = sigma_nascap(energy_ions_in_kEv, delta_H, E_HMax)
# Loop over all ions in the EB buffer
for i in range(0, n):
Expand All @@ -197,7 +197,7 @@ def secondary_emission():
Ne_sec = (
sigma_int + 1
) # number of the secondary electrons to be emitted
for j in [0, Ne_sec - 1]:
for i_elec in [0, Ne_sec - 1]:

Check failure

Code scanning / CodeQL

Suspicious unused loop iteration variable Error

For loop variable 'i_elec' is not used in the loop body.
xe = np.array([])
ye = np.array([])
ze = np.array([])
Expand Down

0 comments on commit 02de61d

Please sign in to comment.