Skip to content

Conversation

@dschwoerer
Copy link
Contributor

No description provided.

@dschwoerer dschwoerer added the FCI label Nov 18, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

w3(localmesh) {

if (localmesh->getNXPE() > 1) {
throw BoutException("Do not support MPI splitting in X");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: no header providing "BoutException" is directly included [misc-include-cleaner]

src/mesh/interpolation/bilinear_xz.cxx:22:

- #include "bout/globals.hxx"
+ #include "bout/boutexception.hxx"
+ #include "bout/globals.hxx"


XZHermiteSpline::XZHermiteSpline(int y_offset, Mesh* mesh)
: XZInterpolation(y_offset, mesh), h00_x(localmesh), h01_x(localmesh),
XZHermiteSpline::XZHermiteSpline(int y_offset, Mesh* meshin)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: constructor does not initialize these fields: petscWeights, rhs, result [cppcoreguidelines-pro-type-member-init]

include/bout/interpolation_xz.hxx:163:

-   Mat petscWeights;
-   Vec rhs, result;
+   Mat petscWeights{};
+   Vec rhs{}, result{};

: XZInterpolation(y_offset, mesh), t_x(localmesh), t_z(localmesh) {

if (localmesh->getNXPE() > 1) {
throw BoutException("Do not support MPI splitting in X");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: no header providing "BoutException" is directly included [misc-include-cleaner]

src/mesh/interpolation/lagrange_4pt_xz.cxx:22:

- #include "bout/globals.hxx"
+ #include "bout/boutexception.hxx"
+ #include "bout/globals.hxx"

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

ASSERT1(f.getMesh() == localmesh);
Field3D f_interp{emptyFrom(f)};

const auto region2 = fmt::format("RGN_YPAR_{:+d}", y_offset);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: no header providing "fmt::format" is directly included [misc-include-cleaner]

src/mesh/interpolation/hermite_spline_xz.cxx:23:

- #include "bout/globals.hxx"
+ #include "fmt/format.h"
+ #include "bout/globals.hxx"

@ZedThree
Copy link
Member

Failing in test-interpolate:

terminate called after throwing an instance of 'BoutException'
  what():  Couldn't find region RGN_YPAR_+0 in regionMap3D

@dschwoerer dschwoerer force-pushed the add-assert-non-parallel branch from 2b82bc7 to 49028fe Compare November 24, 2025 11:10
@dschwoerer
Copy link
Contributor Author

test-cyclic was stuck in CI. A restart solved that. Just in case this happens again, we maybe should investigate. It would not be great to have a solver get stuck in a production run ...

@dschwoerer dschwoerer requested a review from ZedThree November 24, 2025 11:10
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Field3D f_interp{emptyFrom(f)};

const auto region2 =
y_offset == 0 ? "RGN_NOY" : fmt::format("RGN_YPAR_{:+d}", y_offset);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: no header providing "fmt::format" is directly included [misc-include-cleaner]

src/mesh/interpolation/hermite_spline_xz.cxx:23:

- #include "bout/globals.hxx"
+ #include "fmt/format.h"
+ #include "bout/globals.hxx"

@dschwoerer dschwoerer dismissed ZedThree’s stale review December 1, 2025 14:24

I have addressed the comments, should be good for re-review.

@ZedThree ZedThree merged commit f18ee27 into next Dec 1, 2025
27 checks passed
@ZedThree ZedThree deleted the add-assert-non-parallel branch December 1, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants