Skip to content

Commit

Permalink
Corrections in the DAGMC interface code
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Dec 16, 2024
1 parent 9cdab91 commit f037e93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/openmc/dagmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class DAGSurface : public Surface {

double evaluate(Position r) const override;
double distance(Position r, Direction u, bool coincident) const override;
Direction normal(Position r) const override;
Direction reflect(Position r, Direction u) const override;
Direction normal(Position r, GeometryState* p = nullptr) const override;
Direction reflect(Position r, Direction u, GeometryState* p = nullptr) const override;

inline void to_hdf5_inner(hid_t group_id) const override {};

Expand Down
2 changes: 1 addition & 1 deletion src/dagmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ Direction DAGSurface::reflect(Position r, Direction u, GeometryState* p) const
moab::EntityHandle surf = dagmc_ptr_->entity_by_index(2, dag_index_);
double pnt[3] = {r.x, r.y, r.z};
double dir[3];
rval = dagmc_ptr_->get_angle(surf, pnt, dir, p->history());
rval = dagmc_ptr_->get_angle(surf, pnt, dir, &p->history());
MB_CHK_ERR_CONT(rval);
return u.reflect(dir);
}
Expand Down

0 comments on commit f037e93

Please sign in to comment.