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

Only error when invalid maps are passed to base physics methods #1302

Merged
merged 8 commits into from
Dec 31, 2024

Conversation

tupek2
Copy link
Collaborator

@tupek2 tupek2 commented Dec 23, 2024

Allow some base physics interfaces to be used in cases where maps are empty to allow end users to use the common interface in more cases.

… empty to allow end users to use in common interface in more cases.
@tupek2
Copy link
Collaborator Author

tupek2 commented Dec 23, 2024

/style

{
SLIC_ERROR_ROOT(axom::fmt::format("Adjoint analysis not defined for physics module {}", name_));
if (string_to_dual.size()) {
Copy link
Member

Choose a reason for hiding this comment

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

If you're checking whether the map is populated here, I suggest using the empty() method on STL containers, because the intent is clearer.

{
SLIC_ERROR_ROOT(axom::fmt::format("Adjoint analysis not defined for physics module {}", name_));
if (string_to_bc.size()) {
Copy link
Member

Choose a reason for hiding this comment

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

Same comment.

@tupek2 tupek2 added the ready for review Ready for active inspection by reviewers label Dec 30, 2024
@tupek2 tupek2 merged commit 0157296 into develop Dec 31, 2024
2 checks passed
@btalamini btalamini deleted the tupek/tupek_adjoint_load_flexibility branch January 6, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Ready for active inspection by reviewers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants