mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #2085 from pshriwise/dagmc_material
DAGMC lost particle message update
This commit is contained in:
commit
e41e2e0c01
1 changed files with 5 additions and 1 deletions
|
|
@ -596,8 +596,12 @@ std::pair<double, int32_t> DAGCell::distance(
|
|||
dist = INFINITY;
|
||||
if (!dagmc_ptr_->is_implicit_complement(vol) ||
|
||||
model::universe_map[dag_univ->id_] == model::root_universe) {
|
||||
std::string material_id = p->material() == MATERIAL_VOID
|
||||
? "-1 (VOID)"
|
||||
: std::to_string(model::materials[p->material()]->id());
|
||||
p->mark_as_lost(
|
||||
fmt::format("No intersection found with DAGMC cell {}", id_));
|
||||
fmt::format("No intersection found with DAGMC cell {}, material {}",
|
||||
id_, material_id));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue