Including making TL RayHistory, last_dir available in surface.cpp and adding a reflection method to DAGSurface.

This commit is contained in:
Patrick Shriwise 2019-06-07 12:47:30 -05:00
parent 90abce144c
commit 837796add0
5 changed files with 18 additions and 7 deletions

View file

@ -9,11 +9,15 @@ extern "C" const bool dagmc_enabled;
#ifdef DAGMC
#include "DagMC.hpp"
#include "openmc/cell.h"
#include "openmc/surface.h"
#include "openmc/xml_interface.h"
#include "openmc/position.h"
namespace openmc {
extern moab::DagMC::RayHistory history;
extern Direction last_dir;
#pragma omp threadprivate(history, last_dir)
namespace model {
extern moab::DagMC* DAG;
}

View file

@ -136,6 +136,7 @@ public:
double evaluate(Position r) const;
double distance(Position r, Direction u, bool coincident) const;
Direction normal(Position r) const;
Direction reflect(Position r, Direction u) const;
//! Get the bounding box of this surface.
BoundingBox bounding_box() const;