-
Notifications
You must be signed in to change notification settings - Fork 66
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 function to expose find_volume in DAGMC #718
Conversation
This requires an update to MOAB 5.2.x |
Wondering if the MOAB 5.3 help with this volume exposing |
5828db1
to
0e449bd
Compare
The code changes here look good to me! I'm thinking we should impose a minimum version requirement for MOAB in |
Now I have to figure out how...? |
Should just be a version check on |
I just submitted a PR in MOAB for this (https://bitbucket.org/fathomteam/moab/pull-requests/571), but given that they just did a microrelease, not sure how long it will take to emerge. If you think we can go ahead without this, I've submitted #788 to track this for the future. |
Sounds good. Thanks for doing that!
Also sounds good. How would you feel about waiting until after the upcoming release then? I think it's fairly likely that someone will try to build the latest version of DAGMC with an older version of MOAB that doesn't contain this function. |
3caf7ed
to
77a83e0
Compare
It turns out that the version info is already available as a preprocessor variable, so I added |
My concern with relying on I think it would be clearer to require the version of MOAB that has this function during configuration or at least causes the DAGMC build to fail. To do this without relying on the MOAB version in the CMAKE config file I can think of a couple of options:
|
So maybe this should be in a minor release (3.3.0) rather than a micro release (3.2.1) since it's an API change, albeit an additive one |
I could've sworn we'd merged this in, but I was looking yesterday and sure enough, we have not! Shall we revive this one @gonuke? |
I'll try to port the changes over for this. I thought we merged it too!! |
Based on the code changes, I'm happy to merge this ASAP. Should we do another CI run before that though? |
6b1988b
to
46ac3ee
Compare
rebased, tested & ready to merge @pshriwise |
Description
Allow physics codes to directly call find_volume() that has been implemented in MOAB
Motivation and Context
In some circumstances, there is a need to identify the current volume based on the current position of a particle. Some codes implement their own search process and only require a check for point inclusion (
point_in_volume()
). This function supersedes the search process built in to the physics code and takes advantage of OBB acceleration to perform the search. This change exposes it in the DagMC interface.Changes
This is a feature addition to connect an existing feature of MOAB to the DagMC interface.