Skip to content

HOTFIX: remove mc2nu mapping inside loss cone updater on CPU#973

Open
Maxwell-Rosen wants to merge 1 commit intomainfrom
fix-loss-cone-mask-cpu
Open

HOTFIX: remove mc2nu mapping inside loss cone updater on CPU#973
Maxwell-Rosen wants to merge 1 commit intomainfrom
fix-loss-cone-mask-cpu

Conversation

@Maxwell-Rosen
Copy link
Copy Markdown
Collaborator

@Maxwell-Rosen Maxwell-Rosen commented Mar 13, 2026

The c2p here should not be there. The c2p is used to convert xn into physical coordinates. This is wrong in space, but okay in velocity, because the magnetic field maximum is found in computational coordinates, so it should be compared against computational coordinates. Code compiles. This isn't the cleanest version, but I will clean it up more in the gk-oap-2x-tandem-kinetic branch.

Code compiles on linux CPU laptop

The location of maximum B is computed here. Note that there is a log_to_comp, but there is no mc2nu function or non-uniform mapping.
image

…physical coordinates. This is wrong in space, but okay in velocity, because the magnetic field maximum is found in computaitonal coordinates, so it should be compared against computational coordinates. Code compiles. This isn't the cleanest version, but I will clean it up more in the gk-oap-2x-tandem-kinetic branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant