mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Moving setting of simple attribute into the DAGCell constructor.
This commit is contained in:
parent
6d41c669b0
commit
4fa6fd4b8f
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue