-
Notifications
You must be signed in to change notification settings - Fork 45
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
2X faster vmec_fieldlines #243
Conversation
Date: Sun Jul 3 21:25:39 2022 -0400 Committer: Rahul Gaur <rg6256@stellar-intel.princeton.edu> modified: ../../src/simsopt/mhd/vmec_diagnostics.py modified: test_vmec_diagnostics.py
Codecov Report
@@ Coverage Diff @@
## master #243 +/- ##
=======================================
Coverage 91.80% 91.80%
=======================================
Files 60 60
Lines 8984 8985 +1
=======================================
+ Hits 8248 8249 +1
Misses 736 736
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Also, |
vmec_fieldlines: reduced number of iterations for root finding
Hi everyone,
In the
vmec_diagnostics.py
script, to find theta_vmec for a given theta_pest, one needs a non-linear root-finding algorithm. I have added a faster root finder to the vmec_fieldlines function. This function, written by Alan Goodman, speeds up the root-finding procedure by a factor of eight and the vmec_fieldlines function by at least a factor of two.