Converted DagMC threadprivate variables to particle owned as well. Not quite as bad as I was expecting.

This commit is contained in:
John Tramm 2020-01-14 16:24:26 +00:00
parent f6020279c9
commit f7fb5a036b
9 changed files with 31 additions and 34 deletions

View file

@ -378,7 +378,7 @@ BoundaryInfo distance_to_boundary(Particle* p)
Cell& c {*model::cells[coord.cell]};
// Find the oncoming surface in this cell and the distance to it.
auto surface_distance = c.distance(r, u, p->surface_);
auto surface_distance = c.distance(r, u, p->surface_, p);
d_surf = surface_distance.first;
level_surf_cross = surface_distance.second;