mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
moved thread private trace debugging variable into particle object.
This commit is contained in:
parent
d4c63ed0bb
commit
d1b5810688
6 changed files with 15 additions and 16 deletions
|
|
@ -119,7 +119,7 @@ find_cell_inner(Particle* p, const NeighborList* neighbor_list)
|
|||
}
|
||||
|
||||
// Announce the cell that the particle is entering.
|
||||
if (found && (settings::verbosity >= 10 || simulation::trace)) {
|
||||
if (found && (settings::verbosity >= 10 || p->trace_)) {
|
||||
std::stringstream msg;
|
||||
msg << " Entering cell " << model::cells[i_cell]->id_;
|
||||
write_message(msg, 1);
|
||||
|
|
@ -299,7 +299,7 @@ cross_lattice(Particle* p, const BoundaryInfo& boundary)
|
|||
auto& coord {p->coord_[p->n_coord_ - 1]};
|
||||
auto& lat {*model::lattices[coord.lattice]};
|
||||
|
||||
if (settings::verbosity >= 10 || simulation::trace) {
|
||||
if (settings::verbosity >= 10 || p->trace_) {
|
||||
std::stringstream msg;
|
||||
msg << " Crossing lattice " << lat.id_ << ". Current position ("
|
||||
<< coord.lattice_x << "," << coord.lattice_y << ","
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue