Set DAGMC cell instances on surface crossing (#3052)

This commit is contained in:
Patrick Shriwise 2024-06-21 18:21:13 -05:00 committed by GitHub
parent 4bd0b09e60
commit 00faa7d698
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 7 deletions

View file

@ -557,9 +557,14 @@ void Particle::cross_surface(const Surface& surf)
sqrtkT_last() = sqrtkT();
// set new cell value
lowest_coord().cell = i_cell;
auto& cell = model::cells[i_cell];
cell_instance() = 0;
material() = model::cells[i_cell]->material_[0];
sqrtkT() = model::cells[i_cell]->sqrtkT_[0];
if (cell->distribcell_index_ >= 0)
cell_instance() = cell_instance_at_level(*this, n_coord() - 1);
material() = cell->material(cell_instance());
sqrtkT() = cell->sqrtkT(cell_instance());
return;
}
#endif