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

Add inline to openmc::interpolate #2789

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

paulromano
Copy link
Contributor

Description

The interpolate function in interpolate.h was being defined in a header without being inline. This PR simply adds the inline specifier so that we don't end up with multiple definitions of the same function.

Fixes #2788

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 shimwell November 28, 2023 13:10
Copy link
Member

@shimwell shimwell left a comment

Choose a reason for hiding this comment

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

You make everything look so easy Paul.

Many thanks for the fix.

Will merge tomorrow morning (UK time) if there are no objections.

@shimwell shimwell added the Merging Soon PR will be merged in < 24 hrs if no further comments are made. label Nov 28, 2023
@shimwell shimwell merged commit 87e00f7 into openmc-dev:develop Nov 29, 2023
18 checks passed
@paulromano paulromano deleted the inline-interpolate 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
Merging Soon PR will be merged in < 24 hrs if no further comments are made.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

duplicate symbol in test_interpolation.cpp
2 participants