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

Correct sign for BgB convectivity #447

Merged

Conversation

theo-brown
Copy link
Collaborator

See discussion #446.

@theo-brown theo-brown mentioned this pull request Oct 16, 2024
9 tasks
@jcitrin
Copy link
Collaborator

jcitrin commented Oct 16, 2024

First of all, I see that unittests aren't launched when you push, which is odd and something we need to look at. Probably with the way github actions is set up.

In any case, I looked deeper at the case, and realized that v_face_el is near-zero (1e-5 level). I don't see any bug in the formula compared to Tholerus et al. It's a bit odd. Maybe worthwhile comparing to JETTO values? Thus I wouldn't expect this sign change, while correct, to actually significantly the ITER density peaking in the comparison with QLKNN you've made. However, maybe you can check that and post the plot with pre and post BgB bugfix to this PR.

For TORAX, it may be helpful to sync to head and use the new plotting tools, whose default plot_config has more extensive information including D and V. See https://torax.readthedocs.io/en/latest/plotting.html

image

@theo-brown
Copy link
Collaborator Author

theo-brown commented Oct 16, 2024

Regarding unit tests, might it be because the on: pull-request flag isn't set in the Github actions workflow pytest.yml? I think because I don't have write permissions on this repo, I have to fork it and make my changes in a fork, then PR from the fork to this repo. This means I don't trigger the on: push that sets off pytest.yml.

I think perhaps "Pass unit tests" should be a check, alongside the import/copybara and cla/google checks.

@jcitrin
Copy link
Collaborator

jcitrin commented Oct 17, 2024

Thanks for the tips. We'll take a look and fix permissions / configuration. Ideally the unittests should run at every commit to a branch, and every PR. Ideally you also wouldn't need to fork, and could push to a branch. Will investigate.

@copybara-service copybara-service bot merged commit 35ce9b0 into google-deepmind:main Oct 22, 2024
1 of 2 checks passed
@jcitrin
Copy link
Collaborator

jcitrin commented Oct 22, 2024

@theo-brown , merged with 35ce9b0

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.

2 participants