-
Notifications
You must be signed in to change notification settings - Fork 49
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
Mgrid improvements #396
Mgrid improvements #396
Conversation
In the MGrid class, the method |
I've never seen mgrid files that contain the vector potential before. Is there some version of xgrid other than the one in stellopt that writes mgrid files containing A? mgrid files are already quite large and storing A makes them twice as big, and vmec doesn't need A, so I'm not sure it makes sense to always include A. |
The oak ridge version of MakeGrid includes the vector potential. It is necessary to run BMW. |
Will make including potential optional and default to off |
I would like to update the test that reads an mgrid file to include one with the potential fields enabled. But I don't know how to regenerate the test mgrid file. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #396 +/- ##
==========================================
- Coverage 91.56% 91.17% -0.39%
==========================================
Files 74 74
Lines 12762 12829 +67
==========================================
+ Hits 11685 11697 +12
- Misses 1077 1132 +55
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
It looks like that test file |
Should I be worried about the failed tests? |
@aaroncbader The issue is not with your tests, but one of Spec tests is failing. I am not sure if that test is using the mgrid file that was modified, but I doubt it. |
There looks to be an issue with loading mgrids. But it's not one that I introduced. Simsopt is unable to load mgrids that it saves. It looks like this problem predates my changes. I'll see if I can fix it. |
ok, I've fixed up the mgrid |
This PR updates the mgrid writing script to also include the arrays for the Magnetic Potential. These values are needed in some codes (such as BMW).
There is a separate issue in the mgrid to allow for calculation of multiple coil sets separately with scaled currents, but that requires some more thought.