Merge pull request #2085 from pshriwise/dagmc_material

DAGMC lost particle message update
This commit is contained in:
Paul Romano 2022-06-21 07:57:54 -05:00 committed by GitHub
commit e41e2e0c01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}
}