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

Add torax_mesh to StaticRuntimeParamsSlice. #625

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Conversation

copybara-service[bot]
Copy link

Add torax_mesh to StaticRuntimeParamsSlice.

torax_mesh is constant for a simulation and any modification implies a change in array sizes and hence recompilation. It is thus safe to have as a static variable and useful to have concrete values of the mesh in JAX jitted functions for simplifying various calculations.

@copybara-service copybara-service bot force-pushed the test_709045823 branch 5 times, most recently from fa848c6 to e998dcc Compare December 24, 2024 00:42
torax_mesh is constant for a simulation and any modification implies a change in array sizes and hence recompilation. It is thus safe to have as a static variable and useful to have concrete values of the mesh in JAX jitted functions for simplifying various calculations.

PiperOrigin-RevId: 709180279
@copybara-service copybara-service bot merged commit 2147d27 into main Dec 24, 2024
@copybara-service copybara-service bot deleted the test_709045823 branch December 24, 2024 00:47
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