mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Set DAGMC cell instances on surface crossing (#3052)
This commit is contained in:
parent
4bd0b09e60
commit
00faa7d698
4 changed files with 39 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue