Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
ExternalObjective
function to wrap external codes #1028base: master
Are you sure you want to change the base?
ExternalObjective
function to wrap external codes #1028Changes from 8 commits
456a02b
6a557ec
fc9ef77
9a64f25
ae84d5e
11c1438
bedcee1
aff7d46
7f3ff5b
2bb9017
7b1cfaf
debecad
633fa5b
9ea37fb
87ab19f
5395611
52d58d0
96bf929
30aeea4
90296ea
d16e95d
6b3f86d
f9b7562
fe5e95c
f1f466b
ecc5b3b
800b9bb
bf62014
0547bd7
e3057dd
4323b8a
03d0cb5
7723ecd
4864b56
ef9711b
180c503
cea3f4a
09c02ec
0b2207f
f6a395b
aa570d4
d62d9ca
8c7bcb1
7f1907b
76b2a3c
ef98142
16bb59b
a83a671
8beb2e6
9e57ee1
11521b2
c004724
37f9ee3
aab0bdb
829af5a
ba1a252
bb8a535
56d6662
655fe06
44c25a2
795350d
6fef120
021106d
0f35919
24dd2f3
d3aa2dd
ac1aa63
4db5c9f
96aec58
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 83 in desc/objectives/_generic.py
Codecov / codecov/patch
desc/objectives/_generic.py#L83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may want to also scale fd_step by
norm(x)
to ensure that dx << xThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normalize vh to be same norm as |x|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and undo at the end as well considering the scales)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x
here is reallyparams
, which includes variables at very different scales like boundary coefficients vs current profile coefficients. We are using the same finite difference step size for everything, which means that step could be huge for some variables and tiny for others. Then when generating wout files and running external codes for those perturbed equilibria, the results might not be physically meaningful.