Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #425: irold not updated in electron step loop
Assign the current particle region, ir(np), to the old region index, irold, within the ustep loop in electron transport. Previously, irold was not updated, so the irnew ~= irold condition added to fix magnetic field transport in vacuum caused zero-size steps to skip the region change macro. Remove the now redundant irold = ir(np) assignment in the non-zero step size block.
- Loading branch information
571baca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this bug!! I struggled several days with this issue. 👌