Skip to content

Commit

Permalink
Fix indexing typo in charge_exchange_collisions_3V!()
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Jun 21, 2022
1 parent 8d166a8 commit db2cf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charge_exchange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function charge_exchange_collisions_3V!(f_out, f_neutral_out, f_neutral_gav_in,
# apply CX collisions to all ion species
# for each ion species, obtain affect of charge exchange collisions
# with all of the neutral species
f_out[ivpa,1,iz,ir,is] +=
f_out[ivpa,ivperp,iz,ir,is] +=
dt*charge_exchange_frequency*(
f_neutral_gav_in[ivpa,ivperp,iz,ir,isn]*fvec_in.density[iz,ir,is]
- fvec_in.pdf[ivpa,ivperp,iz,ir,is]*fvec_in.density_neutral[iz,ir,isn])
Expand Down

0 comments on commit db2cf67

Please sign in to comment.