From 62859d39bacdadb6acf2c203f38f881381b10a85 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 3 Apr 2023 12:17:23 -0500 Subject: [PATCH] Ignoring lost particles in DAGMC universes if in plotting mode --- src/dagmc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dagmc.cpp b/src/dagmc.cpp index f6ed134e77..04c8424aac 100644 --- a/src/dagmc.cpp +++ b/src/dagmc.cpp @@ -603,6 +603,7 @@ std::pair 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