Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving magnetic field memory access #85

Open
jgalan opened this issue Feb 13, 2024 · 0 comments
Open

Improving magnetic field memory access #85

jgalan opened this issue Feb 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jgalan
Copy link
Member

jgalan commented Feb 13, 2024

The bottleneck in ray-tracing calculations is coming from the integration of the axion-field inside an inhomogeneous magnetic field.

Mainly, the reason why the computation is expensive is due to the evaluation of the magnetic field in the class TRestAxionMagneticField, the required computation time may be evaluated using the macro REST_Axion_FieldIntegrationTests.

One could also test by accessing N-times to the TRestAxionMagneticField::GetMagneticField at random positions.

A failed attempt to improve the memory access efficiency is in the following PR. Where I replaced the nested std::vector scheme by a single std::vector.

#83

@jgalan jgalan added the enhancement New feature or request label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant