Skip to content

CI: Backport various fixes - #3141

Merged
ZedThree merged 11 commits into
masterfrom
fix-failing-ci
Jun 27, 2025
Merged

CI: Backport various fixes#3141
ZedThree merged 11 commits into
masterfrom
fix-failing-ci

Conversation

@ZedThree

Copy link
Copy Markdown
Member
  • PETSc function cast fix
  • CI Fedora and Ubuntu images

Replaces #3135 and #3138, just trying to get all the fixes in one PR so everything actually passes

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread include/bout/petsc_interface.hxx
Comment thread include/bout/petsc_interface.hxx
Comment thread include/bout/petsc_interface.hxx
Comment thread src/solver/impls/snes/snes.cxx

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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

* This can be a linearised and simplified form of FormFunction
*/
static PetscErrorCode FormFunctionForColoring(SNES UNUSED(snes), Vec x, Vec f,
static PetscErrorCode FormFunctionForColoring(void* UNUSED(snes), Vec x, Vec f,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: function 'FormFunctionForColoring' declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]

static PetscErrorCode FormFunctionForColoring(void* UNUSED(snes), Vec x, Vec f,
                      ^

MatFDColoringSetFunction(
fdcoloring, reinterpret_cast<PetscErrorCode (*)()>(FormFunctionForColoring),
this);
MatFDColoringSetFunction(fdcoloring,

Copy link
Copy Markdown
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 "MatFDColoringSetFunction" is directly included [misc-include-cleaner]

      MatFDColoringSetFunction(fdcoloring,
      ^

@ZedThree

Copy link
Copy Markdown
Member Author

Ok, now the tests are failing when trying to link using bout-config:

/usr/bin/ld: cannot find -lnetCDF::netcdf: No such file or directory

Presumably this was also fixed on next

@ZedThree

Copy link
Copy Markdown
Member Author

Ok, we finally have master passing all CI again! Assuming there are no objections, I will go ahead and merge this later today

@dschwoerer dschwoerer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, its good to have a passing CI :-)

@ZedThree
ZedThree merged commit 9b6ce3a into master Jun 27, 2025
@ZedThree
ZedThree deleted the fix-failing-ci branch June 27, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants