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

Avoid having to have separate input files for parallel runs #33

Conversation

hsaunders1904
Copy link
Contributor

Summary

This change updates FoamInterface such that we automatically append OpenFOAM's -parallel flag when Hippo is run with MPI. The effect of this is that the -parallel flag does not have to be added to the foam_args option in Hippo's input files, and we do not have to have different input files for serial and parallel runs.

Related Issue

Resolves #18

Checklist

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

If we're running in parallel, we detect this fact and ensure that the
'-parallel' flag is passed to OpenFOAM. This means we no longer need to
add the flag to the 'foam_args' option in MOOSE input files when we want
to execute in parallel.
This is no longer required, as this flag is automatically added.
@hsaunders1904 hsaunders1904 merged commit a3caff1 into main Nov 14, 2024
1 check passed
@hsaunders1904 hsaunders1904 deleted the hsaunders1904/18_avoid_having_to_have_separate_input_files_for_parallel_runs branch November 14, 2024 10:26
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.

Avoid having to have separate input files for parallel runs
1 participant