-
Notifications
You must be signed in to change notification settings - Fork 26
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
zeta_B computation is sometimes wrong #1163
Comments
Could they be the same modulo 2pi/NFP? |
Is this |
I checked: no. This is reproducible on my machine. Repeated calls to the test give 40/60 pass,fail split respectively, sample size 8. It is consistent in that when the failure occurs it is always the same result. I'm now leaning towards option 1.
Yes it looked fine when we merged. I think it was around time failure starts occurring. @register_compute_fun(
name="zeta_B",
label="\\zeta_{B}",
units="rad",
units_long="radians",
description="Boozer toroidal angular coordinate",
dim=1,
params=[],
transforms={},
profiles=[],
coordinates="rtz",
data=["zeta", "nu"],
# default parameterization is equilibrium
)
def _zeta_B(params, transforms, profiles, data, **kwargs):
data["zeta_B"] = data["zeta"] + data["nu"]
return data
....
# in data_index.py
_class_inheritance = {
...
"desc.magnetic_fields._core.OmnigenousField": [], # in that case shouldn't this include equilibrium or add parameteriation to above?
} |
#1166) - [x] Move test compute everything to own file and exclude source grid quantities. from commit 8a8d9de. - [x] Remove xyz basis file in favor of correctness check to catch bug #1088 - [x] Debug zeta_B computation. #1163 has been reproduced here (and on master by Dario). This issue was resolved after fixing the computation of zeta_B and theta_B for omnigenous fields.
Sometimes when I rerun the test that compares everything is computed the same as master up to floating point errors, I get significant errors on
zeta_B
.This error is not always reproducible. However, it has even occurred on new branches, even when the file that the results are compared to was regenerated immediately prior to running the test.
Therefore, either
zeta_B
is not deterministic or subject to a numerical instability (silly)The text was updated successfully, but these errors were encountered: