mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Ignoring lost particles in DAGMC universes if in plotting mode
This commit is contained in:
parent
abdc9be9a0
commit
62859d39ba
1 changed files with 1 additions and 0 deletions
|
|
@ -603,6 +603,7 @@ std::pair<double, int32_t> DAGCell::distance(
|
|||
// indicate that particle is lost
|
||||
surf_idx = -1;
|
||||
dist = INFINITY;
|
||||
if (settings::run_mode == RunMode::PLOTTING) return {dist, surf_idx};
|
||||
if (!dagmc_ptr_->is_implicit_complement(vol) ||
|
||||
model::universe_map[dag_univ->id_] == model::root_universe) {
|
||||
std::string material_id = p->material() == MATERIAL_VOID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue