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

Added check for consistent periodic BCs and unspecified BCs #225

Merged

Conversation

zachcroft
Copy link
Contributor

This pull request addresses the following issues:

  1. When a boundary condition for a field is unspecified in parameters.prm (i.e. it's completely missing or blank) a segmentation fault will occur

  2. Periodic boundary conditions are currently allowed to be defined in an inconsistent manner (e.g. natural, periodic, natural natural)

Changes:
I made changes to load_BC_list.cc to give error messages for both of these cases. For issue (1) it checks if a BC list is empty, and for issue (2) it checks that 'periodic' is always specified in pairs for each direction.

Copy link
Contributor

@landinjm landinjm left a comment

Choose a reason for hiding this comment

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

Looks good. Just need to make some small changes to how the error messages are handled.

Also, make sure the file follows our autoformatting rules.

Thanks for the PR!

src/userInputParameters/load_BC_list.cc Outdated Show resolved Hide resolved
src/userInputParameters/load_BC_list.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@landinjm landinjm left a comment

Choose a reason for hiding this comment

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

Looks good!

@landinjm landinjm merged commit a1f5493 into prisms-center:development Sep 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants