-
Notifications
You must be signed in to change notification settings - Fork 20
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
BEAMS3D: strange behavior when compiling in debug #193
Comments
When running a W7-X VMEC case in debug mode, the following error occurs:
This is caused by the following calculation of invDenom:
We could bound the denominator eg. by a MIN() statement, skip the calculation for the triangles where this happens or ensure we only include well-defined triangles in the wall model creation. Combining the last two would probably be the most robust and accurate. |
What error? Floating point underflow? |
Sorry, it's a floating-point divide by zero error: |
It must be a small triangle issue. |
When having compiled in debug, e.g with 'make clean_debug', BEAMS3D shows weird behavior. Particularly, GetBCyl in init_vmec does not produce sensible values as it does when compiled with release. One effect is that S_ARR has values of 1.01 inside the Plasma (S<1), but I've also seen it being equal to 4, which is sflxsflxscaleupscaleup=1122.
This did not appear to change when going back on the develop branch a couple of months, so does not seem to be a recent issue.
The text was updated successfully, but these errors were encountered: