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

Fix locating h5m files references in DAGMC universes #2842

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

paulromano
Copy link
Contributor

Description

If you have a model.xml file with a DAGMC universe that references a .h5m file in a directory other than the directory where the model.xml file lives, you'll get a fatal error if you run openmc model.xml. This PR fixes this behavior and does a little bit of cleanup with how settings::path_input is handled.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@paulromano paulromano requested a review from pshriwise as a code owner January 15, 2024 22:17
@paulromano paulromano changed the title Model h5m subdir Fix locating h5m files references in DAGMC universes Jan 15, 2024
Copy link
Contributor

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

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

I like the simplifications here. Thanks @paulromano!

@pshriwise pshriwise merged commit d7d2230 into openmc-dev:develop Jan 16, 2024
18 checks passed
@paulromano paulromano deleted the model-h5m-subdir branch January 16, 2024 19:37
church89 pushed a commit to openmsr/openmc that referenced this pull request Jul 18, 2024
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.

2 participants