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

Removed OpenmcDriver::index_filter_, replaced with local variable #64

Closed
wants to merge 1 commit into from

Conversation

RonRahaman
Copy link
Collaborator

The member OpenmcDriver::index_filter_ is only used in OpenmcDriver::create_tallies(). Every time that member function is called, index_filter_ is set from an OpenMC API function. I replaced it with a local variable to make the usage clearer.

If anyone wants to use something like index_filter_ later, then they can just query it directly from the OpenMC API, rather than relying on the value from which the member was most-recently set.

@paulromano
Copy link
Member

This conflicts now that the update to the OpenMC submodule was merged. The idea stands though -- if you want to update to remove the filter_ member and make it a member variable, you can go for it (or submit a new PR; I'll leave it up to you).

@RonRahaman
Copy link
Collaborator Author

It's okay now. I came across it when I was working on #61 , but now that index_filter_ isn't declared anymore, it doesn't matter for the purpose of that Issue.

@RonRahaman RonRahaman closed this Aug 14, 2019
@RonRahaman RonRahaman deleted the index-filter-member branch August 26, 2020 20:22
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