-
Notifications
You must be signed in to change notification settings - Fork 111
Normalisation fixes #3482
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
Normalisation fixes #3482
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,14 +81,18 @@ MetricNormaliser TokamakOrFCIMetricNormaliser(const Mesh* mesh, BoutReal Bnorm, | |
| if (mesh->isFci()) { | ||
| return {.g{SQ(rho_s0)}, .J{rho_s0 * rho_s0 * rho_s0}, .Bxy{Bnorm}}; | ||
| } | ||
| return {.g11{1 / SQ(Bnorm * rho_s0)}, | ||
| return {.g11{SQ(Bnorm * rho_s0)}, | ||
| .g11_mul{true}, | ||
| .g22{SQ(rho_s0)}, | ||
| .g33{SQ(rho_s0)}, | ||
| .g12{1 / Bnorm}, | ||
| .g13{1 / Bnorm}, | ||
| .g12{Bnorm}, | ||
| .g12_mul{true}, | ||
|
dschwoerer marked this conversation as resolved.
Comment on lines
+88
to
+89
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand this at all -- why is this not equivalent? Is it just loss of precision?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, and that seems to cause the failures in Hermes-3. If you think we should not do this, and just update the expected results, then we can do that, too. But I thought it might be good if we do not change results without a somewhat good reason, and the |
||
| .g13{Bnorm}, | ||
| .g13_mul{true}, | ||
|
dschwoerer marked this conversation as resolved.
|
||
| .g23{SQ(rho_s0)}, | ||
| .dx{rho_s0 * rho_s0 * Bnorm}, | ||
| .J{rho_s0 / Bnorm}, | ||
| .J{Bnorm / rho_s0}, | ||
| .J_mul{true}, | ||
|
dschwoerer marked this conversation as resolved.
|
||
| .Bxy{Bnorm}}; | ||
| } | ||
|
|
||
|
|
||
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.
warning: braces around scalar initializer [clang-diagnostic-braced-scalar-init]
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.
Not sure what clang-tidy is trying to do here, but g++ 15.2.0 is not happy with the suggested change.