Repository navigation
Update BIEST and SCTL to their latest master - #26
Merged
Merged
Conversation
BIEST: - FieldPeriodBIOp no longer has the COORD_DIM, KDIM0 and KDIM1 template parameters, and its SetupSingular takes one surface, with the target grid before the source grid. ComputeB and ComputeGradB also pass it B, so that the quadrature grid resolves B too. - SurfaceOp::CompleteVecField no longer takes is_surf: it takes the parity of the data under stellarator symmetry (biest::Parity::Even for the surface coordinates, Odd for the field B0) and tor_orient, +1 or -1 as the toroidal index of the surface increases counterclockwise or clockwise. VirtualCasing keeps tor_orient_ of the surface from Setup. - The WriteVTK of a field period takes the parity of its field: Odd for B, and Even for the gradient of B, which writes it as before (no single parity fits a gradient; the call is in disabled visualization code). SCTL 08448fa writes the constants of BoundaryIntegralOp in Real; the float version of the library now compiles it, through BIEST. The limits of test_w7x and of the rotating-ellipse tests were set just above the errors of BIEST v1.0.0. They are now 10^-digits, the requested accuracy, wherever the code reaches it; the limit of test_w7x at 12 digits and the limits of the gradient are unchanged. The two go together: with this BIEST, the rotating ellipse at 6 digits reaches 7.3 digits, short of its old limit 2e-8 (7.7 digits), and BIEST v1.0.0 reached 8.97 digits for W7-X at 9 digits. test/virtual-casing, test/axisymm, test/virtual-casing-c and the Python package build without warnings with GCC 13.3, and the 4 tests of test.py pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
print_relative_err captured NFP, half_period, Nt, Np, trg_Nt, trg_Np and X, used only by a commented-out WriteVTK line, and idx the constant N. Clang 19 and icpx 2025 warned about them with -Wall. The output of the test is unchanged (GCC 13.3), and with BIEST 8978b33 the code compiles without warnings with GCC 11.5, 13.3, 14.2, Clang 18, 19 and icpx 2025. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bumps BIEST to its latest master (
8978b33) and SCTL to08448fa. The computed fields change: the tests now require the requested accuracy, 10^-digits, wherever the code reaches it.FieldPeriodBIOpno longer has theCOORD_DIM,KDIM0andKDIM1template parameters, and itsSetupSingulartakes one surface, with the target grid before the source grid.ComputeBandComputeGradBalso pass it B, so that the quadrature grid resolves B too.SurfaceOp::CompleteVecFieldtakes the parity of the data under stellarator symmetry and the toroidal orientation of the surface, in place ofis_surf.VirtualCasingkeeps the orientation of the surface fromSetup.08448fawrites the constants ofBoundaryIntegralOpinReal, so thefloatversion of the library now compiles.test.py: the limits oftest_w7xand of the rotating-ellipse tests were set just above the errors of BIEST v1.0.0; they are now 10^-digits, the requested accuracy. The limit oftest_w7xat 12 digits and the limits of the gradient are unchanged. With this BIEST the rotating ellipse at 6 digits reaches 7.3 digits, short of its old limit 2e-8 (7.7 digits); BIEST v1.0.0 reached 8.97 digits for W7-X at 9 digits.test/virtual-casing.cpp: no unused lambda captures, which Clang and icpx warned about.The public C++ and Python interfaces are unchanged; only private members of
VirtualCasingchange.The C++, C and Python tests pass, here in CI and on an AMD EPYC 9474F node with GCC 13.3. The code compiles without warnings with
-std=c++17 -Wallwith GCC 11.5, 13.3 and 14.2, Clang 18 and 19, and icpx 2025.🤖 Generated with Claude Code