Skip to content

Commit

Permalink
group dagmc vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gridley committed Sep 9, 2023
1 parent deef629 commit b2fcc72
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions include/openmc/particle_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ class Geometron {
// Boundary information
BoundaryInfo& boundary() { return boundary_; }

#ifdef DAGMC
// DagMC state variables
moab::DagMC::RayHistory& history() { return history_; }
Direction& last_dir() { return last_dir_; }
#endif

// material of current and last cell
int& material() { return material_; }
const int& material() const { return material_; }
Expand Down Expand Up @@ -306,8 +300,15 @@ class Geometron {
double sqrtkT_last_ {0.0};

#ifdef DAGMC
public:
// DagMC state variables
moab::DagMC::RayHistory& history() { return history_; }
Direction& last_dir() { return last_dir_; }

private:
moab::DagMC::RayHistory history_;
Direction last_dir_;

#endif
};

Expand Down

0 comments on commit b2fcc72

Please sign in to comment.