Moving setting of simple attribute into the DAGCell constructor.

This commit is contained in:
Patrick Shriwise 2020-08-19 23:32:15 -05:00
parent 6d41c669b0
commit 4fa6fd4b8f
2 changed files with 1 additions and 2 deletions

View file

@ -779,7 +779,7 @@ CSGCell::contains_complex(Position r, Direction u, int32_t on_surface) const
// DAGMC Cell implementation
//==============================================================================
#ifdef DAGMC
DAGCell::DAGCell() : Cell{} {};
DAGCell::DAGCell() : Cell{} { simple_ = true; };
std::pair<double, int32_t>
DAGCell::distance(Position r, Direction u, int32_t on_surface, Particle* p) const

View file

@ -196,7 +196,6 @@ void load_dagmc_geometry()
// set cell ids using global IDs
DAGCell* c = new DAGCell();
c->dag_index_ = i+1;
c->simple_ = true;
c->id_ = model::DAG->id_by_index(3, c->dag_index_);
c->dagmc_ptr_ = model::DAG;
c->universe_ = dagmc_univ_id; // set to zero for now