Geant4 v11 fix - #907
Conversation
|
Geant4 provide Geant4Config.cmake that allows to find Geant4. Do we still need FindGeant4? |
gonuke
left a comment
There was a problem hiding this comment.
This PR now undoes a lot of recent changes in DAGMC. It needs additional cleanup
| #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.
I don't think this should be removed
|
Adding #860 for history |
|
gonuke
left a comment
There was a problem hiding this comment.
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.
| # 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.
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.
I will be testing with both
| /* SECTION III: Indexing & Cross-referencing */ | ||
|
|
||
| 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.
this is a regression from another PR that added the const - please remove this change
| inline EntityHandle DagMC::entity_by_index(int dimension, int index) const { | ||
| inline EntityHandle DagMC::entity_by_index(int dimension, int index) { |
| inline int DagMC::index_by_handle(EntityHandle handle) const { | ||
| inline int DagMC::index_by_handle(EntityHandle handle) { |
| inline unsigned int DagMC::num_entities(int dimension) const { | ||
| inline unsigned int DagMC::num_entities(int dimension) { |
| require_density(require_density_present), | ||
| logger(verbosity) { | ||
| logger(verbosity), | ||
| require_density(require_density_present) { |
There was a problem hiding this comment.
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.
wasn't this already in an earlier PR?
There was a problem hiding this comment.
As I recall, this should be required for >10.6 and It may need to be available in earlier PR.
gonuke
left a comment
There was a problem hiding this comment.
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.