Skip to content
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

Make updates for compatibility with latest MOOSE version #35

Conversation

hsaunders1904
Copy link
Contributor

Summary

To use Hippo with the latest version of MOOSE we had to:

  • Update bool FoamProblem::converged() to the new form required by MOOSE bool FoamProblem::converged(const unsigned int).
  • Update tests that used RunCommand, as upstream changes meant that the given command was no longer passed directly to the shell. It seems that the given string's first argument is taken as the executable and all subsequent arguments are passed to it, rather than the string being treated as a shell command. The fix here was to prefix all the command strings with bash.
  • Update the CI Docker image to use the latest version of MOOSE. This image is based off the moose-dev image, which runs Rocky Linux rather than Ubuntu.

Related Issue

Resolves #32

Checklist

  • Tests have been written for the new/changed behaviour.
  • Documentation/examples have been added/updated for the new changes.

These stopped working after a MOOSE update, due to change made to the
RunCommand test type. RunApp is better here anyway, as we can also run
tests on debug builds, where before we only ever ran these tests using
an 'opt' build.
A recent MOOSE update meant that the way we were using the 'RunCommand'
test type stopped working. It seems like the first argument in the
command string is now taken as the executable, and all subsequent parts
of the string are passed as arguments to that executable. We were
therefore getting errors when chaining commands together with '&&'.

We can work around this by prefixing our one-line scripts with 'bash
-c'.
The 'heat conduction' module was renamed 'heat transfer' in a recent
version of MOOSE.
The signature of SubProblem::converged was changed in a recent version
of MOOSE.
This silences a warning we get when running tests, and prevents the
legacy behaviour where MOOSE executes an unnecessary residual check.
Remove the debug builds of libMesh to bring down the size of the Docker
image.
@hsaunders1904
Copy link
Contributor Author

New version of Docker image deployed in https://github.com/aurora-multiphysics/hippo/actions/runs/12234449168 and used in latest CI run.

@hsaunders1904 hsaunders1904 merged commit 32e74f2 into main Dec 9, 2024
2 checks passed
@hsaunders1904 hsaunders1904 deleted the hsaunders1904/32_make_updates_for_compatibility_with_latest_moose_version branch December 9, 2024 13:43
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.

Make updates for compatibility with latest MOOSE version
1 participant