-
Notifications
You must be signed in to change notification settings - Fork 65
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
Geant4 v11 fix #907
Geant4 v11 fix #907
Conversation
Geant4 provide Geant4Config.cmake that allows to find Geant4. Do we still need FindGeant4? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR now undoes a lot of recent changes in DAGMC. It needs additional cleanup
src/dagmc/DagMC.cpp
Outdated
#if MOAB_VERSION_MAJOR == 5 && MOAB_VERSION_MINOR > 2 | ||
// find a which volume contains the current point | ||
ErrorCode DagMC::find_volume(const double xyz[3], EntityHandle& volume, | ||
const double* uvw) { | ||
ErrorCode rval = ray_tracer->find_volume(xyz, volume, uvw); | ||
return rval; | ||
} | ||
#endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be removed
Adding #860 for history |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I've mentioned in a few places, the way you have reconstructed this PR has removed some important updates that came from other PRs that happened in between. Normally, if you hadn't deleted your previous branch, we could just rely on a git rebase, but this will take a little more care to get right.
@@ -5,7 +5,7 @@ | |||
|
|||
# Global ARGS set before the first build stage are accessable by all build stages | |||
ARG EMBREE_BRANCH='v3.6.1' | |||
ARG geant4_version=10.7.4 | |||
ARG geant4_version=11.1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if we need/want to update the default yet - I'll think about it as I review the rest of the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will be testing with both
src/dagmc/DagMC.cpp
Outdated
EntityHandle DagMC::entity_by_id(int dimension, int id) const { | ||
EntityHandle DagMC::entity_by_id(int dimension, int id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a regression from another PR that added the const
- please remove this change
src/dagmc/DagMC.hpp
Outdated
inline EntityHandle DagMC::entity_by_index(int dimension, int index) const { | ||
inline EntityHandle DagMC::entity_by_index(int dimension, int index) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ibid
src/dagmc/DagMC.hpp
Outdated
inline int DagMC::index_by_handle(EntityHandle handle) const { | ||
inline int DagMC::index_by_handle(EntityHandle handle) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ibid
src/dagmc/DagMC.hpp
Outdated
inline unsigned int DagMC::num_entities(int dimension) const { | ||
inline unsigned int DagMC::num_entities(int dimension) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ibid
src/dagmc/dagmcmetadata.cpp
Outdated
require_density(require_density_present), | ||
logger(verbosity) { | ||
logger(verbosity), | ||
require_density(require_density_present) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an important change from another PR
// retrieve the map | ||
#ifdef GEANT4_GT_10_6 | ||
using MeshScoreMap = G4VScoringMesh::MeshScoreMap; | ||
#endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't this already in an earlier PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I recall, this should be required for >10.6 and It may need to be available in earlier PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the only problem. Let's see what happens when the actions run on your account after we fix this.
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
@gonuke docker build is passing now |
I created a backup branch and reverted all the changes on my develop branch in the DAGMC repository. It seems like my previous PR got deleted in the process. Thus, I have created a new one. I apologize for any inconvenience this may have caused.