moved thread private trace debugging variable into particle object.

This commit is contained in:
John Tramm 2020-01-03 21:55:03 +00:00
parent d4c63ed0bb
commit d1b5810688
6 changed files with 15 additions and 16 deletions

View file

@ -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 << ","